Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_AIDangerReaction_WeaponFired Interface Reference
Inheritance diagram for SCR_AIDangerReaction_WeaponFired:
SCR_AIDangerReaction

Public Member Functions

override bool PerformReaction (notnull SCR_AIUtilityComponent utility, notnull SCR_AIThreatSystem threatSystem, AIDangerEvent dangerEvent, int dangerEventCount)
 
void OnGunshotHeard (notnull SCR_AIUtilityComponent utility, float distance, int dangerEventCount, vector pos)
 
void OnProjectileFlyby (notnull SCR_AIUtilityComponent utility, int dangerEventCount, vector pos)
 
void NotifyGroup (AIGroup group, IEntity shooterEntity, IEntity instigatorEntity, Faction faction, vector posWorld, bool endangering)
 
bool IsFlyby (vector myPos, vector shotPos, vector shotDir, float distance)
 

Static Protected Attributes

static const float SOUND_SPEED_MS = 343.0
 
static const float ENDANGERING_FOR_GROUP_RADIUS = 15
 
static const float PROJECTILE_FLYBY_RADIUS = 13
 
static const float PROJECTILE_FLYBY_RADIUS_SQ = PROJECTILE_FLYBY_RADIUS * PROJECTILE_FLYBY_RADIUS
 
static const float PROJECTILE_FLYBY_DELAY_S = 0.05
 
static const float AUDIBLE_DISTANCE_NORMAL = 500.0
 
static const float AUDIBLE_DISTANCE_SUPPRESSED = 100.0
 

Additional Inherited Members

- Public Attributes inherited from SCR_AIDangerReaction
SCR_EAIDangerEventType m_eType
 

Member Function Documentation

◆ IsFlyby()

bool SCR_AIDangerReaction_WeaponFired.IsFlyby ( vector myPos,
vector shotPos,
vector shotDir,
float distance )

◆ NotifyGroup()

void SCR_AIDangerReaction_WeaponFired.NotifyGroup ( AIGroup group,
IEntity shooterEntity,
IEntity instigatorEntity,
Faction faction,
vector posWorld,
bool endangering )

◆ OnGunshotHeard()

void SCR_AIDangerReaction_WeaponFired.OnGunshotHeard ( notnull SCR_AIUtilityComponent utility,
float distance,
int dangerEventCount,
vector pos )

◆ OnProjectileFlyby()

void SCR_AIDangerReaction_WeaponFired.OnProjectileFlyby ( notnull SCR_AIUtilityComponent utility,
int dangerEventCount,
vector pos )

◆ PerformReaction()

override bool SCR_AIDangerReaction_WeaponFired.PerformReaction ( notnull SCR_AIUtilityComponent utility,
notnull SCR_AIThreatSystem threatSystem,
AIDangerEvent dangerEvent,
int dangerEventCount )

Implements SCR_AIDangerReaction.

Member Data Documentation

◆ AUDIBLE_DISTANCE_NORMAL

const float SCR_AIDangerReaction_WeaponFired.AUDIBLE_DISTANCE_NORMAL = 500.0
staticprotected

◆ AUDIBLE_DISTANCE_SUPPRESSED

const float SCR_AIDangerReaction_WeaponFired.AUDIBLE_DISTANCE_SUPPRESSED = 100.0
staticprotected

◆ ENDANGERING_FOR_GROUP_RADIUS

const float SCR_AIDangerReaction_WeaponFired.ENDANGERING_FOR_GROUP_RADIUS = 15
staticprotected

◆ PROJECTILE_FLYBY_DELAY_S

const float SCR_AIDangerReaction_WeaponFired.PROJECTILE_FLYBY_DELAY_S = 0.05
staticprotected

◆ PROJECTILE_FLYBY_RADIUS

const float SCR_AIDangerReaction_WeaponFired.PROJECTILE_FLYBY_RADIUS = 13
staticprotected

◆ PROJECTILE_FLYBY_RADIUS_SQ

const float SCR_AIDangerReaction_WeaponFired.PROJECTILE_FLYBY_RADIUS_SQ = PROJECTILE_FLYBY_RADIUS * PROJECTILE_FLYBY_RADIUS
staticprotected

◆ SOUND_SPEED_MS

const float SCR_AIDangerReaction_WeaponFired.SOUND_SPEED_MS = 343.0
staticprotected

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