Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_WaveRespawnTimerComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_WaveRespawnTimerComponentClass
 

Macros

#define RESPAWN_TIMER_COMPONENT_DEBUG
 

Functions

SCR_WaveRespawnTimerComponentClass SCR_RespawnTimerComponentClass RplProp ()] protected ref array< ref SCR_RespawnTimer > m_aFactionRespawnTimers
 Must be attached to a GameMode. More...
 
override void DrawDebugInfo ()
 
override bool GetCanPlayerSpawn (int playerID, float additionalTime=0)
 
override int GetPlayerRemainingTime (int playerID, float additionalTime=0)
 
override void OnPlayerSpawned (int playerId, IEntity controlledEntity)
 
override void OnPlayerKilled (int playerId, IEntity playerEntity, IEntity killerEntity, notnull Instigator killer)
 
override void OnPlayerDeleted (int playerId, IEntity player)
 
override void OnPlayerConnected (int playerId)
 
void RpcDo_StartFactionTimer (int factionIndex, WorldTimestamp rplTime)
 
override void EOnFrame (IEntity owner, float timeSlice)
 
override void OnPostInit (IEntity owner)
 Initialise this component. More...
 
override void EOnInit (IEntity owner)
 Initialise this component with data from FactionsManager. More...
 

Variables

protected ref array< intm_aAllowedPlayers = {}
 
protected ref array< intm_aWaitingPlayers = {}
 

Macro Definition Documentation

◆ RESPAWN_TIMER_COMPONENT_DEBUG

#define RESPAWN_TIMER_COMPONENT_DEBUG

Function Documentation

◆ DrawDebugInfo()

override void DrawDebugInfo ( )

Definition at line 24 of file SCR_WaveRespawnTimerComponent.c.

◆ EOnFrame()

override void EOnFrame ( IEntity  owner,
float  timeSlice 
)

Definition at line 161 of file SCR_WaveRespawnTimerComponent.c.

◆ GetCanPlayerSpawn()

override bool GetCanPlayerSpawn ( int  playerID,
float  additionalTime = 0 
)

Definition at line 74 of file SCR_WaveRespawnTimerComponent.c.

◆ GetPlayerRemainingTime()

override int GetPlayerRemainingTime ( int  playerID,
float  additionalTime = 0 
)

Definition at line 80 of file SCR_WaveRespawnTimerComponent.c.

◆ OnPlayerDeleted()

override void OnPlayerDeleted ( int  playerId,
IEntity  player 
)

Called after a player gets deleted.

Parameters
[in]playerIdPlayer ID
[in]playerPlayer entity

Definition at line 133 of file SCR_WaveRespawnTimerComponent.c.

◆ RpcDo_StartFactionTimer()

void RpcDo_StartFactionTimer ( int  factionIndex,
WorldTimestamp  rplTime 
)

Broadcasts that sets timer duration for provided faction.

Parameters
durationDuration of respawn timer.
[in]factionIndex
[in]rplTime

Definition at line 154 of file SCR_WaveRespawnTimerComponent.c.

◆ RplProp()

Must be attached to a GameMode.

Respawn timers per faction

Must be attached to a GameMode.

Variable Documentation

◆ m_aAllowedPlayers

protected ref array<int> m_aAllowedPlayers = {}

Definition at line 17 of file SCR_WaveRespawnTimerComponent.c.

◆ m_aWaitingPlayers

protected ref array<int> m_aWaitingPlayers = {}

Definition at line 20 of file SCR_WaveRespawnTimerComponent.c.