Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Go to the source code of this file.
Data Structures | |
class | SCR_PlayerXPHandlerComponentClass |
Functions | |
SCR_PlayerXPHandlerComponentClass ScriptComponentClass | RplProp (condition:RplCondition.OwnerOnly)] protected int m_iPlayerXP=0 |
int | GetPlayerXP () |
Getter for player XP. More... | |
void | SetPlayerXPSinceLastSpawn (int xp) |
int | GetPlayerXPSinceLastSpawn () |
Getter for player XP accumulated since last respawn. More... | |
void | SetSuicidePenaltyTimestamp (float timestamp) |
float | GetSuicidePenaltyTimestamp () |
ScriptInvoker | GetOnXPChanged () |
bool | IsProxy () |
void | OnPlayerKilled () |
void | UpdatePlayerRank (bool notify=true) |
protected void | RpcAsk_CheatRank (int playerID, bool demote) |
Cheat method to change player's rank - server side. More... | |
void | CheatRank (bool demote=false) |
Cheat method to change player's rank. More... | |
protected void | RpcDo_OnPlayerXPChanged (int currentXP, int XPToAdd, bool volunteer, SCR_EXPRewards rewardID, bool profileUsed, int skillLevel) |
void | AddPlayerXP (SCR_EXPRewards rewardID, float multiplier=1.0, bool volunteer=false, int addDirectly=0) |
Variables | |
protected int | m_iPlayerXPSinceLastSpawn |
protected float | m_fSuicidePenaltyTimestamp |
protected ref ScriptInvoker | m_OnXPChanged |
void AddPlayerXP | ( | SCR_EXPRewards | rewardID, |
float | multiplier = 1.0 , |
||
bool | volunteer = false , |
||
int | addDirectly = 0 |
||
) |
Addition to player XP
[in] | rewardID | |
[in] | multiplier | |
[in] | volunteer | |
[in] | addDirectly |
Definition at line 173 of file SCR_PlayerXPHandlerComponent.c.
void CheatRank | ( | bool | demote = false | ) |
Cheat method to change player's rank.
Definition at line 148 of file SCR_PlayerXPHandlerComponent.c.
ScriptInvoker GetOnXPChanged | ( | ) |
Definition at line 56 of file SCR_PlayerXPHandlerComponent.c.
int GetPlayerXP | ( | ) |
Getter for player XP.
Definition at line 20 of file SCR_PlayerXPHandlerComponent.c.
int GetPlayerXPSinceLastSpawn | ( | ) |
Getter for player XP accumulated since last respawn.
Definition at line 35 of file SCR_PlayerXPHandlerComponent.c.
float GetSuicidePenaltyTimestamp | ( | ) |
Definition at line 49 of file SCR_PlayerXPHandlerComponent.c.
bool IsProxy | ( | ) |
Definition at line 66 of file SCR_PlayerXPHandlerComponent.c.
void OnPlayerKilled | ( | ) |
Definition at line 75 of file SCR_PlayerXPHandlerComponent.c.
protected void RpcAsk_CheatRank | ( | int | playerID, |
bool | demote | ||
) |
Cheat method to change player's rank - server side.
Definition at line 112 of file SCR_PlayerXPHandlerComponent.c.
protected void RpcDo_OnPlayerXPChanged | ( | int | currentXP, |
int | XPToAdd, | ||
bool | volunteer, | ||
SCR_EXPRewards | rewardID, | ||
bool | profileUsed, | ||
int | skillLevel | ||
) |
Definition at line 161 of file SCR_PlayerXPHandlerComponent.c.
|
pure virtual |
Takes care of player-specific XP handling Should be hooked on PlayerController
void SetPlayerXPSinceLastSpawn | ( | int | xp | ) |
Setter for player XP accumulated since last respawn
[in] | xp |
Definition at line 28 of file SCR_PlayerXPHandlerComponent.c.
void SetSuicidePenaltyTimestamp | ( | float | timestamp | ) |
[in] | timestamp |
Definition at line 42 of file SCR_PlayerXPHandlerComponent.c.
void UpdatePlayerRank | ( | bool | notify = true | ) |
[in] | notify |
Definition at line 83 of file SCR_PlayerXPHandlerComponent.c.
protected float m_fSuicidePenaltyTimestamp |
Definition at line 14 of file SCR_PlayerXPHandlerComponent.c.
protected int m_iPlayerXPSinceLastSpawn |
Definition at line 12 of file SCR_PlayerXPHandlerComponent.c.
protected ref ScriptInvoker m_OnXPChanged |
Definition at line 16 of file SCR_PlayerXPHandlerComponent.c.