RimWorld

RimWorld

Breachable Embrasures - An AI-Behaviour Change
Viser 1-9 af 9 forekomster
Opdatering: 21. juni kl. 10:57

Updated to 1.6

Opdatering: 10. apr. 2024 kl. 1:24

Updated to 1.5

Opdatering: 25. okt. 2022 kl. 5:31

- Quick update to 1.4 by Jiopaba

Opdatering: 12. sep. 2021 kl. 13:46

- Removed unecessary check on startup that was a leftover from previous versions, should now work for unlisted embrasures as well.

Opdatering: 11. aug. 2021 kl. 9:04

Another major code revision. Now the behaviour feels in the right spot.

After discovering that embrasures do not divide rooms anymore with 1.3, I was able to greatly simplify the code. Are you in the same room as a colonist you can't reach? Something needs smashing.

This also allowed me to rely fully on vanilla-AI sapper logic, which uses smart pathing through all your stuff to get to the juicy colonists.

Bonus: This means any embrasure mod that uses the same principle as the majority of them will now be compatible by default. I confirmed the compatibility of all the mods I was asked to add before this update.

Opdatering: 10. aug. 2021 kl. 9:49

- Mayor code revision: Instead of working by breaking vanilla code on accident, it now works intentionally
- Embrasure breaching now only targets embrasures leading to targets. If there are no targets, vanilla "smash colony" behaviour acts normally
- Embrasure breaching now ranks targets by layer thickness. Building your fortifications thick is supported.
- Ranged enemies will now target pawns behind embrasures actively, making use of their normal range
- Three more mods with embrasures supported

Gif of current behaviour:
https://gfycat.com/uncommonflickeringbug


- Current remaining issues:
- Building a fortification with multiple lines of embrasures that do not touch (meaning unreachable floor pockets between) will break the ranking. The outer layer will not be recognized as target.

- Solution:
- I realized late in the day I should just rely on vanilla sapper behaviour to find a breach path. Will swap my chonky layer based solution to that soon.

Opdatering: 9. aug. 2021 kl. 10:20

[Auto-generated text]: Update on 8/9/2021 7:20:32 PM.

No gameplay changes, just formatting and name fixes.

Opdatering: 9. aug. 2021 kl. 9:20

[Auto-generated text]: Update on 8/9/2021 6:20:12 PM.

- Adjusted target selection when searching in the "close" range. Enemies will now prefer embrasures that are below 50% health, otherwise a random one.
- Removed hard dependency on [O21] Seamless Embrasures. You still need a supported embrasure mod.
- Added support for AOBA's Fortifications - Neolithic and Medieval
- Added support for N7Huntsman's Combat Extended (Experimental - No issues in a quick test, but CE touches a lot of code.)

Opdatering: 8. aug. 2021 kl. 12:45

[Auto-generated text]: Initial upload.