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

Go to the source code of this file.

Data Structures

class  SCR_PlayerSpawnPointManagerComponentClass
 

Functions

SCR_PlayerSpawnPointManagerComponentClass SCR_BaseGameModeComponentClass Attribute (uiwidget:UIWidgets.ResourcePickerThumbnail, params:"et")] protected ResourceName m_SpawnPointPrefab
 
void EnablePlayerSpawnPoints (bool enable, int notificationPlayerID=-1)
 
bool IsPlayerSpawnPointsEnabled ()
 
protected void AddSpawnPoint (int playerID)
 
protected void RemoveSpawnPoint (int playerID)
 
void EnableRadioVehicleSpawning (bool enable, int notificationPlayerID=-1)
 
protected void RPC_EnableRadioVehicleSpawning (bool enable)
 
bool IsRadioVehicleSpawningEnabled ()
 
ScriptInvokerBool GetOnRadioVehicleSpawningChanged ()
 
void EnableDeployableSpawnPoints (bool enable, int notificationPlayerID=-1)
 
protected void RPC_EnableDeployableSpawnPoints (bool enable)
 
bool IsDeployingSpawnPointsEnabled ()
 
ScriptInvokerBool GetOnSpawnPointDeployingEnabledChanged ()
 
override void OnPlayerConnected (int playerId)
 
override void OnPlayerDisconnected (int playerId, KickCauseCode cause, int timeout)
 
override void OnPlayerSpawnFinalize_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnHandlerComponent handlerComponent, SCR_SpawnData data, IEntity entity)
 
override void OnPlayerKilled (int playerId, IEntity playerEntity, IEntity killerEntity, notnull Instigator killer)
 
override bool RplSave (ScriptBitWriter writer)
 
override bool RplLoad (ScriptBitReader reader)
 
protected override void OnDelete (IEntity owner)
 

Variables

protected bool m_bEnablePlayerSpawnPoints
 
protected bool m_bRadioVehicleSpawningEnabled
 
protected bool m_bDeployableSpawnPointsEnabled
 
protected ref ScriptInvokerBool m_OnRadioVehicleSpawningChanged
 
protected ref ScriptInvokerBool m_OnSpawnPointDeployingEnabledChanged
 
protected ref map< int, SCR_PlayerSpawnPoint > m_SpawnPoints = new map<int, SCR_PlayerSpawnPoint>()
 

Function Documentation

◆ AddSpawnPoint()

protected void AddSpawnPoint ( int  playerID)

Definition at line 75 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ Attribute()

SCR_PlayerSpawnPointManagerComponentClass SCR_BaseGameModeComponentClass Attribute ( uiwidget:UIWidgets.  ResourcePickerThumbnail,
params:"et"   
)

◆ EnableDeployableSpawnPoints()

void EnableDeployableSpawnPoints ( bool  enable,
int  notificationPlayerID = -1 
)

Set if players are allowed to deploy their radio backpack. (Server only)

Parameters
[in]enableTrue to enable the system
[in]notificationPlayerIDif not -1 then a notification will be shown to all players that deployable radio logic is enabled/disabled

Definition at line 164 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ EnablePlayerSpawnPoints()

void EnablePlayerSpawnPoints ( bool  enable,
int  notificationPlayerID = -1 
)

Set status of automatic player spawn points. When enabled, a spawn point will be created for every connected player, even those who connect later. When disabled, all existing player spawn points will be deleted.

Parameters
[in]enableTrue to enable the system
[in]notificationPlayerIDif not -1 then a notification will be shown to all players that spawning on players is enabled/disabled

Definition at line 31 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ EnableRadioVehicleSpawning()

void EnableRadioVehicleSpawning ( bool  enable,
int  notificationPlayerID = -1 
)

Set if Radio vehicle Respawning is enabled for specific respawn vehicles eg: Command Trucks (Server)

Parameters
[in]enableTrue to enable the system
[in]notificationPlayerIDif not -1 then a notification will be shown to all players that spawning on stationary vehicles is enabled/disabled

Definition at line 116 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ GetOnRadioVehicleSpawningChanged()

ScriptInvokerBool GetOnRadioVehicleSpawningChanged ( )
Returns

Definition at line 152 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ GetOnSpawnPointDeployingEnabledChanged()

ScriptInvokerBool GetOnSpawnPointDeployingEnabledChanged ( )
Returns

Definition at line 200 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ IsDeployingSpawnPointsEnabled()

bool IsDeployingSpawnPointsEnabled ( )
Returns

Definition at line 193 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ IsPlayerSpawnPointsEnabled()

bool IsPlayerSpawnPointsEnabled ( )
Returns
true if the system is enabled, false otherwise

Definition at line 69 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ IsRadioVehicleSpawningEnabled()

bool IsRadioVehicleSpawningEnabled ( )
Returns

Definition at line 145 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ OnPlayerSpawnFinalize_S()

override void OnPlayerSpawnFinalize_S ( SCR_SpawnRequestComponent  requestComponent,
SCR_SpawnHandlerComponent  handlerComponent,
SCR_SpawnData  data,
IEntity  entity 
)
Parameters
[in]requestComponent
[in]handlerComponent
[in]data
[in]entity

Definition at line 221 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ RemoveSpawnPoint()

protected void RemoveSpawnPoint ( int  playerID)

Definition at line 102 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ RPC_EnableDeployableSpawnPoints()

protected void RPC_EnableDeployableSpawnPoints ( bool  enable)

Definition at line 183 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ RPC_EnableRadioVehicleSpawning()

protected void RPC_EnableRadioVehicleSpawning ( bool  enable)

Definition at line 135 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ RplLoad()

override bool RplLoad ( ScriptBitReader  reader)

Definition at line 250 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ RplSave()

override bool RplSave ( ScriptBitWriter  writer)

Definition at line 241 of file SCR_PlayerSpawnPointManagerComponent.c.

Variable Documentation

◆ m_bDeployableSpawnPointsEnabled

protected bool m_bDeployableSpawnPointsEnabled

Definition at line 18 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ m_bEnablePlayerSpawnPoints

protected bool m_bEnablePlayerSpawnPoints

Definition at line 12 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ m_bRadioVehicleSpawningEnabled

protected bool m_bRadioVehicleSpawningEnabled

Definition at line 15 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ m_OnRadioVehicleSpawningChanged

protected ref ScriptInvokerBool m_OnRadioVehicleSpawningChanged

Definition at line 20 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ m_OnSpawnPointDeployingEnabledChanged

protected ref ScriptInvokerBool m_OnSpawnPointDeployingEnabledChanged

Definition at line 21 of file SCR_PlayerSpawnPointManagerComponent.c.

◆ m_SpawnPoints

protected ref map<int, SCR_PlayerSpawnPoint> m_SpawnPoints = new map<int, SCR_PlayerSpawnPoint>()

Definition at line 23 of file SCR_PlayerSpawnPointManagerComponent.c.