Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIDangerReaction_WeaponFired Class Reference
Inheritance diagram for SCR_AIDangerReaction_WeaponFired:
SCR_AIDangerReaction

Protected 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

Detailed Description

Definition at line 2 of file SCR_AIDangerReaction_WeaponFired.c.

Member Function Documentation

◆ IsFlyby()

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

Definition at line 171 of file SCR_AIDangerReaction_WeaponFired.c.

◆ NotifyGroup()

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

Definition at line 134 of file SCR_AIDangerReaction_WeaponFired.c.

◆ OnGunshotHeard()

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

Definition at line 122 of file SCR_AIDangerReaction_WeaponFired.c.

◆ OnProjectileFlyby()

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

Definition at line 128 of file SCR_AIDangerReaction_WeaponFired.c.

◆ PerformReaction()

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

Definition at line 12 of file SCR_AIDangerReaction_WeaponFired.c.

Member Data Documentation

◆ AUDIBLE_DISTANCE_NORMAL

const float SCR_AIDangerReaction_WeaponFired::AUDIBLE_DISTANCE_NORMAL = 500.0
staticprotected

Definition at line 9 of file SCR_AIDangerReaction_WeaponFired.c.

◆ AUDIBLE_DISTANCE_SUPPRESSED

const float SCR_AIDangerReaction_WeaponFired::AUDIBLE_DISTANCE_SUPPRESSED = 100.0
staticprotected

Definition at line 10 of file SCR_AIDangerReaction_WeaponFired.c.

◆ ENDANGERING_FOR_GROUP_RADIUS

const float SCR_AIDangerReaction_WeaponFired::ENDANGERING_FOR_GROUP_RADIUS = 15
staticprotected

Definition at line 5 of file SCR_AIDangerReaction_WeaponFired.c.

◆ PROJECTILE_FLYBY_DELAY_S

const float SCR_AIDangerReaction_WeaponFired::PROJECTILE_FLYBY_DELAY_S = 0.05
staticprotected

Definition at line 8 of file SCR_AIDangerReaction_WeaponFired.c.

◆ PROJECTILE_FLYBY_RADIUS

const float SCR_AIDangerReaction_WeaponFired::PROJECTILE_FLYBY_RADIUS = 13
staticprotected

Definition at line 6 of file SCR_AIDangerReaction_WeaponFired.c.

◆ PROJECTILE_FLYBY_RADIUS_SQ

const float SCR_AIDangerReaction_WeaponFired::PROJECTILE_FLYBY_RADIUS_SQ = PROJECTILE_FLYBY_RADIUS * PROJECTILE_FLYBY_RADIUS
staticprotected

Definition at line 7 of file SCR_AIDangerReaction_WeaponFired.c.

◆ SOUND_SPEED_MS

const float SCR_AIDangerReaction_WeaponFired::SOUND_SPEED_MS = 343.0
staticprotected

Definition at line 4 of file SCR_AIDangerReaction_WeaponFired.c.


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