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

Go to the source code of this file.

Data Structures

class  SCR_LocalPlayerPenaltyClass
 
class  SCR_LocalPlayerPenaltyData
 

Functions

void OnPlayerConnected (int playerId)
 
void OnControllableDestroyed (IEntity entity, IEntity killerEntity, Instigator instigator)
 
protected SCR_LocalPlayerPenaltyData GetPlayerPenaltyData (int playerId)
 
protected void EvaluatePlayerPenalties ()
 
void KickPlayer (int playerId, int duration, SCR_PlayerManagerKickReason reason)
 
int GetPenaltySubtractionPeriod ()
 
void SCR_LocalPlayerPenalty (int friendlyPlayerKillPenalty, int friendlyAIKillPenalty, int penaltyLimit, int banDuration, int penaltySubtractionPeriod, int penaltySubtractionPoints)
 

Variables

SCR_LocalPlayerPenaltyClass m_iFriendlyPlayerKillPenalty
 
protected int m_iFriendlyAIKillPenalty
 
protected int m_iKickPenaltyLimit
 
protected int m_iBanDuration
 
protected int m_iPenaltySubtractionPeriod
 
protected int m_iPenaltySubtractionPoints
 
protected ref array< ref SCR_LocalPlayerPenaltyDatam_aPlayerPenaltyData = {}
 

Function Documentation

◆ EvaluatePlayerPenalties()

protected void EvaluatePlayerPenalties ( )

Definition at line 153 of file SCR_LocalPlayerPenalty.c.

◆ GetPenaltySubtractionPeriod()

int GetPenaltySubtractionPeriod ( )
Returns

Definition at line 211 of file SCR_LocalPlayerPenalty.c.

◆ GetPlayerPenaltyData()

protected SCR_LocalPlayerPenaltyData GetPlayerPenaltyData ( int  playerId)

Definition at line 113 of file SCR_LocalPlayerPenalty.c.

◆ KickPlayer()

void KickPlayer ( int  playerId,
int  duration,
SCR_PlayerManagerKickReason  reason 
)
Parameters
[in]playerId
[in]duration
[in]reason

Definition at line 199 of file SCR_LocalPlayerPenalty.c.

◆ OnControllableDestroyed()

void OnControllableDestroyed ( IEntity  entity,
IEntity  killerEntity,
Instigator  instigator 
)
Parameters
[in]entity
[in]killerEntity
[in]instigator

Definition at line 43 of file SCR_LocalPlayerPenalty.c.

◆ SCR_LocalPlayerPenalty()

void SCR_LocalPlayerPenalty ( int  friendlyPlayerKillPenalty,
int  friendlyAIKillPenalty,
int  penaltyLimit,
int  banDuration,
int  penaltySubtractionPeriod,
int  penaltySubtractionPoints 
)
Parameters
[in]friendlyPlayerKillPenalty
[in]friendlyAIKillPenalty
[in]penaltyLimit
[in]banDuration
[in]penaltySubtractionPeriod
[in]penaltySubtractionPoints

Definition at line 224 of file SCR_LocalPlayerPenalty.c.

Variable Documentation

◆ m_aPlayerPenaltyData

protected ref array<ref SCR_LocalPlayerPenaltyData> m_aPlayerPenaltyData = {}

Definition at line 29 of file SCR_LocalPlayerPenalty.c.

◆ m_iBanDuration

protected int m_iBanDuration

Definition at line 18 of file SCR_LocalPlayerPenalty.c.

◆ m_iFriendlyAIKillPenalty

protected int m_iFriendlyAIKillPenalty

Definition at line 12 of file SCR_LocalPlayerPenalty.c.

◆ m_iFriendlyPlayerKillPenalty

SCR_LocalPlayerPenaltyClass m_iFriendlyPlayerKillPenalty

◆ m_iKickPenaltyLimit

protected int m_iKickPenaltyLimit

Definition at line 15 of file SCR_LocalPlayerPenalty.c.

◆ m_iPenaltySubtractionPeriod

protected int m_iPenaltySubtractionPeriod

Definition at line 21 of file SCR_LocalPlayerPenalty.c.

◆ m_iPenaltySubtractionPoints

protected int m_iPenaltySubtractionPoints

Definition at line 24 of file SCR_LocalPlayerPenalty.c.