DayZ 1.24
Loading...
Searching...
No Matches
PlayerStatsPCO_Base Class Reference

Private Member Functions

override int GetVersion ()
 
override void Init ()
 
void PlayerStatsPCO_v100 ()
 
override int GetVersion ()
 
override void Init ()
 
override int GetVersion ()
 
override void Init ()
 
override int GetVersion ()
 
override void Init ()
 

Detailed Description

Definition at line 127 of file PlayerStatsPCO.c.

Member Function Documentation

◆ GetVersion() [1/4]

override int PlayerStatsPCO_Base::GetVersion ( )
inlineprivate

Definition at line 130 of file PlayerStatsPCO.c.

131 {
132 return 100;
133 }

◆ GetVersion() [2/4]

override int PlayerStatsPCO_Base::GetVersion ( )
inlineprivate

Definition at line 181 of file PlayerStatsPCO.c.

182 {
183 return 101;
184 }

◆ GetVersion() [3/4]

override int PlayerStatsPCO_Base::GetVersion ( )
inlineprivate

Definition at line 221 of file PlayerStatsPCO.c.

222 {
223 return 106;
224 }

◆ GetVersion() [4/4]

override int PlayerStatsPCO_Base::GetVersion ( )
inlineprivate

Definition at line 259 of file PlayerStatsPCO.c.

260 {
261 return 115;
262 }

◆ Init() [1/4]

override void PlayerStatsPCO_Base::Init ( )
inlineprivate

Definition at line 135 of file PlayerStatsPCO.c.

136 {
137 RegisterStat(EPlayerStats_v100.HEATCOMFORT, new PlayerStat<float> (-1, 1, 0, "HeatComfort", EPSstatsFlags.EMPTY));
138 RegisterStat(EPlayerStats_v100.TREMOR, new PlayerStat<float> (0, 1, 0, "Tremor", EPSstatsFlags.EMPTY));
139 RegisterStat(EPlayerStats_v100.WET, new PlayerStat<int> (0, 1, 0, "Wet", EPSstatsFlags.EMPTY));
140 RegisterStat(EPlayerStats_v100.ENERGY, new PlayerStat<float> (0, 20000, 600, "Energy", EPSstatsFlags.EMPTY));
141 RegisterStat(EPlayerStats_v100.WATER, new PlayerStat<float> (0, 5000, 500, "Water", EPSstatsFlags.EMPTY));
142 RegisterStat(EPlayerStats_v100.STOMACH_SOLID, new PlayerStat<float> (0, 5000, 0, "StomachSolid", EPSstatsFlags.EMPTY));
143 RegisterStat(EPlayerStats_v100.STOMACH_ENERGY, new PlayerStat<float> (0, 40000, 0, "StomachEnergy", EPSstatsFlags.EMPTY));
144 RegisterStat(EPlayerStats_v100.STOMACH_WATER, new PlayerStat<float> (0, 5000, 0, "StomachWater", EPSstatsFlags.EMPTY));
145 RegisterStat(EPlayerStats_v100.DIET, new PlayerStat<float> (0, 5000, 2500, "Diet", EPSstatsFlags.EMPTY));
147 RegisterStat(EPlayerStats_v100.SPECIALTY, new PlayerStat<float> (-1, 1, 0, "Specialty", EPSstatsFlags.EMPTY));
148 RegisterStat(EPlayerStats_v100.BLOODTYPE, new PlayerStat<int> (0, 128, BloodTypes.GenerateBloodType(), "BloodType", EPSstatsFlags.EMPTY));
149 }
EPSstatsFlags
Definition PlayerStats.c:2
EPlayerStats_v100
void RegisterStat(int id, PlayerStatBase stat)
static int GenerateBloodType()
Definition BloodType.c:6
const float STAMINA_MAX
Definition constants.c:663

References BloodTypes::GenerateBloodType(), RegisterStat(), and GameConstants::STAMINA_MAX.

Referenced by ResetAllStats().

◆ Init() [2/4]

override void PlayerStatsPCO_Base::Init ( )
inlineprivate

Definition at line 186 of file PlayerStatsPCO.c.

187 {
188 RegisterStat(EPlayerStats_v101.HEATCOMFORT, new PlayerStat<float> (-1, 1, 0, "HeatComfort", EPSstatsFlags.EMPTY));
189 RegisterStat(EPlayerStats_v101.TREMOR, new PlayerStat<float> (0, 1, 0, "Tremor", EPSstatsFlags.EMPTY));
190 RegisterStat(EPlayerStats_v101.WET, new PlayerStat<int> (0, 1, 0, "Wet", EPSstatsFlags.EMPTY));
191 RegisterStat(EPlayerStats_v101.ENERGY, new PlayerStat<float> (0, 20000, 600, "Energy", EPSstatsFlags.EMPTY));
192 RegisterStat(EPlayerStats_v101.WATER, new PlayerStat<float> (0, 5000, 500, "Water", EPSstatsFlags.EMPTY));
193 RegisterStat(EPlayerStats_v101.STOMACH_SOLID, new PlayerStat<float> (0, 5000, 0, "StomachSolid", EPSstatsFlags.EMPTY));
194 RegisterStat(EPlayerStats_v101.STOMACH_ENERGY, new PlayerStat<float> (0, 40000, 0, "StomachEnergy", EPSstatsFlags.EMPTY));
195 RegisterStat(EPlayerStats_v101.STOMACH_WATER, new PlayerStat<float> (0, 5000, 0, "StomachWater", EPSstatsFlags.EMPTY));
196 RegisterStat(EPlayerStats_v101.DIET, new PlayerStat<float> (0, 5000, 2500, "Diet", EPSstatsFlags.EMPTY));
198 RegisterStat(EPlayerStats_v101.SPECIALTY, new PlayerStat<float> (-1, 1, 0, "Specialty", EPSstatsFlags.EMPTY));
199 RegisterStat(EPlayerStats_v101.BLOODTYPE, new PlayerStat<int> (0, 128, BloodTypes.GenerateBloodType(), "BloodType", EPSstatsFlags.EMPTY));
200 RegisterStat(EPlayerStats_v101.TOXICITY, new PlayerStat<float> (0, 100, 0, "Toxicity", EPSstatsFlags.EMPTY));
201 }
EPlayerStats_v101

References BloodTypes::GenerateBloodType(), RegisterStat(), and GameConstants::STAMINA_MAX.

◆ Init() [3/4]

override void PlayerStatsPCO_Base::Init ( )
inlineprivate

Definition at line 226 of file PlayerStatsPCO.c.

227 {
228 RegisterStat(EPlayerStats_v106.HEATCOMFORT, new PlayerStat<float> (-1, 1, 0, "HeatComfort", EPSstatsFlags.EMPTY));
229 RegisterStat(EPlayerStats_v106.TREMOR, new PlayerStat<float> (0, 1, 0, "Tremor", EPSstatsFlags.EMPTY));
230 RegisterStat(EPlayerStats_v106.WET, new PlayerStat<int> (0, 1, 0, "Wet", EPSstatsFlags.EMPTY));
231 RegisterStat(EPlayerStats_v106.ENERGY, new PlayerStat<float> (0, 20000, 600, "Energy", EPSstatsFlags.EMPTY));
232 RegisterStat(EPlayerStats_v106.WATER, new PlayerStat<float> (0, 5000, 650, "Water", EPSstatsFlags.EMPTY));
233 RegisterStat(EPlayerStats_v106.DIET, new PlayerStat<float> (0, 5000, 2500, "Diet", EPSstatsFlags.EMPTY));
235 RegisterStat(EPlayerStats_v106.SPECIALTY, new PlayerStat<float> (-1, 1, 0, "Specialty", EPSstatsFlags.EMPTY));
236 RegisterStat(EPlayerStats_v106.BLOODTYPE, new PlayerStat<int> (0, 128, BloodTypes.GenerateBloodType(), "BloodType", EPSstatsFlags.EMPTY));
237 RegisterStat(EPlayerStats_v106.TOXICITY, new PlayerStat<float> (0, 100, 0, "Toxicity", EPSstatsFlags.EMPTY));
238 }
EPlayerStats_v106

References BloodTypes::GenerateBloodType(), RegisterStat(), and GameConstants::STAMINA_MAX.

◆ Init() [4/4]

override void PlayerStatsPCO_Base::Init ( )
inlineprivate

Definition at line 264 of file PlayerStatsPCO.c.

265 {
266 RegisterStat(EPlayerStats_v115.HEATCOMFORT, new PlayerStat<float> (-1, 1, 0, "HeatComfort", EPSstatsFlags.EMPTY));
267 RegisterStat(EPlayerStats_v115.TREMOR, new PlayerStat<float> (0, 1, 0, "Tremor", EPSstatsFlags.EMPTY));
268 RegisterStat(EPlayerStats_v115.WET, new PlayerStat<int> (0, 1, 0, "Wet", EPSstatsFlags.EMPTY));
271 RegisterStat(EPlayerStats_v115.DIET, new PlayerStat<float> (0, 5000, 2500, "Diet", EPSstatsFlags.EMPTY));
273 RegisterStat(EPlayerStats_v115.SPECIALTY, new PlayerStat<float> (-1, 1, 0, "Specialty", EPSstatsFlags.EMPTY));
274 RegisterStat(EPlayerStats_v115.BLOODTYPE, new PlayerStat<int> (0, 128, BloodTypes.GenerateBloodType(), "BloodType", EPSstatsFlags.EMPTY));
275 RegisterStat(EPlayerStats_v115.TOXICITY, new PlayerStat<float> (0, 100, 0, "Toxicity", EPSstatsFlags.EMPTY));
276 RegisterStat(EPlayerStats_v115.HEATBUFFER, new PlayerStat<float> (-30, 30, 0, "HeatBuffer", EPSstatsFlags.EMPTY));
277 }
EPlayerStats_v115
static float GetStaminaMax()
static const float SL_ENERGY_MAX
static const float SL_WATER_MAX

References BloodTypes::GenerateBloodType(), CfgGameplayHandler::GetStaminaMax(), RegisterStat(), PlayerConstants::SL_ENERGY_MAX, and PlayerConstants::SL_WATER_MAX.

◆ PlayerStatsPCO_v100()

void PlayerStatsPCO_Base::PlayerStatsPCO_v100 ( )
inlineprivate

Definition at line 151 of file PlayerStatsPCO.c.

152 {
153
154 }

The documentation for this class was generated from the following file: