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

Go to the source code of this file.

Classes

class  SCR_RandomSpawnManagerComponentClass

Functions

SCR_RandomSpawnManagerComponentClass SCR_BaseGameModeComponentClass Attribute ("20", params:"1 inf", desc:"Target cached spawnpoint amount for quicker simultaneous spawn")
override void OnGameModeStart ()
void InitializeGrid ()
bool RequestSpawnPosition (FactionKey playerFaction, array< SCR_SpawnPoint > currentWorldSpawns, out vector outPos)
void WakeUpGenerator ()
void ProcessGenerationBatch ()
bool TryGenerateSinglePoint (out vector outPos)
bool IsDynamicallySafe (vector pos, FactionKey playerFaction, array< SCR_SpawnPoint > currentWorldSpawns)

Variables

ref array< vectorm_aSafeCells = {}
bool m_bIsGenerating
float m_fCellSize
float m_fHalfCellOffset
float m_fRayLength
float m_fSafeDistanceSq
int m_iBatchDelayMs
int m_iLastUsedIndex
TraceFlags m_TraceFlags
ref TraceParam m_TraceParam
vector m_vCylinderVectorOffset
vector m_vTraceOffset
BaseWorld m_World

Function Documentation

◆ Attribute()

SCR_RandomSpawnManagerComponentClass SCR_BaseGameModeComponentClass Attribute ( "20" ,
params:"1 inf" ,
desc:"Target cached spawnpoint amount for quicker simultaneous spawn"  )

Definition at line 1 of file SCR_RandomSpawnManagerComponent.c.

◆ InitializeGrid()

void InitializeGrid ( )
protected

Definition at line 58 of file SCR_RandomSpawnManagerComponent.c.

◆ IsDynamicallySafe()

bool IsDynamicallySafe ( vector pos,
FactionKey playerFaction,
array< SCR_SpawnPoint > currentWorldSpawns )
protected

Definition at line 330 of file SCR_RandomSpawnManagerComponent.c.

◆ OnGameModeStart()

override void OnGameModeStart ( )
protected

Called on every machine when game mode starts. This can be immediate (if no pre-game period is set) or can happen after a certain delay, as deemed appropriate by the authority.

Definition at line 45 of file SCR_RandomSpawnManagerComponent.c.

◆ ProcessGenerationBatch()

void ProcessGenerationBatch ( )
protected

Definition at line 242 of file SCR_RandomSpawnManagerComponent.c.

◆ RequestSpawnPosition()

bool RequestSpawnPosition ( FactionKey playerFaction,
array< SCR_SpawnPoint > currentWorldSpawns,
out vector outPos )
protected
Parameters
[in]playerFaction
[in]currentWorldSpawns
[out]outPos
Returns

Definition at line 195 of file SCR_RandomSpawnManagerComponent.c.

◆ TryGenerateSinglePoint()

bool TryGenerateSinglePoint ( out vector outPos)
protected

Definition at line 265 of file SCR_RandomSpawnManagerComponent.c.

◆ WakeUpGenerator()

void WakeUpGenerator ( )
protected

Definition at line 229 of file SCR_RandomSpawnManagerComponent.c.

Variable Documentation

◆ m_aSafeCells

ref array<vector> m_aSafeCells = {}
protected

Definition at line 35 of file SCR_RandomSpawnManagerComponent.c.

◆ m_bIsGenerating

bool m_bIsGenerating
protected

Definition at line 36 of file SCR_RandomSpawnManagerComponent.c.

◆ m_fCellSize

float m_fCellSize
protected

Definition at line 37 of file SCR_RandomSpawnManagerComponent.c.

◆ m_fHalfCellOffset

float m_fHalfCellOffset
protected

Definition at line 37 of file SCR_RandomSpawnManagerComponent.c.

◆ m_fRayLength

float m_fRayLength
protected

Definition at line 37 of file SCR_RandomSpawnManagerComponent.c.

◆ m_fSafeDistanceSq

float m_fSafeDistanceSq
protected

Definition at line 37 of file SCR_RandomSpawnManagerComponent.c.

◆ m_iBatchDelayMs

int m_iBatchDelayMs
protected

Definition at line 38 of file SCR_RandomSpawnManagerComponent.c.

◆ m_iLastUsedIndex

int m_iLastUsedIndex
protected

Definition at line 38 of file SCR_RandomSpawnManagerComponent.c.

◆ m_TraceFlags

TraceFlags m_TraceFlags
protected

Definition at line 39 of file SCR_RandomSpawnManagerComponent.c.

◆ m_TraceParam

ref TraceParam m_TraceParam
protected

Definition at line 40 of file SCR_RandomSpawnManagerComponent.c.

◆ m_vCylinderVectorOffset

vector m_vCylinderVectorOffset
protected

Definition at line 41 of file SCR_RandomSpawnManagerComponent.c.

◆ m_vTraceOffset

vector m_vTraceOffset
protected

Definition at line 41 of file SCR_RandomSpawnManagerComponent.c.

◆ m_World

BaseWorld m_World
protected

Definition at line 42 of file SCR_RandomSpawnManagerComponent.c.