Combat Flee

From the Fallout3 GECK Wiki
Revision as of 14:17, 21 November 2008 by imported>Kkuhlmann
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Fleeing in Combat[edit | edit source]

An actor in combat decides to flee based on their confidence actor value and their current HP and DPS. See Confidence for details about when and why an actor in combat decides to flee. Once the actor has decided to flee, they will try the following things:

  1. Try to find a nearby teleport door to run through
  2. Try to find a cover location away from the attacker to hide behind
  3. Try to run away from the attacker

At the Flee Position[edit | edit source]

Once an actor has reached their flee position, they will wait until one of the following happens:

  1. If they are damaged, they will boost their confidence and re-evaluate whether they should flee or not
  2. If they detect a target too close by, they will boost their confidence and re-evaluate whether they should flee or not

GameSettings[edit | edit source]

There are several game settings used to control flee behavior

  • fCombatFleeMaxDoorDistance( default: 2048.0 ) - The maximum distance the actor will search for a teleport door to go through
  • fCombatFleeMinCoverDistance( default: 1536.0 ) - The minimum distance away from the attacker that the actor will search for cover
  • fCombatFleeMaxCoverDistance( default: 3072.0 ) - The maximum distance away from the attacker that the actor will search for cover
  • fCombatFleeNormalDistance( default: 2048.0 ) - The distance the actor will attempt to move if they cannot find a door or cover
  • fCombatFleeBoostConfidenceTargetRadius( default: 512.0 ) - Once at their flee position, when a target gets within this distance and is detected, the fleeing actor will boost their confidence and re-evaluate
  • fCombatFleeWaitTime ( default: 60 )