RimWorld

RimWorld

170 ratings
Repair in the Zone
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3, 1.4, 1.5
File Size
Posted
Updated
875.697 KB
23 Apr, 2022 @ 6:10am
13 Apr, 2024 @ 2:55am
5 Change Notes ( view )

Subscribe to download
Repair in the Zone

Description
Makes pawns not stand outside their allowed area to interact with something that is within it.

If there is no available space that is in the area, then they will still stand outside.

Safe to add or remove at any point.
36 Comments
Myrmatta 13 Jul @ 2:46pm 
From testing, this doesn't seem to work in 1.6 yet, probably because of the 1.6 pathfinding alterations.
Tyrant 27 Jun @ 2:58pm 
Do you plan on updating this for 1.6?
Kathanon  [author] 13 Apr, 2024 @ 2:56am 
Updated for RimWorld 1.5.
Farbott 18 Mar, 2024 @ 11:35pm 
well im gonna make the assumption that a mod that makes pawns not stand in disallowed tiles while repairing doesnt have very many connections to the mod which makes combat AI a lot more aggressive and smarter (the ones who DONT care about repairing, they are destroyers >:))
Kathanon  [author] 29 Aug, 2023 @ 6:52am 
Depends on exectly what code they replace. I only change the way the target square is chosen, but that is part of the pathfinding code.
Miguel V-DF 28 Aug, 2023 @ 6:31pm 
I presume the code doesn't interfere with mods that change pathfinding like clean pathfinding 2, or CAI, but can anyone confirm?
Kathanon  [author] 26 Jul, 2023 @ 2:42am 
It applies to any area that the pawn is set to. If they are set to unrestricted, the it does not affect them at all.
Monkey Magic 26 Jul, 2023 @ 12:33am 
Does this apply only to the "Home" zone then, or does it work on a building by building basis too? Would be nice to be able to repair a building from the inside when it's sweltering heat outside, even if it is well within the "Home" zone.
Kathanon  [author] 10 May, 2023 @ 3:15pm 
I think it would be better to make separate zones for each "island" for that.

Also, the change you are proposing would mean replacing or patching the vanilla pathfinding logic. Way to big a project for so little gain.
Nirahiel 10 May, 2023 @ 10:07am 
Or, what if you make zones that are "islands", on purpose, for these man-hunters moments, and you really don't want spawns to step out of their assigned zone. If they have to step out to reach another point within the zone, they can't do it at all. If there are man-hunters animals outside, I don't want my pawns to exit their zone to do whatever they planned on doing, even if their destination is inside the zone too. If you can't get there without getting out of your zone, consider you can't get there at all. The floor is lava.