RimWorld
Breachable Embrasures - An AI-Behaviour Change
目前顯示第 1-9 項,共 9 項
更新:6 月 21 日 @ 上午 10:57
CalamaBanana 發表

Updated to 1.6

更新:2024 年 4 月 10 日 @ 上午 1:24
CalamaBanana 發表

Updated to 1.5

更新:2022 年 10 月 25 日 @ 上午 5:31

- Quick update to 1.4 by Jiopaba

更新:2021 年 9 月 12 日 @ 下午 1:46

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

更新:2021 年 8 月 11 日 @ 上午 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.

更新:2021 年 8 月 10 日 @ 上午 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.

更新:2021 年 8 月 9 日 @ 上午 10:20

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

No gameplay changes, just formatting and name fixes.

更新:2021 年 8 月 9 日 @ 上午 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.)

更新:2021 年 8 月 8 日 @ 下午 12:45

[Auto-generated text]: Initial upload.