Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
BaseGameMode.c
Go to the documentation of this file.
1 /*
2 ===========================================
3 Do not modify, this script is generated
4 ===========================================
5 */
6 
12 class BaseGameModeClass: GenericEntityClass
13 {
14 }
15 
16 class BaseGameMode: GenericEntity
17 {
19  event protected void OnGameStart();
20  /*
21  Event is called when player connecting Session hosting current Game Mode where is required authentication verification via. platform services
22  AuditSuccess() call specifically mean this verification was successful
23  Basically audited player has access to persistency/ etc. related functionality provided by online services.
24  \param iPlayerID is index of player in game, equal to the one assigned at PlayerController
25  */
26  event protected void OnPlayerAuditSuccess( int iPlayerID ) {};
27  /*
28  Event is called when player connecting Session hosting current Game Mode
29  AuditFail() call may be called under two occassion:
30  1) verification is required but failed (account is not valid, player is banned, internet issues)
31  2) player cannot be verified as authentication is not required or possible - where it may be valid behavior (server online connectivity turned off for example)
32  Basically non-audited player cannot access persistency/ etc. related functionality provided by online services.
33  \param iPlayerID is index of player in game, equal to the one assigned at PlayerController
34  */
35  event protected void OnPlayerAuditFail( int iPlayerID) {};
36  /*
37  Event is called when player connected to Session was kicked and did not reconnected in time
38  This mean that slot reservation can be canceled.
39  \param iPlayerID is index of player in game, equal to the one assigned at PlayerController
40  */
41  event protected void OnPlayerAuditTimeouted( int iPlayerID) {};
42  /*
43  Event is called when player reconnected successfully back to Session after kick
44  This mean that slot reservation need to be finished (closed).
45  \param iPlayerID is index of player in game, equal to the one assigned at PlayerController
46  */
47  event protected void OnPlayerAuditRevived( int iPlayerID) {};
52  event protected void OnPlayerConnected(int playerId);
57  event protected void OnPlayerRegistered(int playerId);
64  event protected void OnPlayerDisconnected(int playerId, KickCauseCode cause, int timeout);
70  event protected void OnPlayerSpawned(int playerId, IEntity controlledEntity);
91  event protected bool HandlePlayerKilled(int playerId, IEntity playerEntity, IEntity killerEntity, notnull Instigator killer) { return true; };
99  event protected void OnPlayerKilled(int playerId, IEntity playerEntity, IEntity killerEntity, notnull Instigator killer);
106  event protected void OnControllableSpawned(IEntity entity) {};
107  /*
108  When a controllable entity is destroyed (damaged enough), this event is raised.
109  Controllable entity is such that has BaseControllerComponent and can be
110  possessed either by a player, an AI or stay unpossessed.
111  \param entity Destroyed entity that raised this event
112  \param killerEntity entity of the instigator. If killerEntity is null, you can use instigator.GetInstigatorEntity() if appropiate.
113  \param instigator Instigator that destroyed our victim
114  */
115  event protected void OnControllableDestroyed(IEntity entity, IEntity killerEntity, notnull Instigator instigator) {};
116  /*
117  Prior to a controllable entity being DELETED, this event is raised.
118  Controllable entity is such that has BaseControllerComponent and can be
119  possessed either by a player, an AI or stay unpossessed.
120  \param entity Entity about to be deleted
121  */
122  event protected void OnControllableDeleted(IEntity entity) {};
128  event protected void OnPlayerRoleChange(int playerId, EPlayerRole roleFlags) {};
130  event void OnWorldPostProcess(World world) {};
131 }
132 
EPlayerRole
EPlayerRole
Definition: EPlayerRole.c:7
OnControllableDestroyed
event protected void OnControllableDestroyed(IEntity entity, IEntity killerEntity, notnull Instigator instigator)
Award additional XP for enemies killed in friendly bases.
Definition: BaseGameMode.c:115
OnPlayerConnected
event protected void OnPlayerConnected(int playerId)
Definition: SCR_LocalPlayerPenalty.c:33
OnPlayerAuditTimeouted
event protected void OnPlayerAuditTimeouted(int iPlayerID)
Definition: BaseGameMode.c:41
GenericEntity
SCR_GenericBoxEntityClass GenericEntity
KickCauseCode
KickCauseCode
Definition: KickCauseCode.c:19
Instigator
Definition: Instigator.c:6
HandlePlayerKilled
event protected bool HandlePlayerKilled(int playerId, IEntity playerEntity, IEntity killerEntity, notnull Instigator killer)
Definition: BaseGameMode.c:91
OnPlayerRegistered
event protected void OnPlayerRegistered(int playerId)
Register provided client's respawn timer.
Definition: SCR_RespawnTimerComponent.c:207
OnPlayerKilled
event protected void OnPlayerKilled(int playerId, IEntity playerEntity, IEntity killerEntity, notnull Instigator killer)
Definition: SCR_CampaignFeedbackComponent.c:513
OnControllableSpawned
event protected void OnControllableSpawned(IEntity entity)
Definition: BaseGameMode.c:106
OnPlayerAuditSuccess
event protected void OnPlayerAuditSuccess(int iPlayerID)
Definition: BaseGameMode.c:26
OnControllableDeleted
event protected void OnControllableDeleted(IEntity entity)
Definition: BaseGameMode.c:122
OnGameStart
BaseGameModeClass GenericEntityClass OnGameStart()
Gets called after world is initialized but before first ticks.
Definition: game.c:621
OnPlayerSpawned
event protected void OnPlayerSpawned(int playerId, IEntity controlledEntity)
Definition: SCR_XPHandlerComponent.c:32
OnPlayerAuditRevived
event protected void OnPlayerAuditRevived(int iPlayerID)
Definition: BaseGameMode.c:47
OnWorldPostProcess
event void OnWorldPostProcess(World world)
Event called once loading of all entities of the world have been finished. (still within the loading)
Definition: BaseGameMode.c:130
OnPlayerRoleChange
event protected void OnPlayerRoleChange(int playerId, EPlayerRole roleFlags)
Definition: BaseGameMode.c:128
OnPlayerDisconnected
event protected void OnPlayerDisconnected(int playerId, KickCauseCode cause, int timeout)
Definition: SCR_PlayerProfileManagerComponent.c:119
OnPlayerAuditFail
event protected void OnPlayerAuditFail(int iPlayerID)
Definition: BaseGameMode.c:35
BaseGameModeClass
Definition: BaseGameMode.c:12