Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/data/pathfinder.xml
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<Pathfinder> | <Pathfinder> | ||||
<!-- Sets limit on the number of same turns moves we will process --> | <!-- Sets limit on the number of same turns moves we will process --> | ||||
<!-- Setting the value to 0 disable this functionality --> | <!-- Setting the value to 0 disable this functionality --> | ||||
<MaxSameTurnMoves>20</MaxSameTurnMoves> | <MaxSameTurnMoves>20</MaxSameTurnMoves> | ||||
<Pushing> | <Pushing> | ||||
<!-- Units push each other if they are within 'clearance * radius' meters. --> | <!-- Units push each other if they are within 'clearance * radius' meters. --> | ||||
<!-- Setting the value to 0 disables unit pushing entirely. --> | <!-- Setting the value to 0 disables unit pushing entirely. --> | ||||
<!-- Note that values above 2-3 are likely to start behaving weirdly. --> | <!-- Note that values above 2-3 are likely to start behaving weirdly. --> | ||||
<!-- You can also tweaks extensions below. --> | <!-- You can also tweaks extensions below. --> | ||||
<Radius>1.6</Radius> | <Radius>1.4</Radius> | ||||
<!-- Actual pushing radius for non-moving units is: --> | <!-- Actual pushing radius for non-moving units is: --> | ||||
<!-- Clearance * PushingRadius + StaticPushExtension --> | <!-- Clearance * PushingRadius + StaticPushExtension --> | ||||
<!-- NB: Once idle units start being pushed, they become moving units, --> | <!-- This mostly controls the maximum unit density--> | ||||
<!-- so this should be understood as the maximum unit density. --> | <StaticExtension>1.5</StaticExtension> | ||||
<StaticExtension>2</StaticExtension> | |||||
<!-- Actual pushing radius for moving units is: --> | <!-- Actual pushing radius for moving units is: --> | ||||
<!-- Clearance * PushingRadius + MovingPushExtension --> | <!-- Clearance * PushingRadius + MovingPushExtension --> | ||||
<!-- This is the factor that has the largest influence on actual sparsity. --> | <MovingExtension>4.0</MovingExtension> | ||||
<MovingExtension>2.5</MovingExtension> | |||||
<!-- Pushing force depends on the distance between units. --> | |||||
<!-- This controls that effect. A value of 1 means pushing --> | |||||
<!-- is always FULL or OFF. A value of 1 / (Radius + Extensions) means --> | |||||
<!-- "normal force" when units are touching, and stronger force --> | |||||
<!-- when units are overlapping. --> | |||||
<!-- In general, Spread * (Radius + Extensions) ought to be slightly higher than 1 --> | |||||
<!-- to compensate somewhat for unit clearances (defined below) --> | |||||
<!-- being somewhat smaller than the units' actual footprints. --> | |||||
<StaticSpread>0.9</StaticSpread> | |||||
<MovingSpread>0.4</MovingSpread> | |||||
<!-- After the combined pushing force of all neighboring units is calculated, --> | <!-- After the combined pushing force of all neighboring units is calculated, --> | ||||
<!-- if the value is below this number, treat it as effectively zero. --> | <!-- if the value is below this number, treat it as effectively zero. --> | ||||
<!-- This nullifies very small pushes, and makes things look and behave nicer. --> | <!-- This nullifies very small pushes, and makes things look and behave nicer. --> | ||||
<!-- NB: This impacts the pushing max distance. --> | <!-- NB: This impacts the pushing max distance. --> | ||||
<!-- NB: If this is 0.25 or above, then pairs of units will overlap --> | <!-- NB: If this is 0.25 or above, then pairs of units will overlap --> | ||||
<!-- See MAX_DISTANCE_FACTOR in CCmpUnitMotion_System.cpp for details.--> | <!-- See MAX_DISTANCE_FACTOR in CCmpUnitMotion_System.cpp for details.--> | ||||
<MinimalForce>0.2</MinimalForce> | <MinimalForce>0.2</MinimalForce> | ||||
<!-- Multiplier for the pushing pressure units exert on each other. --> | |||||
<!-- Pushing pressure is a measure of 'how pushed' a unit is. --> | |||||
<!-- It will slow down units and make movement more realistic, but slower. --> | |||||
<PressureStrength>0.5</PressureStrength> | |||||
<!-- This controls the decay rate, 1 never decays, 0 decays entirely every turn. --> | |||||
<PressureDecay>0.6</PressureDecay> | |||||
</Pushing> | </Pushing> | ||||
<PassabilityClasses> | <PassabilityClasses> | ||||
<!-- Unit pathfinding classes: --> | <!-- Unit pathfinding classes: --> | ||||
<default> | <default> | ||||
<Obstructions>pathfinding</Obstructions> | <Obstructions>pathfinding</Obstructions> | ||||
<MaxWaterDepth>2</MaxWaterDepth> | <MaxWaterDepth>2</MaxWaterDepth> | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator