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

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
 

Function Documentation

◆ AddPlayerXP()

void AddPlayerXP ( SCR_EXPRewards  rewardID,
float  multiplier = 1.0,
bool  volunteer = false,
int  addDirectly = 0 
)

Addition to player XP

Parameters
[in]rewardID
[in]multiplier
[in]volunteer
[in]addDirectly

Definition at line 173 of file SCR_PlayerXPHandlerComponent.c.

◆ CheatRank()

void CheatRank ( bool  demote = false)

Cheat method to change player's rank.

Definition at line 148 of file SCR_PlayerXPHandlerComponent.c.

◆ GetOnXPChanged()

ScriptInvoker GetOnXPChanged ( )
Returns

Definition at line 56 of file SCR_PlayerXPHandlerComponent.c.

◆ GetPlayerXP()

int GetPlayerXP ( )

Getter for player XP.

Definition at line 20 of file SCR_PlayerXPHandlerComponent.c.

◆ GetPlayerXPSinceLastSpawn()

int GetPlayerXPSinceLastSpawn ( )

Getter for player XP accumulated since last respawn.

Definition at line 35 of file SCR_PlayerXPHandlerComponent.c.

◆ GetSuicidePenaltyTimestamp()

float GetSuicidePenaltyTimestamp ( )
Returns

Definition at line 49 of file SCR_PlayerXPHandlerComponent.c.

◆ IsProxy()

bool IsProxy ( )
Returns

Definition at line 66 of file SCR_PlayerXPHandlerComponent.c.

◆ OnPlayerKilled()

void OnPlayerKilled ( )

Definition at line 75 of file SCR_PlayerXPHandlerComponent.c.

◆ RpcAsk_CheatRank()

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.

◆ RpcDo_OnPlayerXPChanged()

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.

◆ RplProp()

SCR_PlayerXPHandlerComponentClass ScriptComponentClass RplProp ( condition:RplCondition.  OwnerOnly)
pure virtual

Takes care of player-specific XP handling Should be hooked on PlayerController

◆ SetPlayerXPSinceLastSpawn()

void SetPlayerXPSinceLastSpawn ( int  xp)

Setter for player XP accumulated since last respawn

Parameters
[in]xp

Definition at line 28 of file SCR_PlayerXPHandlerComponent.c.

◆ SetSuicidePenaltyTimestamp()

void SetSuicidePenaltyTimestamp ( float  timestamp)
Parameters
[in]timestamp

Definition at line 42 of file SCR_PlayerXPHandlerComponent.c.

◆ UpdatePlayerRank()

void UpdatePlayerRank ( bool  notify = true)
Parameters
[in]notify

Definition at line 83 of file SCR_PlayerXPHandlerComponent.c.

Variable Documentation

◆ m_fSuicidePenaltyTimestamp

protected float m_fSuicidePenaltyTimestamp

Definition at line 14 of file SCR_PlayerXPHandlerComponent.c.

◆ m_iPlayerXPSinceLastSpawn

protected int m_iPlayerXPSinceLastSpawn

Definition at line 12 of file SCR_PlayerXPHandlerComponent.c.

◆ m_OnXPChanged

protected ref ScriptInvoker m_OnXPChanged

Definition at line 16 of file SCR_PlayerXPHandlerComponent.c.