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

Go to the source code of this file.

Classes

class  SCR_GameModeCleanSweepClass

Functions

SCR_GameModeCleanSweepClass SCR_BaseGameModeClass Attribute ("6")
void OnAreaChanged ()
void RespawnPlayers ()
void SetSwapSides (bool swapSides)
void SetArea (int targetAreaID)
void CheckActiveAreaState ()
override void EOnFrame (IEntity owner, float timeSlice)
void ReplicatedShowHint (int hintID, float showTime)
void RPC_ShowHint (int hintID, float time)
void ShowHint (int hintID, float showTime)
void HideHint ()
void SpawnEnemies ()
override void OnPlayerKilled (int playerId, IEntity playerEntity, IEntity killerEntity, notnull Instigator killer)
vector GetPlayersCenter ()
int GetActiveAreas (notnull array< SCR_CleanSweepArea > activeAreas)
void InitializeServer ()
PlayerController GetGameMaster ()
PlayerController PickNewGameMaster (int exclude=-1)
void ShowAreaSelectionToGameMaster ()
void ShowAreaSelectionUI ()
 Used by SCR_CleanSweepNetworkComponent.
override void OnPlayerRegistered (int playerId)
override void OnPlayerDisconnected (int playerId, KickCauseCode cause, int timeout)
override void EOnInit (IEntity owner)

Variables

UI layouts Menus CleanSweep CleanSweepAreaSelection layout
UI layouts Menus CleanSweep CleanSweepAreaSelection desc
bool m_bSwapSides
Widget m_wRoot
Widget m_wAreaSelectionWidget
TextWidget m_wText
ref array< IEntitym_aEnemySoldiers = {}
ref array< SCR_AIGroupm_aGroups
ref array< SCR_SpawnPointm_aEnemySpawnPoints
ref array< SCR_SpawnPointm_aPlayerSpawnPoints
AIWaypoint m_AttackWP
int m_iGameMasterID = -1
int m_iAreaID = INVALID_AREA_INDEX
const int INVALID_AREA_INDEX = -1
const string ENEMY_PRESENCE_ELIMINATED_TEXT = "Enemy presence eliminated!\nNew area is being selected.\nPlease wait."

Function Documentation

◆ Attribute()

Definition at line 1 of file SCR_GameModeCleanSweep.c.

◆ CheckActiveAreaState()

void CheckActiveAreaState ( )
protected

Definition at line 171 of file SCR_GameModeCleanSweep.c.

◆ EOnFrame()

override void EOnFrame ( IEntity owner,
float timeSlice )
protected

Definition at line 214 of file SCR_GameModeCleanSweep.c.

◆ GetActiveAreas()

int GetActiveAreas ( notnull array< SCR_CleanSweepArea > activeAreas)
protected

Definition at line 371 of file SCR_GameModeCleanSweep.c.

◆ GetGameMaster()

PlayerController GetGameMaster ( )
protected

Definition at line 400 of file SCR_GameModeCleanSweep.c.

◆ GetPlayersCenter()

vector GetPlayersCenter ( )
protected

Definition at line 342 of file SCR_GameModeCleanSweep.c.

◆ HideHint()

void HideHint ( )
protected

Definition at line 256 of file SCR_GameModeCleanSweep.c.

◆ InitializeServer()

void InitializeServer ( )
protected

Definition at line 391 of file SCR_GameModeCleanSweep.c.

◆ OnAreaChanged()

void OnAreaChanged ( )
protected

Definition at line 44 of file SCR_GameModeCleanSweep.c.

◆ OnPlayerDisconnected()

override void OnPlayerDisconnected ( int playerId,
KickCauseCode cause,
int timeout )
protected

Called after a player is disconnected.

Parameters
[in]playerIdPlayerId of disconnected player.
[in]causeReason player disconnected
[in]timeoutTimeout for when players are allowed to connect again. -1 means Ban without an assigned timeout

What happens when a player disconnects.

Parameters
[in]playerIDis a unique player identifier that defines which player has disconnected.
[in]cause
[in]timeout

Definition at line 485 of file SCR_GameModeCleanSweep.c.

◆ OnPlayerRegistered()

override void OnPlayerRegistered ( int playerId)
protected

Called on every machine after a player is registered (identity, name etc.). Always called after OnPlayerConnected.

Parameters
[in]playerIdPlayerId of registered player.

Definition at line 473 of file SCR_GameModeCleanSweep.c.

◆ PickNewGameMaster()

PlayerController PickNewGameMaster ( int exclude = -1)
protected

Definition at line 410 of file SCR_GameModeCleanSweep.c.

◆ ReplicatedShowHint()

void ReplicatedShowHint ( int hintID,
float showTime )
protected

Definition at line 223 of file SCR_GameModeCleanSweep.c.

◆ RespawnPlayers()

void RespawnPlayers ( )
protected

Definition at line 131 of file SCR_GameModeCleanSweep.c.

◆ RPC_ShowHint()

void RPC_ShowHint ( int hintID,
float time )
protected

Definition at line 230 of file SCR_GameModeCleanSweep.c.

◆ SetArea()

void SetArea ( int targetAreaID)
protected
Parameters
[in]targetAreaID

Definition at line 160 of file SCR_GameModeCleanSweep.c.

◆ SetSwapSides()

void SetSwapSides ( bool swapSides)
protected
Parameters
[in]swapSides

Definition at line 153 of file SCR_GameModeCleanSweep.c.

◆ ShowAreaSelectionToGameMaster()

void ShowAreaSelectionToGameMaster ( )
protected

Definition at line 434 of file SCR_GameModeCleanSweep.c.

◆ ShowAreaSelectionUI()

void ShowAreaSelectionUI ( )
protected

Used by SCR_CleanSweepNetworkComponent.

Definition at line 449 of file SCR_GameModeCleanSweep.c.

◆ ShowHint()

void ShowHint ( int hintID,
float showTime )
protected

Definition at line 236 of file SCR_GameModeCleanSweep.c.

◆ SpawnEnemies()

void SpawnEnemies ( )
protected

Definition at line 263 of file SCR_GameModeCleanSweep.c.

Variable Documentation

◆ desc

UI layouts Menus CleanSweep CleanSweepAreaSelection desc

Definition at line 19 of file SCR_GameModeCleanSweep.c.

◆ ENEMY_PRESENCE_ELIMINATED_TEXT

const string ENEMY_PRESENCE_ELIMINATED_TEXT = "Enemy presence eliminated!\nNew area is being selected.\nPlease wait."
protected

Definition at line 41 of file SCR_GameModeCleanSweep.c.

◆ INVALID_AREA_INDEX

const int INVALID_AREA_INDEX = -1
protected

Definition at line 40 of file SCR_GameModeCleanSweep.c.

◆ layout

UI layouts Menus CleanSweep CleanSweepAreaSelection layout

Definition at line 19 of file SCR_GameModeCleanSweep.c.

◆ m_aEnemySoldiers

ref array<IEntity> m_aEnemySoldiers = {}
protected

Definition at line 29 of file SCR_GameModeCleanSweep.c.

◆ m_aEnemySpawnPoints

ref array<SCR_SpawnPoint> m_aEnemySpawnPoints
protected

Definition at line 31 of file SCR_GameModeCleanSweep.c.

◆ m_aGroups

ref array<SCR_AIGroup> m_aGroups
protected

Definition at line 30 of file SCR_GameModeCleanSweep.c.

◆ m_aPlayerSpawnPoints

ref array<SCR_SpawnPoint> m_aPlayerSpawnPoints
protected

Definition at line 32 of file SCR_GameModeCleanSweep.c.

◆ m_AttackWP

AIWaypoint m_AttackWP
protected

Definition at line 33 of file SCR_GameModeCleanSweep.c.

◆ m_bSwapSides

bool m_bSwapSides
protected

Definition at line 23 of file SCR_GameModeCleanSweep.c.

◆ m_iAreaID

int m_iAreaID = INVALID_AREA_INDEX
protected

Definition at line 38 of file SCR_GameModeCleanSweep.c.

◆ m_iGameMasterID

int m_iGameMasterID = -1
protected

Definition at line 35 of file SCR_GameModeCleanSweep.c.

◆ m_wAreaSelectionWidget

Widget m_wAreaSelectionWidget
protected

Definition at line 26 of file SCR_GameModeCleanSweep.c.

◆ m_wRoot

Widget m_wRoot
protected

Definition at line 25 of file SCR_GameModeCleanSweep.c.

◆ m_wText

TextWidget m_wText
protected

Definition at line 27 of file SCR_GameModeCleanSweep.c.