2025-08-28 12:07 CEST

spring: develop afc461e6 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
Marek Baczynski Marek Baczynski develop 2009-08-04 00:09:35 develop 8c64caf3
Changeset sim: add heat-inspired path collision avoidance (new heatMapping, heatMod and heatProduced moveinfo tags)

description of new tags:
- heatMapping (boolean) enables/disables generation and usage of path heat.
  default true.
- heatProduced (int) states how much heat to place on a square if a path goes
  through it. heat is set to max(currentSquareHeat, heatProduced).
  default 30.
- heatMod is the pathfinder cost modifier that is multiplied by the heat
  of the current square. default 0.05.

none of those tags affect the path estimator, so changing them doesn't force a repath.

effects should be noticable when ordering tight groups of units to move
through huge flat areas.
mod - rts/Lua/LuaUnitDefs.cpp Diff ] File ]
mod - rts/Sim/MoveTypes/MoveInfo.cpp Diff ] File ]
mod - rts/Sim/MoveTypes/MoveInfo.h Diff ] File ]
mod - rts/Sim/Path/PathFinder.cpp Diff ] File ]
mod - rts/Sim/Path/PathFinder.h Diff ] File ]
mod - rts/Sim/Path/PathManager.cpp Diff ] File ]