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

Protected Member Functions

override void OnInit (AIAgent owner)
override void OnAbort (AIAgent owner, Node nodeCausingAbort)
void Reset ()
override ENodeResult EOnTaskSimulate (AIAgent owner, float dt)
void SwitchState_ObserveMajorSector ()
void SwitchState_ObserveMinorSector ()
void SwitchState_Idle ()
void SwitchState_Intermission (int stateAfterIntermission)
override TStringArray GetVariablesOut ()

Static Protected Member Functions

static override bool VisibleInPalette ()

Protected Attributes

SCR_AISectorThreatFilter m_ThreatFilter
IEntity m_MyEntity
int m_iSectorMajor
int m_iSectorMinor
int m_iState
int m_iStateAfterIntermission
float m_fTimer
float m_fTimerThreshold
WorldTimestamp m_TimestampLastUpdate
float m_fLookDurationMajor
float m_fLookDurationMinor
float m_fIntermissionDuration
float m_fTimerRandomizationCoefficient
bool m_bEvaluateEquipmentUsage

Static Protected Attributes

static const string PORT_CURRENT_POSITION = "CurrentPos"
static const string PORT_RESET_LOOK = "ResetLook"
static const string PORT_ACTIVE = "Active"
static const string PORT_RAISE_WEAPON = "RaiseWeapon"
static const string PORT_USE_OPTICS = "UseOptics"
static const int STATE_IDLE = 0
static const int STATE_OBSERVING_MAJOR = 1
static const int STATE_OBSERVING_MINOR = 2
static const int STATE_INTERMISSION = 3
static const float DANGER_THRESHOLD_RAISE_WEAPON = 0.5
static const float DISTANCE_USE_OPTICS_SQ = 200*200
static ref TStringArray s_aVarsOut = { PORT_ACTIVE, PORT_RESET_LOOK, PORT_CURRENT_POSITION, PORT_RAISE_WEAPON, PORT_USE_OPTICS }

Detailed Description

Behavior tree node which controls looking. It takes data from threat system and alternates looking at major and minor threat sector, with a pause in between. The loop is this: look at major sector -> intermission -> look at minor sector -> intermission -> repeat

Definition at line 4 of file SCR_AILookAtThreatSystemLogic.c.

Member Function Documentation

◆ EOnTaskSimulate()

override ENodeResult SCR_AILookAtThreatSystemLogic::EOnTaskSimulate ( AIAgent owner,
float dt )
inlineprotected

Definition at line 75 of file SCR_AILookAtThreatSystemLogic.c.

◆ GetVariablesOut()

override TStringArray SCR_AILookAtThreatSystemLogic::GetVariablesOut ( )
inlineprotected

Definition at line 284 of file SCR_AILookAtThreatSystemLogic.c.

◆ OnAbort()

override void SCR_AILookAtThreatSystemLogic::OnAbort ( AIAgent owner,
Node nodeCausingAbort )
inlineprotected

Definition at line 59 of file SCR_AILookAtThreatSystemLogic.c.

◆ OnInit()

override void SCR_AILookAtThreatSystemLogic::OnInit ( AIAgent owner)
inlineprotected

Definition at line 49 of file SCR_AILookAtThreatSystemLogic.c.

◆ Reset()

void SCR_AILookAtThreatSystemLogic::Reset ( )
inlineprotected

Definition at line 65 of file SCR_AILookAtThreatSystemLogic.c.

◆ SwitchState_Idle()

void SCR_AILookAtThreatSystemLogic::SwitchState_Idle ( )
inlineprotected

Definition at line 267 of file SCR_AILookAtThreatSystemLogic.c.

◆ SwitchState_Intermission()

void SCR_AILookAtThreatSystemLogic::SwitchState_Intermission ( int stateAfterIntermission)
inlineprotected

Definition at line 273 of file SCR_AILookAtThreatSystemLogic.c.

◆ SwitchState_ObserveMajorSector()

void SCR_AILookAtThreatSystemLogic::SwitchState_ObserveMajorSector ( )
inlineprotected

Definition at line 251 of file SCR_AILookAtThreatSystemLogic.c.

◆ SwitchState_ObserveMinorSector()

void SCR_AILookAtThreatSystemLogic::SwitchState_ObserveMinorSector ( )
inlineprotected

Definition at line 259 of file SCR_AILookAtThreatSystemLogic.c.

◆ VisibleInPalette()

override bool SCR_AILookAtThreatSystemLogic::VisibleInPalette ( )
inlinestaticprotected

Definition at line 286 of file SCR_AILookAtThreatSystemLogic.c.

Member Data Documentation

◆ DANGER_THRESHOLD_RAISE_WEAPON

const float SCR_AILookAtThreatSystemLogic::DANGER_THRESHOLD_RAISE_WEAPON = 0.5
staticprotected

Definition at line 18 of file SCR_AILookAtThreatSystemLogic.c.

◆ DISTANCE_USE_OPTICS_SQ

const float SCR_AILookAtThreatSystemLogic::DISTANCE_USE_OPTICS_SQ = 200*200
staticprotected

Definition at line 19 of file SCR_AILookAtThreatSystemLogic.c.

◆ m_bEvaluateEquipmentUsage

bool SCR_AILookAtThreatSystemLogic::m_bEvaluateEquipmentUsage
protected

Definition at line 46 of file SCR_AILookAtThreatSystemLogic.c.

◆ m_fIntermissionDuration

float SCR_AILookAtThreatSystemLogic::m_fIntermissionDuration
protected

Definition at line 40 of file SCR_AILookAtThreatSystemLogic.c.

◆ m_fLookDurationMajor

float SCR_AILookAtThreatSystemLogic::m_fLookDurationMajor
protected

Definition at line 34 of file SCR_AILookAtThreatSystemLogic.c.

◆ m_fLookDurationMinor

float SCR_AILookAtThreatSystemLogic::m_fLookDurationMinor
protected

Definition at line 37 of file SCR_AILookAtThreatSystemLogic.c.

◆ m_fTimer

float SCR_AILookAtThreatSystemLogic::m_fTimer
protected

Definition at line 28 of file SCR_AILookAtThreatSystemLogic.c.

◆ m_fTimerRandomizationCoefficient

float SCR_AILookAtThreatSystemLogic::m_fTimerRandomizationCoefficient
protected

Definition at line 43 of file SCR_AILookAtThreatSystemLogic.c.

◆ m_fTimerThreshold

float SCR_AILookAtThreatSystemLogic::m_fTimerThreshold
protected

Definition at line 29 of file SCR_AILookAtThreatSystemLogic.c.

◆ m_iSectorMajor

int SCR_AILookAtThreatSystemLogic::m_iSectorMajor
protected

Definition at line 23 of file SCR_AILookAtThreatSystemLogic.c.

◆ m_iSectorMinor

int SCR_AILookAtThreatSystemLogic::m_iSectorMinor
protected

Definition at line 24 of file SCR_AILookAtThreatSystemLogic.c.

◆ m_iState

int SCR_AILookAtThreatSystemLogic::m_iState
protected

Definition at line 26 of file SCR_AILookAtThreatSystemLogic.c.

◆ m_iStateAfterIntermission

int SCR_AILookAtThreatSystemLogic::m_iStateAfterIntermission
protected

Definition at line 27 of file SCR_AILookAtThreatSystemLogic.c.

◆ m_MyEntity

IEntity SCR_AILookAtThreatSystemLogic::m_MyEntity
protected

Definition at line 22 of file SCR_AILookAtThreatSystemLogic.c.

◆ m_ThreatFilter

SCR_AISectorThreatFilter SCR_AILookAtThreatSystemLogic::m_ThreatFilter
protected

Definition at line 21 of file SCR_AILookAtThreatSystemLogic.c.

◆ m_TimestampLastUpdate

WorldTimestamp SCR_AILookAtThreatSystemLogic::m_TimestampLastUpdate
protected

Definition at line 31 of file SCR_AILookAtThreatSystemLogic.c.

◆ PORT_ACTIVE

const string SCR_AILookAtThreatSystemLogic::PORT_ACTIVE = "Active"
staticprotected

Definition at line 9 of file SCR_AILookAtThreatSystemLogic.c.

◆ PORT_CURRENT_POSITION

const string SCR_AILookAtThreatSystemLogic::PORT_CURRENT_POSITION = "CurrentPos"
staticprotected

Definition at line 7 of file SCR_AILookAtThreatSystemLogic.c.

◆ PORT_RAISE_WEAPON

const string SCR_AILookAtThreatSystemLogic::PORT_RAISE_WEAPON = "RaiseWeapon"
staticprotected

Definition at line 10 of file SCR_AILookAtThreatSystemLogic.c.

◆ PORT_RESET_LOOK

const string SCR_AILookAtThreatSystemLogic::PORT_RESET_LOOK = "ResetLook"
staticprotected

Definition at line 8 of file SCR_AILookAtThreatSystemLogic.c.

◆ PORT_USE_OPTICS

const string SCR_AILookAtThreatSystemLogic::PORT_USE_OPTICS = "UseOptics"
staticprotected

Definition at line 11 of file SCR_AILookAtThreatSystemLogic.c.

◆ s_aVarsOut

ref TStringArray SCR_AILookAtThreatSystemLogic::s_aVarsOut = { PORT_ACTIVE, PORT_RESET_LOOK, PORT_CURRENT_POSITION, PORT_RAISE_WEAPON, PORT_USE_OPTICS }
staticprotected

Definition at line 283 of file SCR_AILookAtThreatSystemLogic.c.

◆ STATE_IDLE

const int SCR_AILookAtThreatSystemLogic::STATE_IDLE = 0
staticprotected

Definition at line 13 of file SCR_AILookAtThreatSystemLogic.c.

◆ STATE_INTERMISSION

const int SCR_AILookAtThreatSystemLogic::STATE_INTERMISSION = 3
staticprotected

Definition at line 16 of file SCR_AILookAtThreatSystemLogic.c.

◆ STATE_OBSERVING_MAJOR

const int SCR_AILookAtThreatSystemLogic::STATE_OBSERVING_MAJOR = 1
staticprotected

Definition at line 14 of file SCR_AILookAtThreatSystemLogic.c.

◆ STATE_OBSERVING_MINOR

const int SCR_AILookAtThreatSystemLogic::STATE_OBSERVING_MINOR = 2
staticprotected

Definition at line 15 of file SCR_AILookAtThreatSystemLogic.c.


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