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

Protected Member Functions

void OnInit ()
void OnCleanup ()
void OnUpdatePoint (WorldUpdatePointArgs args)
override event bool ShouldBePaused ()
int ClampSpawnDistanceSq (int spawnDistanceSq)
int ClampDespawnDistanceSq (int despawnDistanceSq)
void UpdateCheckInterval ()
void RefreshPlayerList ()
void OnPlayerSpawnedOrDeleted (int playerId, IEntity player)
void ProcessSpawnpoint (int spawnpointIndex)
void RegisterPatrol (notnull SCR_AmbientPatrolSpawnPointComponent patrol)
void UnregisterPatrol (notnull SCR_AmbientPatrolSpawnPointComponent patrol)
int GetPatrols (notnull out array< SCR_AmbientPatrolSpawnPointComponent > patrols)
void OnPlayerDisconnected (int playerId, KickCauseCode cause=KickCauseCode.NONE, int timeout=-1)
void OnPlayerKilled (notnull SCR_InstigatorContextData instigatorContextData)

Static Protected Member Functions

static SCR_AmbientPatrolSystem GetInstance ()

Protected Attributes

int m_iMinSpawnDistance
int m_iMaxSpawnDistance
int m_iDespawnBufferDistance
int m_iMinDespawnDistance
int m_iMaxDespawnDistance
int m_iMinSpawnDistanceSq = m_iMinSpawnDistance * m_iMinSpawnDistance
int m_iMaxSpawnDistanceSq = m_iMaxSpawnDistance * m_iMaxSpawnDistance
int m_iDespawnBufferDistanceSq = m_iDespawnBufferDistance * m_iDespawnBufferDistance
int m_iMinDespawnDistanceSq = m_iMinDespawnDistance * m_iMinDespawnDistance
int m_iMaxDespawnDistanceSq = m_iMaxDespawnDistance * m_iMaxDespawnDistance
ref array< SCR_AmbientPatrolSpawnPointComponent > m_aPatrols = {}
ref array< IEntitym_aPlayers = {}
int m_iIndexToCheck
int m_iSpawnDistanceSq
int m_iDespawnDistanceSq
float m_fTimer
float m_fCheckInterval

Static Protected Attributes

static const int CHECK_INTERVAL = 3
static const int DESPAWN_TIMEOUT = 10000
static const int SPAWN_RADIUS_BLOCK_SQ = 150 * 150

Detailed Description

Definition at line 2 of file SCR_AmbientPatrolSystem.c.

Member Function Documentation

◆ ClampDespawnDistanceSq()

int SCR_AmbientPatrolSystem::ClampDespawnDistanceSq ( int despawnDistanceSq)
inlineprotected

Definition at line 134 of file SCR_AmbientPatrolSystem.c.

◆ ClampSpawnDistanceSq()

int SCR_AmbientPatrolSystem::ClampSpawnDistanceSq ( int spawnDistanceSq)
inlineprotected

Definition at line 128 of file SCR_AmbientPatrolSystem.c.

◆ GetInstance()

SCR_AmbientPatrolSystem SCR_AmbientPatrolSystem::GetInstance ( )
inlinestaticprotected

Definition at line 117 of file SCR_AmbientPatrolSystem.c.

◆ GetPatrols()

int SCR_AmbientPatrolSystem::GetPatrols ( notnull out array< SCR_AmbientPatrolSpawnPointComponent > patrols)
inlineprotected

Definition at line 307 of file SCR_AmbientPatrolSystem.c.

◆ OnCleanup()

void SCR_AmbientPatrolSystem::OnCleanup ( )
inlineprotected

Definition at line 73 of file SCR_AmbientPatrolSystem.c.

◆ OnInit()

void SCR_AmbientPatrolSystem::OnInit ( )
inlineprotected

Definition at line 49 of file SCR_AmbientPatrolSystem.c.

◆ OnPlayerDisconnected()

void SCR_AmbientPatrolSystem::OnPlayerDisconnected ( int playerId,
KickCauseCode cause = KickCauseCode.NONE,
int timeout = -1 )
inlineprotected

Definition at line 313 of file SCR_AmbientPatrolSystem.c.

◆ OnPlayerKilled()

void SCR_AmbientPatrolSystem::OnPlayerKilled ( notnull SCR_InstigatorContextData instigatorContextData)
inlineprotected

Definition at line 319 of file SCR_AmbientPatrolSystem.c.

◆ OnPlayerSpawnedOrDeleted()

void SCR_AmbientPatrolSystem::OnPlayerSpawnedOrDeleted ( int playerId,
IEntity player )
inlineprotected

Definition at line 170 of file SCR_AmbientPatrolSystem.c.

◆ OnUpdatePoint()

void SCR_AmbientPatrolSystem::OnUpdatePoint ( WorldUpdatePointArgs args)
inlineprotected

Definition at line 86 of file SCR_AmbientPatrolSystem.c.

◆ ProcessSpawnpoint()

void SCR_AmbientPatrolSystem::ProcessSpawnpoint ( int spawnpointIndex)
inlineprotected

Definition at line 176 of file SCR_AmbientPatrolSystem.c.

◆ RefreshPlayerList()

void SCR_AmbientPatrolSystem::RefreshPlayerList ( )
inlineprotected

Definition at line 146 of file SCR_AmbientPatrolSystem.c.

◆ RegisterPatrol()

void SCR_AmbientPatrolSystem::RegisterPatrol ( notnull SCR_AmbientPatrolSpawnPointComponent patrol)
inlineprotected

Definition at line 282 of file SCR_AmbientPatrolSystem.c.

◆ ShouldBePaused()

override event bool SCR_AmbientPatrolSystem::ShouldBePaused ( )
inlineprotected

Definition at line 111 of file SCR_AmbientPatrolSystem.c.

◆ UnregisterPatrol()

void SCR_AmbientPatrolSystem::UnregisterPatrol ( notnull SCR_AmbientPatrolSpawnPointComponent patrol)
inlineprotected

Definition at line 292 of file SCR_AmbientPatrolSystem.c.

◆ UpdateCheckInterval()

void SCR_AmbientPatrolSystem::UpdateCheckInterval ( )
inlineprotected

Definition at line 140 of file SCR_AmbientPatrolSystem.c.

Member Data Documentation

◆ CHECK_INTERVAL

const int SCR_AmbientPatrolSystem::CHECK_INTERVAL = 3
staticprotected

Definition at line 12 of file SCR_AmbientPatrolSystem.c.

◆ DESPAWN_TIMEOUT

const int SCR_AmbientPatrolSystem::DESPAWN_TIMEOUT = 10000
staticprotected

Definition at line 13 of file SCR_AmbientPatrolSystem.c.

◆ m_aPatrols

ref array<SCR_AmbientPatrolSpawnPointComponent> SCR_AmbientPatrolSystem::m_aPatrols = {}
protected

Definition at line 38 of file SCR_AmbientPatrolSystem.c.

◆ m_aPlayers

ref array<IEntity> SCR_AmbientPatrolSystem::m_aPlayers = {}
protected

Definition at line 39 of file SCR_AmbientPatrolSystem.c.

◆ m_fCheckInterval

float SCR_AmbientPatrolSystem::m_fCheckInterval
protected

Definition at line 46 of file SCR_AmbientPatrolSystem.c.

◆ m_fTimer

float SCR_AmbientPatrolSystem::m_fTimer
protected

Definition at line 45 of file SCR_AmbientPatrolSystem.c.

◆ m_iDespawnBufferDistance

int SCR_AmbientPatrolSystem::m_iDespawnBufferDistance
protected

Definition at line 23 of file SCR_AmbientPatrolSystem.c.

◆ m_iDespawnBufferDistanceSq

int SCR_AmbientPatrolSystem::m_iDespawnBufferDistanceSq = m_iDespawnBufferDistance * m_iDespawnBufferDistance
protected

Definition at line 34 of file SCR_AmbientPatrolSystem.c.

◆ m_iDespawnDistanceSq

int SCR_AmbientPatrolSystem::m_iDespawnDistanceSq
protected

Definition at line 43 of file SCR_AmbientPatrolSystem.c.

◆ m_iIndexToCheck

int SCR_AmbientPatrolSystem::m_iIndexToCheck
protected

Definition at line 41 of file SCR_AmbientPatrolSystem.c.

◆ m_iMaxDespawnDistance

int SCR_AmbientPatrolSystem::m_iMaxDespawnDistance
protected

Definition at line 29 of file SCR_AmbientPatrolSystem.c.

◆ m_iMaxDespawnDistanceSq

int SCR_AmbientPatrolSystem::m_iMaxDespawnDistanceSq = m_iMaxDespawnDistance * m_iMaxDespawnDistance
protected

Definition at line 36 of file SCR_AmbientPatrolSystem.c.

◆ m_iMaxSpawnDistance

int SCR_AmbientPatrolSystem::m_iMaxSpawnDistance
protected

Definition at line 20 of file SCR_AmbientPatrolSystem.c.

◆ m_iMaxSpawnDistanceSq

int SCR_AmbientPatrolSystem::m_iMaxSpawnDistanceSq = m_iMaxSpawnDistance * m_iMaxSpawnDistance
protected

Definition at line 32 of file SCR_AmbientPatrolSystem.c.

◆ m_iMinDespawnDistance

int SCR_AmbientPatrolSystem::m_iMinDespawnDistance
protected

Definition at line 26 of file SCR_AmbientPatrolSystem.c.

◆ m_iMinDespawnDistanceSq

int SCR_AmbientPatrolSystem::m_iMinDespawnDistanceSq = m_iMinDespawnDistance * m_iMinDespawnDistance
protected

Definition at line 35 of file SCR_AmbientPatrolSystem.c.

◆ m_iMinSpawnDistance

int SCR_AmbientPatrolSystem::m_iMinSpawnDistance
protected

Definition at line 17 of file SCR_AmbientPatrolSystem.c.

◆ m_iMinSpawnDistanceSq

int SCR_AmbientPatrolSystem::m_iMinSpawnDistanceSq = m_iMinSpawnDistance * m_iMinSpawnDistance
protected

Definition at line 31 of file SCR_AmbientPatrolSystem.c.

◆ m_iSpawnDistanceSq

int SCR_AmbientPatrolSystem::m_iSpawnDistanceSq
protected

Definition at line 42 of file SCR_AmbientPatrolSystem.c.

◆ SPAWN_RADIUS_BLOCK_SQ

const int SCR_AmbientPatrolSystem::SPAWN_RADIUS_BLOCK_SQ = 150 * 150
staticprotected

Definition at line 14 of file SCR_AmbientPatrolSystem.c.


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