Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
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
 
protected ref SCR_AICoverLock m_CoverLock
 
protected 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 

Definition at line 1 of file SCR_AICombatMoveState.c.

Function Documentation

◆ ApplyNewRequest()

void ApplyNewRequest ( notnull SCR_AICombatMoveRequestBase  request)

Definition at line 60 of file SCR_AICombatMoveState.c.

◆ ApplyRequestChangeStanceInCover()

void ApplyRequestChangeStanceInCover ( bool  exposed)

Definition at line 170 of file SCR_AICombatMoveState.c.

◆ ApplyRequestChangeStanceOutsideCover()

void ApplyRequestChangeStanceOutsideCover ( ECharacterStance  stance)

Definition at line 158 of file SCR_AICombatMoveState.c.

◆ AssignCover()

void AssignCover ( SCR_AICoverLock  newCover)

Definition at line 38 of file SCR_AICombatMoveState.c.

◆ CancelRequest()

void CancelRequest ( )

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)

Definition at line 81 of file SCR_AICombatMoveState.c.

◆ GetAssignedCover()

SCR_AICoverLock GetAssignedCover ( )

Definition at line 142 of file SCR_AICombatMoveState.c.

◆ GetRequest()

Definition at line 137 of file SCR_AICombatMoveState.c.

◆ IsAssignedCoverValid()

bool IsAssignedCoverValid ( )

Definition at line 147 of file SCR_AICombatMoveState.c.

◆ IsExecutingRequest()

bool IsExecutingRequest ( )

Definition at line 132 of file SCR_AICombatMoveState.c.

◆ IsHidingInValidCover()

bool IsHidingInValidCover ( )

Definition at line 127 of file SCR_AICombatMoveState.c.

◆ IsInValidCover()

bool IsInValidCover ( )

Definition at line 122 of file SCR_AICombatMoveState.c.

◆ IsMoving() [1/2]

bool IsMoving ( )

Definition at line 104 of file SCR_AICombatMoveState.c.

◆ IsMoving() [2/2]

bool IsMoving ( SCR_EAICombatMoveReason  eReason)

Definition at line 110 of file SCR_AICombatMoveState.c.

◆ IsMovingToCover()

bool IsMovingToCover ( )

Definition at line 116 of file SCR_AICombatMoveState.c.

◆ ReleaseCover()

void ReleaseCover ( )

Definition at line 47 of file SCR_AICombatMoveState.c.

◆ VerifyCurrentCover()

void VerifyCurrentCover ( vector  myPos)

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

Definition at line 29 of file SCR_AICombatMoveState.c.

◆ m_bExposedInCover

bool m_bExposedInCover

Definition at line 28 of file SCR_AICombatMoveState.c.

◆ m_bInCover

bool m_bInCover

Definition at line 27 of file SCR_AICombatMoveState.c.

◆ m_CoverLock

protected ref SCR_AICoverLock m_CoverLock

Definition at line 23 of file SCR_AICombatMoveState.c.

◆ m_fTimerInCover_s

float m_fTimerInCover_s

Definition at line 33 of file SCR_AICombatMoveState.c.

◆ m_fTimerRequest_s

float m_fTimerRequest_s

Definition at line 32 of file SCR_AICombatMoveState.c.

◆ m_fTimerStopped_s

float m_fTimerStopped_s

Definition at line 34 of file SCR_AICombatMoveState.c.

◆ m_Request

protected ref SCR_AICombatMoveRequestBase m_Request

Definition at line 25 of file SCR_AICombatMoveState.c.

◆ MOVEMENT_FAILED

enum SCR_EAICombatMoveRequestState MOVEMENT_FAILED

◆ NONE

◆ UNDEFINED