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

Go to the source code of this file.

Enumerations

enum  SCR_EAICombatMoveRequestState {
  IDLE , EXECUTING , SUCCESS , FAIL ,
  CANCELED
}

Functions

void AssignCover (SCR_AICoverLock newCover)
void ReleaseCover ()
void ApplyNewRequest (notnull SCR_AICombatMoveRequestBase request)
void CancelRequest ()
void EnableAiming (bool enable)
void VerifyCurrentCover (vector myPos)
bool IsMoving ()
bool IsMoving (SCR_EAICombatMoveReason eReason)
bool IsMovingToCover ()
bool IsInValidCover ()
bool IsHidingInValidCover ()
bool IsExecutingRequest ()
SCR_AICombatMoveRequestBase GetRequest ()
SCR_AICoverLock GetAssignedCover ()
bool IsAssignedCoverValid ()
void ApplyRequestChangeStanceOutsideCover (ECharacterStance stance)
void ApplyRequestChangeStanceInCover (bool exposed)

Variables

enum SCR_EAICombatMoveRequestState NONE
enum SCR_EAICombatMoveRequestState UNDEFINED
enum SCR_EAICombatMoveRequestState COVER_NOT_FOUND
enum SCR_EAICombatMoveRequestState MOVEMENT_FAILED
enum SCR_EAICombatMoveRequestState DISTANCE_IN_COVER_MAX_SQ = 1.0
ref SCR_AICoverLock m_CoverLock
ref SCR_AICombatMoveRequestBase m_Request
bool m_bInCover
bool m_bExposedInCover
bool m_bAimAtTarget = true
float m_fTimerRequest_s
float m_fTimerInCover_s
float m_fTimerStopped_s

Enumeration Type Documentation

◆ SCR_EAICombatMoveRequestState

Enumerator
IDLE 
EXECUTING 
SUCCESS 
FAIL 
CANCELED 

Job was canceled and will not do any additional actions.

Definition at line 1 of file SCR_AICombatMoveState.c.

Function Documentation

◆ ApplyNewRequest()

void ApplyNewRequest ( notnull SCR_AICombatMoveRequestBase request)
protected

Definition at line 60 of file SCR_AICombatMoveState.c.

◆ ApplyRequestChangeStanceInCover()

void ApplyRequestChangeStanceInCover ( bool exposed)
protected

Definition at line 170 of file SCR_AICombatMoveState.c.

◆ ApplyRequestChangeStanceOutsideCover()

void ApplyRequestChangeStanceOutsideCover ( ECharacterStance stance)
protected

Definition at line 158 of file SCR_AICombatMoveState.c.

◆ AssignCover()

void AssignCover ( SCR_AICoverLock newCover)
protected

Definition at line 38 of file SCR_AICombatMoveState.c.

◆ CancelRequest()

void CancelRequest ( )
protected

Unreferences current request and sets it as 'canceled' if it was running !!! The actual BT which handles requests won't abort the current request, it's not done yet

Definition at line 72 of file SCR_AICombatMoveState.c.

◆ EnableAiming()

void EnableAiming ( bool enable)
protected

Definition at line 81 of file SCR_AICombatMoveState.c.

◆ GetAssignedCover()

SCR_AICoverLock GetAssignedCover ( )
protected

Definition at line 142 of file SCR_AICombatMoveState.c.

◆ GetRequest()

GetPrefabGUIDResponse JsonApiStruct GetRequest ( )
protected

Definition at line 137 of file SCR_AICombatMoveState.c.

◆ IsAssignedCoverValid()

bool IsAssignedCoverValid ( )
protected

Definition at line 147 of file SCR_AICombatMoveState.c.

◆ IsExecutingRequest()

bool IsExecutingRequest ( )
protected

Definition at line 132 of file SCR_AICombatMoveState.c.

◆ IsHidingInValidCover()

bool IsHidingInValidCover ( )
protected

Definition at line 127 of file SCR_AICombatMoveState.c.

◆ IsInValidCover()

bool IsInValidCover ( )
protected

Definition at line 122 of file SCR_AICombatMoveState.c.

◆ IsMoving() [1/2]

bool IsMoving ( )
protected

Definition at line 104 of file SCR_AICombatMoveState.c.

◆ IsMoving() [2/2]

bool IsMoving ( SCR_EAICombatMoveReason eReason)
protected

Definition at line 110 of file SCR_AICombatMoveState.c.

◆ IsMovingToCover()

bool IsMovingToCover ( )
protected

Definition at line 116 of file SCR_AICombatMoveState.c.

◆ ReleaseCover()

void ReleaseCover ( )
protected

Definition at line 47 of file SCR_AICombatMoveState.c.

◆ VerifyCurrentCover()

void VerifyCurrentCover ( vector myPos)
protected

Verifies our distance to current cover and releases cover if we are too far from it This should be called periodically

Definition at line 89 of file SCR_AICombatMoveState.c.

Variable Documentation

◆ COVER_NOT_FOUND

enum SCR_EAICombatMoveRequestState COVER_NOT_FOUND

◆ DISTANCE_IN_COVER_MAX_SQ

enum SCR_EAICombatMoveRequestState DISTANCE_IN_COVER_MAX_SQ = 1.0

◆ m_bAimAtTarget

bool m_bAimAtTarget = true
protected

Definition at line 29 of file SCR_AICombatMoveState.c.

◆ m_bExposedInCover

bool m_bExposedInCover
protected

Definition at line 28 of file SCR_AICombatMoveState.c.

◆ m_bInCover

bool m_bInCover
protected

Definition at line 27 of file SCR_AICombatMoveState.c.

◆ m_CoverLock

ref SCR_AICoverLock m_CoverLock
protected

Definition at line 23 of file SCR_AICombatMoveState.c.

◆ m_fTimerInCover_s

float m_fTimerInCover_s
protected

Definition at line 33 of file SCR_AICombatMoveState.c.

◆ m_fTimerRequest_s

float m_fTimerRequest_s
protected

Definition at line 32 of file SCR_AICombatMoveState.c.

◆ m_fTimerStopped_s

float m_fTimerStopped_s
protected

Definition at line 34 of file SCR_AICombatMoveState.c.

◆ m_Request

ref SCR_AICombatMoveRequestBase m_Request
protected

Definition at line 25 of file SCR_AICombatMoveState.c.

◆ MOVEMENT_FAILED

enum SCR_EAICombatMoveRequestState MOVEMENT_FAILED

◆ NONE

◆ UNDEFINED