9 float m_fScoreThreshold;
10 float m_fScoreDecreasePerMinute;
11 float m_fScoreMultiplier;
12 float m_fAccelerationMin;
13 float m_fAccelerationMax;
14 float m_fBanEvaluationLight;
15 float m_fBanEvaluationHeavy;
16 float m_fCrimePtFriendKill;
17 float m_fCrimePtTeamKill;
18 float m_fQualityTimeTemp;
19 float m_bVotingSuggestionEnabled;
24 Print(
"m_fScoreThreshold: " + m_fScoreThreshold, lv);
25 Print(
"m_fScoreDecreasePerMinute: " + m_fScoreDecreasePerMinute, lv);
26 Print(
"m_fScoreMultiplier: " + m_fScoreMultiplier, lv);
27 Print(
"m_fAccelerationMin: " + m_fAccelerationMin, lv);
28 Print(
"m_fAccelerationMax: " + m_fAccelerationMax, lv);
29 Print(
"m_fBanEvaluationLight: " + m_fBanEvaluationLight, lv);
30 Print(
"m_fBanEvaluationHeavy: " + m_fBanEvaluationHeavy, lv);
31 Print(
"m_fCrimePtFriendKill: " + m_fCrimePtFriendKill, lv);
32 Print(
"m_fCrimePtTeamKill: " + m_fCrimePtTeamKill, lv);
33 Print(
"m_fQualityTimeTemp: " + m_fQualityTimeTemp, lv);
34 Print(
"m_bVotingSuggestionEnabled: " + m_bVotingSuggestionEnabled, lv);
40 m_fScoreThreshold = 10.0;
41 m_fScoreDecreasePerMinute = 0.2;
42 m_fScoreMultiplier = 0.2;
43 m_fAccelerationMin = 1.0;
44 m_fAccelerationMax = 6.0;
45 m_fBanEvaluationLight = 0.8;
46 m_fBanEvaluationHeavy = 1.0;
47 m_fCrimePtFriendKill = 1.0;
48 m_fCrimePtTeamKill = 0.7;
49 m_fQualityTimeTemp = 1.0;
50 m_bVotingSuggestionEnabled = 0.0;
54 void SCR_BanSettings()
81 Print(
" -- Settings -- ", lv);
97 RegV(
"m_BanSettings");
102class SCR_PlayerDataConfigs : Managed
105 protected static ref SCR_PlayerDataConfigs
instance;
165 static ref
const array<int>
INTERVALS_END = {160000, 600000, 750000, 900000, 1000000};
166 static ref
const array<float>
INTERVALS_C1 = {1.9449, 0.71, 8.1682, 6, 18};
167 static ref
const array<float>
INTERVALS_C2 = {0.9254, 0.9908, 0.9517, 0.9559, 0.9425};
202 instance =
new SCR_PlayerDataConfigs();
216 return m_BanSettings.GetBanSettings().m_fScoreDecreasePerMinute;
222 return m_BanSettings.GetBanSettings().m_fScoreDecreasePerMinute / 60;
276 return m_BanSettings.GetBanSettings().m_bVotingSuggestionEnabled >= 1;
295 return "UNDEFINED_NAME";
334 Print(
"Ban Settings could not be loaded from BE Storage: Relying on default config",
LogLevel.WARNING);
375 Print(
"Error in PlayerDataConfigs: Weird size on specialization0 array",
LogLevel.ERROR);
378 Print(
"Error in PlayerDataConfigs: Weird size on specialization1 array",
LogLevel.ERROR);
381 Print(
"Error in PlayerDataConfigs: Weird size on specialization2 array",
LogLevel.ERROR);
ArmaReforgerScripted GetGame()
@ SALINE_FRIENDLIES
Number of times player salined friendlies (not including themself).
@ BANDAGE_FRIENDLIES
Number of times player bandaged friendlies (not including themself).
@ MORPHINE_FRIENDLIES
Number of times player morphined friendlies (not including themself).
@ SALINE_SELF
Number of times player salined themself.
@ MORPHINE_SELF
Number of times player morphined themself.
@ AI_KILLS
AI enemies killed.
@ BANDAGE_SELF
Number of times player bandaged themself.
@ TOURNIQUET_SELF
Number of times player tourniquetted themself.
@ DISTANCE_DRIVEN
Distance driven with a vehicle.
@ DISTANCE_AS_OCCUPANT
Distance the player was driven around with a vehicle.
@ TOURNIQUET_FRIENDLIES
Number of times player tourniquetted friendlies (not including themself).
@ DISTANCE_WALKED
Distance walked on foot.
SCR_ESpecialization2Display
SCR_ESpecialization0Display
SCR_ESpecialization1Display
base classes for filtering in server browser
ref SCR_BanSettings m_BanSettings
void SCR_BanSettingsContainer()
SCR_BanSettings GetBanSettings()
ref array< ref SCR_PlayerDataSpecializationDisplay > m_aSpecialization0
const int SPECIALIZATION_MAX
static const float MODIFIER_TOURNIQUET_SELF
float GetCrimePointsFriendlyKill()
static const int XP_NEEDED_FOR_RANK_DIVIDER
static const float MetersToKilometersConversion
static const float MODIFIER_PRECISION
static ref const array< int > INTERVALS_END
int SPECIALIZATION_0_COUNT
static const float MODIFIER_BANDAGE_SELF
float GetBanEvaluationLight()
static ref const array< int > INTERVALS_ORIGIN
static SCR_PlayerDataConfigs GetInstance()
float GetScoreDecreasePerSecond()
float GetCrimePointsFriendlyMultiKill()
static const float SPPOINTS_CONVERSIONPERCENTAGE
static ref const array< float > INTERVALS_C1
ref array< ref SCR_PlayerDataSpecializationDisplay > m_aSpecialization2
float GetScoreThreshold()
string GetSpecializationName(int n)
int SPECIALIZATION_2_COUNT
static const float MODIFIER_SALINE_FRIENDLIES
bool GetVotingSuggestionEnabled()
float GetQualityTimeTemp()
static const float MODIFIER_TRAVELED_DISTANCE_SUPPLY_VEHICLE
static const float MODIFIER_MORPHINE_SELF
string SPECIALIZATION_2_NAME
static const int XP_NEEDED_FOR_RANK
float GetMinAcceleration()
int SPECIALIZATION_1_COUNT
string GetBanSettingsDescription()
static const float MODIFIER_BANDAGE_FRIENDLIES
static const float MODIFIER_DRIVER_OF_PLAYERS
float GetScoreDecreasePerMinute()
float GetBanEvaluationHeavy()
static const float MODIFIER_AI_KILLS
static const float MODIFIER_TRAVEL_TIME_SUPPLY_VEHICLE
static ref SCR_BanSettingsContainer m_BanSettings
static const int MAX_PLAYERS_DIED_IN_VEHICLE_PENALTY
static ref SCR_PlayerDataConfigs instance
static const int MODIFIER_PLAYERS_DIED_IN_VEHICLE
static const float MODIFIER_TOURNIQUET_FRIENDLIES
static const float MODIFIER_SPECIALIZATIONS
static const float MODIFIER_DISTANCE_WALKED
int GetSpecializationStatsCount(int n)
static const float MODIFIER_KILLS
static const float MODIFIER_DISTANCE_DRIVEN
static const float WARCRIMES_PUNISHMENT
string SPECIALIZATION_0_NAME
static const int XP_NEEDED_FOR_LEVEL
array< ref SCR_PlayerDataSpecializationDisplay > GetSpecializationArray(int n)
static const float MAX_WARCRIMES_VALUE
static const int XP_NEEDED_FOR_LEVEL_DIVIDER
static const int INTERVALS_COUNT
int SPECIALIZATIONS_COUNT
static const float MODIFIER_SALINE_SELF
string SPECIALIZATION_1_NAME
float GetMaxAcceleration()
static const float STD_POINTS_QUALITY_TIME
static ref const array< float > INTERVALS_C2
static const float MODIFIER_MORPHINE_FRIENDLIES
ref array< ref SCR_PlayerDataSpecializationDisplay > m_aSpecialization1
float GetScoreToAccelerationMultiplier()
static const float WARCRIMES_DECREASE_PER_HOUR
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.