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

Protected Member Functions

void OnInit ()
void OnCleanup ()
void OnUpdatePoint (WorldUpdatePointArgs args)
override event bool ShouldBePaused ()
OnAmbientVehicleSpawnedInvoker GetOnVehicleSpawned ()
void UpdateCheckInterval ()
void RefreshPlayerList ()
void OnPlayerSpawnedOrDeleted (int playerId, IEntity player)
void ProcessSpawnpoint (int spawnpointIndex)
void RegisterSpawnpoint (notnull SCR_AmbientVehicleSpawnPointComponent spawnpoint)
void UnregisterSpawnpoint (notnull SCR_AmbientVehicleSpawnPointComponent spawnpoint)
int GetSpawnpoints (out notnull array< SCR_AmbientVehicleSpawnPointComponent > spawnpoints)
void OnPlayerDisconnected (int playerId, KickCauseCode cause=KickCauseCode.NONE, int timeout=-1)
void OnPlayerKilled (notnull SCR_InstigatorContextData instigatorContextData)

Static Protected Member Functions

static SCR_AmbientVehicleSystem GetInstance ()

Protected Attributes

ref array< SCR_AmbientVehicleSpawnPointComponent > m_aSpawnpoints = {}
ref array< IEntitym_aPlayers = {}
ref OnAmbientVehicleSpawnedInvoker m_OnVehicleSpawned
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 PARKED_THRESHOLD = 5
static const int SPAWN_RADIUS_MIN_SQ = 500 * 500
static const int SPAWN_RADIUS_MAX_SQ = 1000 * 1000
static const int DESPAWN_RADIUS_DIFF_SQ = 200 * 200

Detailed Description

Definition at line 7 of file SCR_AmbientVehicleSystem.c.

Member Function Documentation

◆ GetInstance()

SCR_AmbientVehicleSystem SCR_AmbientVehicleSystem::GetInstance ( )
inlinestaticprotected

Definition at line 103 of file SCR_AmbientVehicleSystem.c.

◆ GetOnVehicleSpawned()

OnAmbientVehicleSpawnedInvoker SCR_AmbientVehicleSystem::GetOnVehicleSpawned ( )
inlineprotected

Definition at line 113 of file SCR_AmbientVehicleSystem.c.

◆ GetSpawnpoints()

int SCR_AmbientVehicleSystem::GetSpawnpoints ( out notnull array< SCR_AmbientVehicleSpawnPointComponent > spawnpoints)
inlineprotected

Definition at line 292 of file SCR_AmbientVehicleSystem.c.

◆ OnCleanup()

void SCR_AmbientVehicleSystem::OnCleanup ( )
inlineprotected

Definition at line 64 of file SCR_AmbientVehicleSystem.c.

◆ OnInit()

void SCR_AmbientVehicleSystem::OnInit ( )
inlineprotected

Definition at line 38 of file SCR_AmbientVehicleSystem.c.

◆ OnPlayerDisconnected()

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

Definition at line 298 of file SCR_AmbientVehicleSystem.c.

◆ OnPlayerKilled()

void SCR_AmbientVehicleSystem::OnPlayerKilled ( notnull SCR_InstigatorContextData instigatorContextData)
inlineprotected

Definition at line 304 of file SCR_AmbientVehicleSystem.c.

◆ OnPlayerSpawnedOrDeleted()

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

Definition at line 152 of file SCR_AmbientVehicleSystem.c.

◆ OnUpdatePoint()

void SCR_AmbientVehicleSystem::OnUpdatePoint ( WorldUpdatePointArgs args)
inlineprotected

Definition at line 77 of file SCR_AmbientVehicleSystem.c.

◆ ProcessSpawnpoint()

void SCR_AmbientVehicleSystem::ProcessSpawnpoint ( int spawnpointIndex)
inlineprotected

Definition at line 158 of file SCR_AmbientVehicleSystem.c.

◆ RefreshPlayerList()

void SCR_AmbientVehicleSystem::RefreshPlayerList ( )
inlineprotected

Definition at line 128 of file SCR_AmbientVehicleSystem.c.

◆ RegisterSpawnpoint()

void SCR_AmbientVehicleSystem::RegisterSpawnpoint ( notnull SCR_AmbientVehicleSpawnPointComponent spawnpoint)
inlineprotected

Definition at line 267 of file SCR_AmbientVehicleSystem.c.

◆ ShouldBePaused()

override event bool SCR_AmbientVehicleSystem::ShouldBePaused ( )
inlineprotected

Definition at line 97 of file SCR_AmbientVehicleSystem.c.

◆ UnregisterSpawnpoint()

void SCR_AmbientVehicleSystem::UnregisterSpawnpoint ( notnull SCR_AmbientVehicleSpawnPointComponent spawnpoint)
inlineprotected

Definition at line 277 of file SCR_AmbientVehicleSystem.c.

◆ UpdateCheckInterval()

void SCR_AmbientVehicleSystem::UpdateCheckInterval ( )
inlineprotected

Definition at line 122 of file SCR_AmbientVehicleSystem.c.

Member Data Documentation

◆ CHECK_INTERVAL

const int SCR_AmbientVehicleSystem::CHECK_INTERVAL = 3
staticprotected

Definition at line 17 of file SCR_AmbientVehicleSystem.c.

◆ DESPAWN_RADIUS_DIFF_SQ

const int SCR_AmbientVehicleSystem::DESPAWN_RADIUS_DIFF_SQ = 200 * 200
staticprotected

Definition at line 23 of file SCR_AmbientVehicleSystem.c.

◆ DESPAWN_TIMEOUT

const int SCR_AmbientVehicleSystem::DESPAWN_TIMEOUT = 10000
staticprotected

Definition at line 18 of file SCR_AmbientVehicleSystem.c.

◆ m_aPlayers

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

Definition at line 26 of file SCR_AmbientVehicleSystem.c.

◆ m_aSpawnpoints

ref array<SCR_AmbientVehicleSpawnPointComponent> SCR_AmbientVehicleSystem::m_aSpawnpoints = {}
protected

Definition at line 25 of file SCR_AmbientVehicleSystem.c.

◆ m_fCheckInterval

float SCR_AmbientVehicleSystem::m_fCheckInterval
protected

Definition at line 35 of file SCR_AmbientVehicleSystem.c.

◆ m_fTimer

float SCR_AmbientVehicleSystem::m_fTimer
protected

Definition at line 34 of file SCR_AmbientVehicleSystem.c.

◆ m_iDespawnDistanceSq

int SCR_AmbientVehicleSystem::m_iDespawnDistanceSq
protected

Definition at line 32 of file SCR_AmbientVehicleSystem.c.

◆ m_iIndexToCheck

int SCR_AmbientVehicleSystem::m_iIndexToCheck
protected

Definition at line 30 of file SCR_AmbientVehicleSystem.c.

◆ m_iSpawnDistanceSq

int SCR_AmbientVehicleSystem::m_iSpawnDistanceSq
protected

Definition at line 31 of file SCR_AmbientVehicleSystem.c.

◆ m_OnVehicleSpawned

ref OnAmbientVehicleSpawnedInvoker SCR_AmbientVehicleSystem::m_OnVehicleSpawned
protected

Definition at line 28 of file SCR_AmbientVehicleSystem.c.

◆ PARKED_THRESHOLD

const int SCR_AmbientVehicleSystem::PARKED_THRESHOLD = 5
staticprotected

Definition at line 19 of file SCR_AmbientVehicleSystem.c.

◆ SPAWN_RADIUS_MAX_SQ

const int SCR_AmbientVehicleSystem::SPAWN_RADIUS_MAX_SQ = 1000 * 1000
staticprotected

Definition at line 22 of file SCR_AmbientVehicleSystem.c.

◆ SPAWN_RADIUS_MIN_SQ

const int SCR_AmbientVehicleSystem::SPAWN_RADIUS_MIN_SQ = 500 * 500
staticprotected

Definition at line 21 of file SCR_AmbientVehicleSystem.c.


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