Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIThreatSystem Class Reference

Protected Member Functions

void OnDamageEffectAdded (notnull SCR_DamageEffect dmgEffect)
void OnDamageEffectRemoved (notnull SCR_DamageEffect dmgEffect)
void ThreatBulletImpact (int count)
void ThreatExplosion (float distance)
void ThreatShotFired (float distance, int count)
void ThreatProjectileFlyby (int count)
void GetThreatValues (out float suppression, out float shotsFired, out float injury, out float endangered)
 Retrieve all threat values. primarily used for save/load logic.
void SetThreatValues (float suppression, float shotsFired, float injury, float endangered)
 Apply threat values obtained through GetThreatValues. primarily used for save/load logic.
void DebugPrintToWidget (TextWidget w)

Static Protected Attributes

static const float ALERTED_THRESHOLD = 0.33
static const float THREATENED_THRESHOLD = 0.66
static const float ATTACK_DELAYED_THRESHOLD = 0.001

Detailed Description

Definition at line 17 of file SCR_AIThreatSystem.c.

Member Function Documentation

◆ DebugPrintToWidget()

void SCR_AIThreatSystem::DebugPrintToWidget ( TextWidget w)
inlineprotected
Parameters
[in]w

Definition at line 356 of file SCR_AIThreatSystem.c.

◆ GetThreatValues()

void SCR_AIThreatSystem::GetThreatValues ( out float suppression,
out float shotsFired,
out float injury,
out float endangered )
inlineprotected

Retrieve all threat values. primarily used for save/load logic.

Definition at line 335 of file SCR_AIThreatSystem.c.

◆ OnDamageEffectAdded()

void SCR_AIThreatSystem::OnDamageEffectAdded ( notnull SCR_DamageEffect dmgEffect)
inlineprotected

Definition at line 254 of file SCR_AIThreatSystem.c.

◆ OnDamageEffectRemoved()

void SCR_AIThreatSystem::OnDamageEffectRemoved ( notnull SCR_DamageEffect dmgEffect)
inlineprotected

Definition at line 263 of file SCR_AIThreatSystem.c.

◆ SetThreatValues()

void SCR_AIThreatSystem::SetThreatValues ( float suppression,
float shotsFired,
float injury,
float endangered )
inlineprotected

Apply threat values obtained through GetThreatValues. primarily used for save/load logic.

Definition at line 345 of file SCR_AIThreatSystem.c.

◆ ThreatBulletImpact()

void SCR_AIThreatSystem::ThreatBulletImpact ( int count)
inlineprotected
Parameters
[in]count

Definition at line 275 of file SCR_AIThreatSystem.c.

◆ ThreatExplosion()

void SCR_AIThreatSystem::ThreatExplosion ( float distance)
inlineprotected
Parameters
[in]distance

Definition at line 287 of file SCR_AIThreatSystem.c.

◆ ThreatProjectileFlyby()

void SCR_AIThreatSystem::ThreatProjectileFlyby ( int count)
inlineprotected
Parameters
[in]count

Definition at line 324 of file SCR_AIThreatSystem.c.

◆ ThreatShotFired()

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

Definition at line 311 of file SCR_AIThreatSystem.c.

Member Data Documentation

◆ ALERTED_THRESHOLD

const float SCR_AIThreatSystem::ALERTED_THRESHOLD = 0.33
staticprotected

Definition at line 38 of file SCR_AIThreatSystem.c.

◆ ATTACK_DELAYED_THRESHOLD

const float SCR_AIThreatSystem::ATTACK_DELAYED_THRESHOLD = 0.001
staticprotected

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

Definition at line 43 of file SCR_AIThreatSystem.c.

◆ THREATENED_THRESHOLD

const float SCR_AIThreatSystem::THREATENED_THRESHOLD = 0.66
staticprotected

Definition at line 39 of file SCR_AIThreatSystem.c.


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