Field manualСправочник / MechanicsМеханика

AiSystem

src/DustConvoy.Sim/Systems/AiSystem.cs

ConstantsКонстанты

NameИмяValueЗначениеNoteЗаметка
TraderStopDistance16f
HostileStopDistance13f
DeployDistance20f
CrewEngageRange18f
InterceptLeadSeconds2f
CrewAdaptSeconds600fAbout ten minutes to close most of the gap to a harder planet. Nothing is given back on an easier one.
CrewAdaptLook20fHow often a crew pawn looks at the world underfoot.
ShelterRange70f
RescueJoinChance0.8fFour in five people whose truck the storm took will sign on if they make it into ours.
WanderRadius6f
WanderSpeedScale0.45f
SightPerRange1.5fHow far an NPC sees relative to its gun's reach (a long gun means a long watch).
AggroSpreadRadius30fOne hostile turning on us alerts every hostile within this distance (a sniper's first shot starts the fight for all).
GrudgeSeconds14How long a grudge keeps pulling them toward the attacker, refreshed while they are still in that fight.
FleeSeconds4.5fHow long a failed nerve roll keeps them running before they may fight, if they joined.
AggroSpreadEvery10Aggro spreads once this many ticks (the shout takes a moment, and it keeps the pass cheap).
CalmSeconds10fHow long with nothing alarming in sight or ear before a fight is dropped.
ManGunRange45fIdle allies climb onto a free gun module of the truck they ride in when hostiles come into range.
ExitMaxSpeed3fRiders only climb out once their truck is this slow.
MemorySeconds5fHow long a shooter keeps firing at where a target vanished behind cover.
MemoryErrorPerSecond0.09fAim error (radians) added per second since the target was last seen.
SidestepDistance1.5fHow far an NPC steps aside to get a friend out of its line of fire.
ThreatReach48fHow close a search or a follow has to be before the crosshair mark notices it.
DriveToArrive6fDrive-to orders count as done this close to the spot.
AttackDismountRange30fA driver on an attack order dismounts once stopped within this distance of the target.
ColumnLane8fHow far apart the three columns sit, and how deep each extra row is.
ColumnRow14f
EscortIdleRadius40fThe convoy counts as sitting still while its centre stays within this of where an escort last saw it move.
OfferIgnoreSeconds60fA speech bubble left unopened this long, and the driver gives up and leaves.
PullAwaySeconds1.15fAfter a reverse, forward drive holds the opposite lock so the nose does not swing back into the wall.
StuckSpeed0.6f
StuckSeconds1.5f
ReverseSeconds1.3f
TurnSeconds4fHow long a forward turn-around is kept up before normal steering gets another look.
HeadingLook35f
HeadingInterval6
VehicleGap3f
WaypointReached5f
LocalRadius10fTargets closer than this are steered to directly even without a clear line (parking next to a wreck, a stop just around a bulge).
MaxSightRay400fFarther than this, a clear line of sight counts as "drive straight"; the junction graph handles the rest.
SmashMargin0.8fA prop is driven through only if this share of the ram damage at the current speed would break it.