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

Protected Member Functions

override void OnInit (AIAgent owner)
void ~SCR_AIUpdateTargetAttackData ()
override void OnAbort (AIAgent owner, Node nodeCausingAbort)
override ENodeResult EOnTaskSimulate (AIAgent owner, float dt)
int ResolveFireTree (BaseTarget target, bool visible, bool weaponReady, out float fireRate)
void ResolveAimpointTypes (notnull BaseTarget target, out EAimPointType aimpointType0, out EAimPointType aimpointType1)
void OnThreatSectorEscalation (SCR_AISectorThreatFilter ts, int sectorId, float dangerValue)
void OnThreatSectorDamageTaken (SCR_AISectorThreatFilter ts, int sectorId)
void LookAtThreats (float duration_s)
 Activates state when we are looking at threats.
float CalculateLookAtThreatDuration (BaseTarget currentTarget, SCR_EAIThreatSectorFlags threatFlags)
bool PosSameDirectionAsTarget (vector threatPos)
override TStringArray GetVariablesIn ()
override TStringArray GetVariablesOut ()

Static Protected Member Functions

static bool WeaponHasBurstOrAutoMode (notnull BaseWeaponComponent weaponComp, int muzzleId)
static override bool VisibleInPalette ()
static override string GetOnHoverDescription ()

Protected Attributes

const int FIRE_TREE_INVALID = -1
const int FIRE_TREE_LOOK = 0
const int FIRE_TREE_BURST = 1
const int FIRE_TREE_SINGLE = 2
const int FIRE_TREE_SUPPRESSIVE = 3
const int FIRE_TREE_MELEE = 4
const int FIRE_TREE_LOOK_THREATS = 5
const float MELEE_MAX_DISTANCE = 2.0
const float BURST_FIRE_MAX_DISTANCE = 50.0
SCR_ChimeraAIAgent m_Agent
SCR_AICombatComponent m_CombatComponent
CharacterControllerComponent m_CharacterController
PerceptionComponent m_PerceptionComponent
SCR_AIUtilityComponent m_UtilityComponent
SCR_AISectorThreatFilter m_ThreatFilter
BaseTarget m_Target
bool m_bFirstSimulate = true
bool m_bWeaponHasBurstOrAuto
bool m_bLookAtThreats
WorldTimestamp m_LookAtThreatsEndTime
vector m_vLookAtThreatsPos
ref TStringArray s_aVarsIn
ref TStringArray s_aVarsOut

Static Protected Attributes

static const string BASE_TARGET_PORT = "BaseTarget"
static const string WEAPON_IS_READY = "WeaponReady"
static const string PORT_LAST_SEEN_POSITION = "LastSeenPosition"
static const string PORT_THREAT_POSITION = "ThreatPosition"
static const string PORT_VISIBLE = "Visible"
static const string PORT_FIRE_TREE_ID = "FireTreeId"
static const string PORT_FIRE_RATE = "FireRate"
static const string PORT_AIMPOINT_TYPE_0 = "AimpointType0"
static const string PORT_AIMPOINT_TYPE_1 = "AimpointType1"
static const float COS_VIEW_CONE = 0.707

Detailed Description

Definition at line 1 of file SCR_AIUpdateTargetAttackData.c.

Constructor & Destructor Documentation

◆ ~SCR_AIUpdateTargetAttackData()

void SCR_AIUpdateTargetAttackData::~SCR_AIUpdateTargetAttackData ( )
inlineprotected

Definition at line 77 of file SCR_AIUpdateTargetAttackData.c.

Member Function Documentation

◆ CalculateLookAtThreatDuration()

float SCR_AIUpdateTargetAttackData::CalculateLookAtThreatDuration ( BaseTarget currentTarget,
SCR_EAIThreatSectorFlags threatFlags )
inlineprotected

Definition at line 393 of file SCR_AIUpdateTargetAttackData.c.

◆ EOnTaskSimulate()

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

Definition at line 93 of file SCR_AIUpdateTargetAttackData.c.

◆ GetOnHoverDescription()

override string SCR_AIUpdateTargetAttackData::GetOnHoverDescription ( )
inlinestaticprotected

Definition at line 449 of file SCR_AIUpdateTargetAttackData.c.

◆ GetVariablesIn()

override TStringArray SCR_AIUpdateTargetAttackData::GetVariablesIn ( )
inlineprotected

Definition at line 434 of file SCR_AIUpdateTargetAttackData.c.

◆ GetVariablesOut()

override TStringArray SCR_AIUpdateTargetAttackData::GetVariablesOut ( )
inlineprotected

Definition at line 445 of file SCR_AIUpdateTargetAttackData.c.

◆ LookAtThreats()

void SCR_AIUpdateTargetAttackData::LookAtThreats ( float duration_s)
inlineprotected

Activates state when we are looking at threats.

Definition at line 381 of file SCR_AIUpdateTargetAttackData.c.

◆ OnAbort()

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

Definition at line 87 of file SCR_AIUpdateTargetAttackData.c.

◆ OnInit()

override void SCR_AIUpdateTargetAttackData::OnInit ( AIAgent owner)
inlineprotected

Definition at line 48 of file SCR_AIUpdateTargetAttackData.c.

◆ OnThreatSectorDamageTaken()

void SCR_AIUpdateTargetAttackData::OnThreatSectorDamageTaken ( SCR_AISectorThreatFilter ts,
int sectorId )
inlineprotected

Definition at line 365 of file SCR_AIUpdateTargetAttackData.c.

◆ OnThreatSectorEscalation()

void SCR_AIUpdateTargetAttackData::OnThreatSectorEscalation ( SCR_AISectorThreatFilter ts,
int sectorId,
float dangerValue )
inlineprotected

Definition at line 350 of file SCR_AIUpdateTargetAttackData.c.

◆ PosSameDirectionAsTarget()

bool SCR_AIUpdateTargetAttackData::PosSameDirectionAsTarget ( vector threatPos)
inlineprotected

Definition at line 412 of file SCR_AIUpdateTargetAttackData.c.

◆ ResolveAimpointTypes()

void SCR_AIUpdateTargetAttackData::ResolveAimpointTypes ( notnull BaseTarget target,
out EAimPointType aimpointType0,
out EAimPointType aimpointType1 )
inlineprotected

Definition at line 298 of file SCR_AIUpdateTargetAttackData.c.

◆ ResolveFireTree()

int SCR_AIUpdateTargetAttackData::ResolveFireTree ( BaseTarget target,
bool visible,
bool weaponReady,
out float fireRate )
inlineprotected

Definition at line 159 of file SCR_AIUpdateTargetAttackData.c.

◆ VisibleInPalette()

override bool SCR_AIUpdateTargetAttackData::VisibleInPalette ( )
inlinestaticprotected

Definition at line 447 of file SCR_AIUpdateTargetAttackData.c.

◆ WeaponHasBurstOrAutoMode()

bool SCR_AIUpdateTargetAttackData::WeaponHasBurstOrAutoMode ( notnull BaseWeaponComponent weaponComp,
int muzzleId )
inlinestaticprotected

Definition at line 274 of file SCR_AIUpdateTargetAttackData.c.

Member Data Documentation

◆ BASE_TARGET_PORT

const string SCR_AIUpdateTargetAttackData::BASE_TARGET_PORT = "BaseTarget"
staticprotected

Definition at line 4 of file SCR_AIUpdateTargetAttackData.c.

◆ BURST_FIRE_MAX_DISTANCE

const float SCR_AIUpdateTargetAttackData::BURST_FIRE_MAX_DISTANCE = 50.0
protected

Definition at line 27 of file SCR_AIUpdateTargetAttackData.c.

◆ COS_VIEW_CONE

const float SCR_AIUpdateTargetAttackData::COS_VIEW_CONE = 0.707
staticprotected

Definition at line 411 of file SCR_AIUpdateTargetAttackData.c.

◆ FIRE_TREE_BURST

const int SCR_AIUpdateTargetAttackData::FIRE_TREE_BURST = 1
protected

Definition at line 20 of file SCR_AIUpdateTargetAttackData.c.

◆ FIRE_TREE_INVALID

const int SCR_AIUpdateTargetAttackData::FIRE_TREE_INVALID = -1
protected

Definition at line 18 of file SCR_AIUpdateTargetAttackData.c.

◆ FIRE_TREE_LOOK

const int SCR_AIUpdateTargetAttackData::FIRE_TREE_LOOK = 0
protected

Definition at line 19 of file SCR_AIUpdateTargetAttackData.c.

◆ FIRE_TREE_LOOK_THREATS

const int SCR_AIUpdateTargetAttackData::FIRE_TREE_LOOK_THREATS = 5
protected

Definition at line 24 of file SCR_AIUpdateTargetAttackData.c.

◆ FIRE_TREE_MELEE

const int SCR_AIUpdateTargetAttackData::FIRE_TREE_MELEE = 4
protected

Definition at line 23 of file SCR_AIUpdateTargetAttackData.c.

◆ FIRE_TREE_SINGLE

const int SCR_AIUpdateTargetAttackData::FIRE_TREE_SINGLE = 2
protected

Definition at line 21 of file SCR_AIUpdateTargetAttackData.c.

◆ FIRE_TREE_SUPPRESSIVE

const int SCR_AIUpdateTargetAttackData::FIRE_TREE_SUPPRESSIVE = 3
protected

Definition at line 22 of file SCR_AIUpdateTargetAttackData.c.

◆ m_Agent

SCR_ChimeraAIAgent SCR_AIUpdateTargetAttackData::m_Agent
protected

Definition at line 29 of file SCR_AIUpdateTargetAttackData.c.

◆ m_bFirstSimulate

bool SCR_AIUpdateTargetAttackData::m_bFirstSimulate = true
protected

Definition at line 38 of file SCR_AIUpdateTargetAttackData.c.

◆ m_bLookAtThreats

bool SCR_AIUpdateTargetAttackData::m_bLookAtThreats
protected

Definition at line 43 of file SCR_AIUpdateTargetAttackData.c.

◆ m_bWeaponHasBurstOrAuto

bool SCR_AIUpdateTargetAttackData::m_bWeaponHasBurstOrAuto
protected

Definition at line 40 of file SCR_AIUpdateTargetAttackData.c.

◆ m_CharacterController

CharacterControllerComponent SCR_AIUpdateTargetAttackData::m_CharacterController
protected

Definition at line 31 of file SCR_AIUpdateTargetAttackData.c.

◆ m_CombatComponent

SCR_AICombatComponent SCR_AIUpdateTargetAttackData::m_CombatComponent
protected

Definition at line 30 of file SCR_AIUpdateTargetAttackData.c.

◆ m_LookAtThreatsEndTime

WorldTimestamp SCR_AIUpdateTargetAttackData::m_LookAtThreatsEndTime
protected

Definition at line 44 of file SCR_AIUpdateTargetAttackData.c.

◆ m_PerceptionComponent

PerceptionComponent SCR_AIUpdateTargetAttackData::m_PerceptionComponent
protected

Definition at line 32 of file SCR_AIUpdateTargetAttackData.c.

◆ m_Target

BaseTarget SCR_AIUpdateTargetAttackData::m_Target
protected

Definition at line 35 of file SCR_AIUpdateTargetAttackData.c.

◆ m_ThreatFilter

SCR_AISectorThreatFilter SCR_AIUpdateTargetAttackData::m_ThreatFilter
protected

Definition at line 34 of file SCR_AIUpdateTargetAttackData.c.

◆ m_UtilityComponent

SCR_AIUtilityComponent SCR_AIUpdateTargetAttackData::m_UtilityComponent
protected

Definition at line 33 of file SCR_AIUpdateTargetAttackData.c.

◆ m_vLookAtThreatsPos

vector SCR_AIUpdateTargetAttackData::m_vLookAtThreatsPos
protected

Definition at line 45 of file SCR_AIUpdateTargetAttackData.c.

◆ MELEE_MAX_DISTANCE

const float SCR_AIUpdateTargetAttackData::MELEE_MAX_DISTANCE = 2.0
protected

Definition at line 26 of file SCR_AIUpdateTargetAttackData.c.

◆ PORT_AIMPOINT_TYPE_0

const string SCR_AIUpdateTargetAttackData::PORT_AIMPOINT_TYPE_0 = "AimpointType0"
staticprotected

Definition at line 13 of file SCR_AIUpdateTargetAttackData.c.

◆ PORT_AIMPOINT_TYPE_1

const string SCR_AIUpdateTargetAttackData::PORT_AIMPOINT_TYPE_1 = "AimpointType1"
staticprotected

Definition at line 14 of file SCR_AIUpdateTargetAttackData.c.

◆ PORT_FIRE_RATE

const string SCR_AIUpdateTargetAttackData::PORT_FIRE_RATE = "FireRate"
staticprotected

Definition at line 12 of file SCR_AIUpdateTargetAttackData.c.

◆ PORT_FIRE_TREE_ID

const string SCR_AIUpdateTargetAttackData::PORT_FIRE_TREE_ID = "FireTreeId"
staticprotected

Definition at line 11 of file SCR_AIUpdateTargetAttackData.c.

◆ PORT_LAST_SEEN_POSITION

const string SCR_AIUpdateTargetAttackData::PORT_LAST_SEEN_POSITION = "LastSeenPosition"
staticprotected

Definition at line 8 of file SCR_AIUpdateTargetAttackData.c.

◆ PORT_THREAT_POSITION

const string SCR_AIUpdateTargetAttackData::PORT_THREAT_POSITION = "ThreatPosition"
staticprotected

Definition at line 9 of file SCR_AIUpdateTargetAttackData.c.

◆ PORT_VISIBLE

const string SCR_AIUpdateTargetAttackData::PORT_VISIBLE = "Visible"
staticprotected

Definition at line 10 of file SCR_AIUpdateTargetAttackData.c.

◆ s_aVarsIn

ref TStringArray SCR_AIUpdateTargetAttackData::s_aVarsIn
protected
Initial value:
= {
BASE_TARGET_PORT,
}

Definition at line 430 of file SCR_AIUpdateTargetAttackData.c.

◆ s_aVarsOut

◆ WEAPON_IS_READY

const string SCR_AIUpdateTargetAttackData::WEAPON_IS_READY = "WeaponReady"
staticprotected

Definition at line 5 of file SCR_AIUpdateTargetAttackData.c.


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