边缘世界 RimWorld

边缘世界 RimWorld

Clean Pathfinding 2
 此主题已被置顶,因此可能具有重要性
Owlchemist  [开发者] 2023 年 3 月 7 日 上午 9:38
Hidden Feature: Cold zones
For powerusers: How to use cold zones
The avoidance zone is a power user feature and will not be largely promoted or made known to the masses. You can cause more lag than gains by its misuse. To make one, create a new zone and name it Avoid. You'll see a message that the mod recognizes it as a coldzone. Pawns treat this area as a +45 to pathing cost.

Coldzones should only be placed in areas where pawns never path through or walk into, yet the game frequently calculates regardless. If you enable devmode, then go to the mod options and enable logging, you'll see cells flash red where the game calculates pathfinding, for your consideration.
最后由 Owlchemist 编辑于; 2023 年 3 月 7 日 上午 9:39
< >
正在显示第 1 - 2 条,共 2 条留言
Sernior 2023 年 5 月 3 日 上午 10:29 
Nice I was just about to ask for this very feature when I saw this discussion... even better if there was a absolute cold zone that doesn't even have a cost it just never get considered in the neightbours of tiles.
So whenever A* does its magical
foreach (node n in neighbours):
if (absoluteColdZone)continue;

Very dangerous feature for many also I wonder if setting the cost to an high number may cause the gains to be lost to the last few tiles of a pawn pathfinding. Say a pawn wants to go from his bed to the kitchen and take a meal... you set a very good path with the Avoid zone from his bed to the kitchen but not the meals so the meals themselves are 2 squares into the avoid zone.
最后由 Sernior 编辑于; 2023 年 5 月 3 日 上午 10:34
phflack 2023 年 8 月 7 日 下午 3:08 
Does the Avoid zone apply to enemies and allies or only to player owned pawns? I've been having issues with pawns pathing through a mech cluster, so this feature is great to stop that. I'm just curious if it will affect the enemies too by accident
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50