Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Attributes | List of all members
SCR_AIThreatSystem Interface Reference

Public Member Functions

void SCR_AIThreatSystem (SCR_AIUtilityComponent utility)
 
SCR_AIThreatStateChangedInvoker GetOnThreatStateChanged ()
 
EAIThreatState GetState ()
 
float GetThreatMeasureWithoutInjuryFactor ()
 
float GetThreatMeasure ()
 
void ShowDebug ()
 
void Update (SCR_AIUtilityComponent utility, float timeSlice)
 Called by utilityComponent each EvaluateBehavior call.
 
void ThreatBulletImpact (int count)
 
void ThreatExplosion (float distance)
 
void ThreatShotFired (float distance, int count)
 
void ThreatProjectileFlyby (int count)
 
void DebugPrintToWidget (TextWidget w)
 

Static Public Attributes

static const float EXPLOSION_MAX_DISTANCE = 100
 Maxmial distance from explosion to have any influence on threat level.
 
static const float VIGILANT_THRESHOLD = 0.05
 
static const float THREATENED_THRESHOLD = 0.66
 
static const float ATTACK_DELAYED_THRESHOLD = 0.001
 When threat is below this level, our attack against enemy is delayed count about 36 seconds until m_fThreatIsEndangered drops to this value.
 

Protected Member Functions

void OnDamageEffectAdded (notnull SCR_DamageEffect dmgEffect)
 
void OnDamageEffectRemoved (notnull SCR_DamageEffect dmgEffect)
 

Static Protected Attributes

static const float ALERTED_THRESHOLD = 0.33
 

Constructor & Destructor Documentation

◆ SCR_AIThreatSystem()

void SCR_AIThreatSystem.SCR_AIThreatSystem ( SCR_AIUtilityComponent  utility)
Parameters
[in]utility

Member Function Documentation

◆ DebugPrintToWidget()

void SCR_AIThreatSystem.DebugPrintToWidget ( TextWidget  w)
Parameters
[in]w

◆ GetOnThreatStateChanged()

SCR_AIThreatStateChangedInvoker SCR_AIThreatSystem.GetOnThreatStateChanged ( )
Returns

◆ GetState()

EAIThreatState SCR_AIThreatSystem.GetState ( )
Returns

◆ GetThreatMeasure()

float SCR_AIThreatSystem.GetThreatMeasure ( )
Returns

◆ GetThreatMeasureWithoutInjuryFactor()

float SCR_AIThreatSystem.GetThreatMeasureWithoutInjuryFactor ( )
Returns
Sum of all threats without the effect of injuries - used for deciding to patch oneself

◆ OnDamageEffectAdded()

void SCR_AIThreatSystem.OnDamageEffectAdded ( notnull SCR_DamageEffect  dmgEffect)
protected

◆ OnDamageEffectRemoved()

void SCR_AIThreatSystem.OnDamageEffectRemoved ( notnull SCR_DamageEffect  dmgEffect)
protected

◆ ShowDebug()

void SCR_AIThreatSystem.ShowDebug ( )

◆ ThreatBulletImpact()

void SCR_AIThreatSystem.ThreatBulletImpact ( int  count)
Parameters
[in]count

◆ ThreatExplosion()

void SCR_AIThreatSystem.ThreatExplosion ( float  distance)
Parameters
[in]distance

◆ ThreatProjectileFlyby()

void SCR_AIThreatSystem.ThreatProjectileFlyby ( int  count)
Parameters
[in]count

◆ ThreatShotFired()

void SCR_AIThreatSystem.ThreatShotFired ( float  distance,
int  count 
)
Parameters
[in]distance
[in]count

◆ Update()

void SCR_AIThreatSystem.Update ( SCR_AIUtilityComponent  utility,
float  timeSlice 
)

Called by utilityComponent each EvaluateBehavior call.

Parameters
[in]utility
[in]timeSlice

Member Data Documentation

◆ ALERTED_THRESHOLD

const float SCR_AIThreatSystem.ALERTED_THRESHOLD = 0.33
staticprotected

◆ ATTACK_DELAYED_THRESHOLD

const float SCR_AIThreatSystem.ATTACK_DELAYED_THRESHOLD = 0.001
static

When threat is below this level, our attack against enemy is delayed count about 36 seconds until m_fThreatIsEndangered drops to this value.

◆ EXPLOSION_MAX_DISTANCE

const float SCR_AIThreatSystem.EXPLOSION_MAX_DISTANCE = 100
static

Maxmial distance from explosion to have any influence on threat level.

◆ THREATENED_THRESHOLD

const float SCR_AIThreatSystem.THREATENED_THRESHOLD = 0.66
static

◆ VIGILANT_THRESHOLD

const float SCR_AIThreatSystem.VIGILANT_THRESHOLD = 0.05
static

The documentation for this interface was generated from the following file: