Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIUtilityComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_AIUtilityComponentClass

Functions

SCR_AIBehaviorBase EvaluateBehavior (BaseTarget unknownTarget)
bool ShouldKeepFormation ()
 Returns true if we should be mindful about our formation overall.
bool GetSubformationLeaderMoving ()
bool GetNearSubformationLeader ()
AIAgent GetSubformationLeaderAgent ()
 Returns leader agent of subformation of this agent.
bool IsSubformationLeader ()
 Returns true if this agent is leader of its subformation.
bool CanIndependentlyMove ()
SCR_AIBehaviorBase GetCurrentBehavior ()
SCR_CharacterControllerComponent GetCharacterController ()
void CancelAllGroupActivityBehaviors (notnull SCR_AIGroupUtilityComponent groupUtility)
void WrapBehaviorOutsideOfVehicle (SCR_AIActionBase action)
override void EOnInit (IEntity owner)
void OnCompartmentEntered (AIAgent agent, IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move)
void OnCompartmentLeft (AIAgent agent, IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move)
bool IsMilitary ()
 Are we a military AI or not?
override void EOnDiag (IEntity owner, float timeSlice)
vector GetOrigin ()
ScriptCallQueue GetCallqueue ()
 Returns CallQueue of this AI. It gets updated from EvaluateBehavior, so that it's synchronous with other AI logic.
void LookAt (vector pos, float duration=2)
void ~SCR_AIUtilityComponent ()

Variables

SCR_AIUtilityComponentClass m_OwnerEntity
SCR_CharacterControllerComponent m_OwnerController
FactionAffiliationComponent m_FactionComponent
SCR_AIConfigComponent m_ConfigComponent
SCR_AIInfoComponent m_AIInfo
SCR_AICombatComponent m_CombatComponent
PerceptionComponent m_PerceptionComponent
SCR_MailboxComponent m_Mailbox
SCR_AICharacterSettingsComponent m_SettingsComponent
ref SCR_AIThreatSystem m_ThreatSystem
ref SCR_AISectorThreatFilter m_SectorThreatFilter
ref SCR_AILookAction m_LookAction
ref SCR_AICommsHandler m_CommsHandler
ref SCR_AIBehaviorBase m_CurrentBehavior
 Used for avoiding constant casting, outside of this class use GetCurrentBehavior().
ref SCR_AICombatMoveState m_CombatMoveState
ref SCR_AIMovementDetector m_MovementDetector
ref ScriptCallQueue m_Callqueue
ref BaseTarget m_UnknownTarget
float m_fReactionUnknownTargetTime_ms
 WorldTime timestamp.
float m_fLastUpdateTime

Function Documentation

◆ CancelAllGroupActivityBehaviors()

void CancelAllGroupActivityBehaviors ( notnull SCR_AIGroupUtilityComponent groupUtility)
protected

Definition at line 349 of file SCR_AIUtilityComponent.c.

◆ CanIndependentlyMove()

bool CanIndependentlyMove ( )
protected

Independent attacking with movement is allowed only when group combat move is not present or unit state is EUnitState.IN_TURRET

Returns

Definition at line 326 of file SCR_AIUtilityComponent.c.

◆ EvaluateBehavior()

SCR_AIBehaviorBase EvaluateBehavior ( BaseTarget unknownTarget)
protected
Parameters
[in]unknownTarget
Returns

Definition at line 42 of file SCR_AIUtilityComponent.c.

◆ GetCallqueue()

ScriptCallQueue GetCallqueue ( )
protected

Returns CallQueue of this AI. It gets updated from EvaluateBehavior, so that it's synchronous with other AI logic.

Definition at line 478 of file SCR_AIUtilityComponent.c.

◆ GetCharacterController()

SCR_CharacterControllerComponent GetCharacterController ( )
protected

Definition at line 342 of file SCR_AIUtilityComponent.c.

◆ GetCurrentBehavior()

SCR_AIBehaviorBase GetCurrentBehavior ( )
protected
Returns

Definition at line 336 of file SCR_AIUtilityComponent.c.

◆ GetNearSubformationLeader()

bool GetNearSubformationLeader ( )
protected

Definition at line 233 of file SCR_AIUtilityComponent.c.

◆ GetOrigin()

vector GetOrigin ( )
protected
Returns

Definition at line 471 of file SCR_AIUtilityComponent.c.

◆ GetSubformationLeaderAgent()

AIAgent GetSubformationLeaderAgent ( )
protected

Returns leader agent of subformation of this agent.

Definition at line 253 of file SCR_AIUtilityComponent.c.

◆ GetSubformationLeaderMoving()

bool GetSubformationLeaderMoving ( )
protected

Returns state of m_MovementDetector of our subformation leader. See SCR_AIMovementFilter class.

Definition at line 222 of file SCR_AIUtilityComponent.c.

◆ IsMilitary()

bool IsMilitary ( )
protected

Are we a military AI or not?

Definition at line 454 of file SCR_AIUtilityComponent.c.

◆ IsSubformationLeader()

bool IsSubformationLeader ( )
protected

Returns true if this agent is leader of its subformation.

Definition at line 293 of file SCR_AIUtilityComponent.c.

◆ LookAt()

void LookAt ( vector pos,
float duration = 2 )
protected

Definition at line 484 of file SCR_AIUtilityComponent.c.

◆ OnCompartmentEntered()

void OnCompartmentEntered ( AIAgent agent,
IEntity targetEntity,
BaseCompartmentManagerComponent manager,
int mgrID,
int slotID,
bool move )
protected

Definition at line 428 of file SCR_AIUtilityComponent.c.

◆ OnCompartmentLeft()

void OnCompartmentLeft ( AIAgent agent,
IEntity targetEntity,
BaseCompartmentManagerComponent manager,
int mgrID,
int slotID,
bool move )
protected

Definition at line 442 of file SCR_AIUtilityComponent.c.

◆ ShouldKeepFormation()

bool ShouldKeepFormation ( )
protected

Returns true if we should be mindful about our formation overall.

Definition at line 214 of file SCR_AIUtilityComponent.c.

◆ WrapBehaviorOutsideOfVehicle()

void WrapBehaviorOutsideOfVehicle ( SCR_AIActionBase action)
protected
Parameters
[in]action

Definition at line 366 of file SCR_AIUtilityComponent.c.

◆ ~SCR_AIUtilityComponent()

void ~SCR_AIUtilityComponent ( )
protected

Definition at line 490 of file SCR_AIUtilityComponent.c.

Variable Documentation

◆ m_AIInfo

SCR_AIInfoComponent m_AIInfo
protected

Definition at line 12 of file SCR_AIUtilityComponent.c.

◆ m_Callqueue

ref ScriptCallQueue m_Callqueue
protected

Definition at line 27 of file SCR_AIUtilityComponent.c.

◆ m_CombatComponent

SCR_AICombatComponent m_CombatComponent
protected

Definition at line 13 of file SCR_AIUtilityComponent.c.

◆ m_CombatMoveState

ref SCR_AICombatMoveState m_CombatMoveState
protected

Definition at line 23 of file SCR_AIUtilityComponent.c.

◆ m_CommsHandler

ref SCR_AICommsHandler m_CommsHandler
protected

Definition at line 21 of file SCR_AIUtilityComponent.c.

◆ m_ConfigComponent

SCR_AIConfigComponent m_ConfigComponent
protected

Definition at line 11 of file SCR_AIUtilityComponent.c.

◆ m_CurrentBehavior

ref SCR_AIBehaviorBase m_CurrentBehavior
protected

Used for avoiding constant casting, outside of this class use GetCurrentBehavior().

Definition at line 22 of file SCR_AIUtilityComponent.c.

◆ m_FactionComponent

FactionAffiliationComponent m_FactionComponent
protected

Definition at line 10 of file SCR_AIUtilityComponent.c.

◆ m_fLastUpdateTime

float m_fLastUpdateTime
protected

Definition at line 32 of file SCR_AIUtilityComponent.c.

◆ m_fReactionUnknownTargetTime_ms

float m_fReactionUnknownTargetTime_ms
protected

WorldTime timestamp.

Definition at line 30 of file SCR_AIUtilityComponent.c.

◆ m_LookAction

ref SCR_AILookAction m_LookAction
protected

Definition at line 20 of file SCR_AIUtilityComponent.c.

◆ m_Mailbox

SCR_MailboxComponent m_Mailbox
protected

Definition at line 15 of file SCR_AIUtilityComponent.c.

◆ m_MovementDetector

ref SCR_AIMovementDetector m_MovementDetector
protected

Definition at line 24 of file SCR_AIUtilityComponent.c.

◆ m_OwnerController

SCR_CharacterControllerComponent m_OwnerController
protected

Definition at line 9 of file SCR_AIUtilityComponent.c.

◆ m_OwnerEntity

◆ m_PerceptionComponent

PerceptionComponent m_PerceptionComponent
protected

Definition at line 14 of file SCR_AIUtilityComponent.c.

◆ m_SectorThreatFilter

ref SCR_AISectorThreatFilter m_SectorThreatFilter
protected

Definition at line 19 of file SCR_AIUtilityComponent.c.

◆ m_SettingsComponent

SCR_AICharacterSettingsComponent m_SettingsComponent
protected

Definition at line 16 of file SCR_AIUtilityComponent.c.

◆ m_ThreatSystem

ref SCR_AIThreatSystem m_ThreatSystem
protected

Definition at line 18 of file SCR_AIUtilityComponent.c.

◆ m_UnknownTarget

ref BaseTarget m_UnknownTarget
protected

Definition at line 29 of file SCR_AIUtilityComponent.c.