DayZ 1.24
Loading...
Searching...
No Matches
CfgGameplayHandler Class Reference
Collaboration diagram for CfgGameplayHandler:
[legend]

Static Private Member Functions

static void RegisterItem (ITEM_DataBase item)
 
static void ValidateItems ()
 
static void InitData ()
 
static bool LoadData ()
 
static void OnLoaded ()
 
static void SyncDataSend (notnull Man player)
 
static void SyncDataSendEx (notnull PlayerIdentity identity)
 
static void OnRPC (Man player, ParamsReadContext ctx)
 
static bool GetDisablePersonalLight ()
 
static int GetLightingConfig ()
 
static TStringArray GetObjectSpawnersArr ()
 
static array< floatGetEnvironmentMinTemps ()
 
static array< floatGetEnvironmentMaxTemps ()
 
static array< floatGetWetnessWeightModifiers ()
 
static bool GetDisableBaseDamage ()
 
static bool GetDisableContainerDamage ()
 
static bool GetDisableRespawnDialog ()
 
static bool GetDisableRespawnInUnconsciousness ()
 
static float GetSprintStaminaModifierErc ()
 
static float GetSprintStaminaModifierCro ()
 
static float GetSprintSwimmingStaminaModifier ()
 
static float GetSprintLadderStaminaModifier ()
 
static float GetStaminaWeightLimitThreshold ()
 
static float GetStaminaMax ()
 
static float GetStaminaKgToStaminaPercentPenalty ()
 
static float GetStaminaMinCap ()
 
static float GetMeleeStaminaModifier ()
 
static float GetObstacleTraversalStaminaModifier ()
 
static float GetHoldBreathStaminaModifier ()
 
static float GetMovementTimeToStrafeJog ()
 
static float GetMovementTimeToSprint ()
 
static float GetMovementTimeToStrafeSprint ()
 
static float GetMovementRotationSpeedJog ()
 
static float GetMovementRotationSpeedSprint ()
 
static bool GetDisable2dMap ()
 
static bool GetDisableIsCollidingBBoxCheck ()
 
static bool GetDisableIsCollidingPlayerCheck ()
 
static bool GetDisableIsClippingRoofCheck ()
 
static bool GetDisableIsBaseViableCheck ()
 
static bool GetDisableIsInTerrainCheck ()
 
static bool GetDisableIsUnderwaterCheck ()
 
static bool GetDisableHeightPlacementCheck ()
 
static bool GetDisableIsPlacementPermittedCheck ()
 
static bool GetDisableIsCollidingAngleCheck ()
 
static bool GetDisableIsCollidingGPlotCheck ()
 
static bool GetDisableIsCollidingCheck ()
 
static bool GetDisablePerformRoofCheck ()
 
static bool GetDisableDistanceCheck ()
 
static TStringSet GetDisallowedTypesInUnderground ()
 
static bool GetHitIndicationOverrideEnabled ()
 
static int GetHitIndicationMode ()
 
static int GetHitIndicationTypeID ()
 
static int GetHitIndicationIndicatorColor ()
 
static float GetHitIndicationMaxDuration ()
 
static float GetHitIndicationBreakPoint ()
 
static float GetHitIndicationScatter ()
 
static bool GetHitIndicationPPEEnabled ()
 
static bool GetUse3DMap ()
 
static float GetShockRefillSpeedConscious ()
 
static float GetShockRefillSpeedUnconscious ()
 
static bool GetAllowRefillSpeedModifier ()
 
static bool GetMapIgnoreMapOwnership ()
 
static bool GetMapIgnoreNavItemsOwnership ()
 
static bool GetMapDisplayPlayerPosition ()
 
static bool GetMapDisplayNavigationInfo ()
 
static float GetStaminaDepletionSpeed ()
 
static float GetHealthDepletionSpeed ()
 
static float GetShockDepletionSpeed ()
 
static bool GetAllowStaminaAffectInertia ()
 
static TStringArray GetPlayerSpawnGearPresetFiles ()
 

Static Private Attributes

static string m_Path = "$mission:cfggameplay.json"
 
static ref array< ref ITEM_DataBasem_Items = new array<ref ITEM_DataBase>()
 
static ref CfgGameplayJson m_Data = new CfgGameplayJson()
 

Detailed Description

Definition at line 1 of file CfgGameplayHandler.c.

Member Function Documentation

◆ GetAllowRefillSpeedModifier()

static bool CfgGameplayHandler::GetAllowRefillSpeedModifier ( )
inlinestaticprivate

Definition at line 384 of file CfgGameplayHandler.c.

385 {
386 return m_Data.PlayerData.ShockHandlingData.allowRefillSpeedModifier;
387 }
static ref CfgGameplayJson m_Data

References m_Data.

Referenced by ShockMdfr::OnTick().

◆ GetAllowStaminaAffectInertia()

static bool CfgGameplayHandler::GetAllowStaminaAffectInertia ( )
inlinestaticprivate

Definition at line 425 of file CfgGameplayHandler.c.

426 {
427 return m_Data.PlayerData.MovementData.allowStaminaAffectInertia;
428 }

References m_Data.

Referenced by ManBase::OnCommandHandlerTick().

◆ GetDisable2dMap()

static bool CfgGameplayHandler::GetDisable2dMap ( )
inlinestaticprivate

Definition at line 254 of file CfgGameplayHandler.c.

255 {
256 return m_Data.PlayerData.disable2dMap;
257 }

References m_Data.

◆ GetDisableBaseDamage()

static bool CfgGameplayHandler::GetDisableBaseDamage ( )
inlinestaticprivate

Definition at line 154 of file CfgGameplayHandler.c.

155 {
156 return m_Data.GeneralData.disableBaseDamage;
157 }

References m_Data.

Referenced by Entity::ProcessInvulnerabilityCheck().

◆ GetDisableContainerDamage()

static bool CfgGameplayHandler::GetDisableContainerDamage ( )
inlinestaticprivate

Definition at line 160 of file CfgGameplayHandler.c.

161 {
162 return m_Data.GeneralData.disableContainerDamage;
163 }

References m_Data.

Referenced by Entity::ProcessInvulnerabilityCheck().

◆ GetDisableDistanceCheck()

static bool CfgGameplayHandler::GetDisableDistanceCheck ( )
inlinestaticprivate

Definition at line 319 of file CfgGameplayHandler.c.

320 {
321 return m_Data.BaseBuildingData.ConstructionData.disableDistanceCheck;
322 }

References m_Data.

◆ GetDisableHeightPlacementCheck()

static bool CfgGameplayHandler::GetDisableHeightPlacementCheck ( )
inlinestaticprivate

Definition at line 289 of file CfgGameplayHandler.c.

290 {
291 return m_Data.BaseBuildingData.HologramData.disableHeightPlacementCheck;
292 }

References m_Data.

Referenced by Hologram::HeightPlacementCheck().

◆ GetDisableIsBaseViableCheck()

static bool CfgGameplayHandler::GetDisableIsBaseViableCheck ( )
inlinestaticprivate

Definition at line 274 of file CfgGameplayHandler.c.

275 {
276 return m_Data.BaseBuildingData.HologramData.disableIsBaseViableCheck;
277 }

References m_Data.

Referenced by Hologram::IsBaseViable().

◆ GetDisableIsClippingRoofCheck()

static bool CfgGameplayHandler::GetDisableIsClippingRoofCheck ( )
inlinestaticprivate

Definition at line 269 of file CfgGameplayHandler.c.

270 {
271 return m_Data.BaseBuildingData.HologramData.disableIsClippingRoofCheck;
272 }

References m_Data.

Referenced by Hologram::IsClippingRoof().

◆ GetDisableIsCollidingAngleCheck()

static bool CfgGameplayHandler::GetDisableIsCollidingAngleCheck ( )
inlinestaticprivate

Definition at line 299 of file CfgGameplayHandler.c.

300 {
301 return m_Data.BaseBuildingData.HologramData.disableIsCollidingAngleCheck;
302 }

References m_Data.

Referenced by Hologram::IsCollidingAngle().

◆ GetDisableIsCollidingBBoxCheck()

static bool CfgGameplayHandler::GetDisableIsCollidingBBoxCheck ( )
inlinestaticprivate

Definition at line 259 of file CfgGameplayHandler.c.

260 {
261 return m_Data.BaseBuildingData.HologramData.disableIsCollidingBBoxCheck;
262 }

References m_Data.

Referenced by Hologram::GetProjectionEntityPosition(), and Hologram::IsCollidingBBox().

◆ GetDisableIsCollidingCheck()

static bool CfgGameplayHandler::GetDisableIsCollidingCheck ( )
inlinestaticprivate

Definition at line 309 of file CfgGameplayHandler.c.

310 {
311 return m_Data.BaseBuildingData.ConstructionData.disableIsCollidingCheck;
312 }

References m_Data.

Referenced by IsColliding(), and IsCollidingEx().

◆ GetDisableIsCollidingGPlotCheck()

static bool CfgGameplayHandler::GetDisableIsCollidingGPlotCheck ( )
inlinestaticprivate

Definition at line 304 of file CfgGameplayHandler.c.

305 {
306 return m_Data.BaseBuildingData.HologramData.disableIsCollidingGPlotCheck;
307 }

References m_Data.

Referenced by Hologram::IsCollidingGPlot().

◆ GetDisableIsCollidingPlayerCheck()

static bool CfgGameplayHandler::GetDisableIsCollidingPlayerCheck ( )
inlinestaticprivate

Definition at line 264 of file CfgGameplayHandler.c.

265 {
266 return m_Data.BaseBuildingData.HologramData.disableIsCollidingPlayerCheck;
267 }

References m_Data.

Referenced by Hologram::IsCollidingPlayer().

◆ GetDisableIsInTerrainCheck()

static bool CfgGameplayHandler::GetDisableIsInTerrainCheck ( )
inlinestaticprivate

Definition at line 279 of file CfgGameplayHandler.c.

280 {
281 return m_Data.BaseBuildingData.HologramData.disableIsInTerrainCheck;
282 }

References m_Data.

Referenced by Hologram::IsInTerrain().

◆ GetDisableIsPlacementPermittedCheck()

static bool CfgGameplayHandler::GetDisableIsPlacementPermittedCheck ( )
inlinestaticprivate

Definition at line 294 of file CfgGameplayHandler.c.

295 {
296 return m_Data.BaseBuildingData.HologramData.disableIsPlacementPermittedCheck;
297 }

References m_Data.

Referenced by Hologram::IsPlacementPermitted().

◆ GetDisableIsUnderwaterCheck()

static bool CfgGameplayHandler::GetDisableIsUnderwaterCheck ( )
inlinestaticprivate

Definition at line 284 of file CfgGameplayHandler.c.

285 {
286 return m_Data.BaseBuildingData.HologramData.disableIsUnderwaterCheck;
287 }

References m_Data.

Referenced by Hologram::IsUnderwater().

◆ GetDisablePerformRoofCheck()

static bool CfgGameplayHandler::GetDisablePerformRoofCheck ( )
inlinestaticprivate

Definition at line 314 of file CfgGameplayHandler.c.

315 {
316 return m_Data.BaseBuildingData.ConstructionData.disablePerformRoofCheck;
317 }

References m_Data.

Referenced by BaseBuildingBase::PerformRoofCheckForBase().

◆ GetDisablePersonalLight()

static bool CfgGameplayHandler::GetDisablePersonalLight ( )
inlinestaticprivate

! ===================================================================================== !! the naming convention for static functions in this file is Get+MemberVariableName !! ! =====================================================================================

Definition at line 121 of file CfgGameplayHandler.c.

122 {
123 return m_Data.PlayerData.disablePersonalLight;
124 }

References m_Data.

Referenced by PlayerBase::OnGameplayDataHandlerSync().

◆ GetDisableRespawnDialog()

static bool CfgGameplayHandler::GetDisableRespawnDialog ( )
inlinestaticprivate

Definition at line 165 of file CfgGameplayHandler.c.

166 {
167 return m_Data.GeneralData.disableRespawnDialog;
168 }

References m_Data.

Referenced by MissionBase::OnGameplayDataHandlerLoad(), and ManBase::OnGameplayDataHandlerSync().

◆ GetDisableRespawnInUnconsciousness()

static bool CfgGameplayHandler::GetDisableRespawnInUnconsciousness ( )
inlinestaticprivate

Definition at line 170 of file CfgGameplayHandler.c.

171 {
172 return m_Data.GeneralData.disableRespawnInUnconsciousness;
173 }

References m_Data.

Referenced by UIScriptedMenu::ShouldRestartBeVisible(), and UIScriptedMenu::UpdateGUI().

◆ GetDisallowedTypesInUnderground()

static TStringSet CfgGameplayHandler::GetDisallowedTypesInUnderground ( )
inlinestaticprivate

Definition at line 324 of file CfgGameplayHandler.c.

325 {
326 return m_Data.BaseBuildingData.HologramData.disallowedTypesInUnderground;
327 }

References m_Data.

Referenced by ManBase::CanPlaceItem().

◆ GetEnvironmentMaxTemps()

static array< float > CfgGameplayHandler::GetEnvironmentMaxTemps ( )
inlinestaticprivate

Definition at line 143 of file CfgGameplayHandler.c.

144 {
145 return m_Data.WorldsData.environmentMaxTemps;
146 }

References m_Data.

Referenced by WorldData::Init().

◆ GetEnvironmentMinTemps()

static array< float > CfgGameplayHandler::GetEnvironmentMinTemps ( )
inlinestaticprivate

Definition at line 138 of file CfgGameplayHandler.c.

139 {
140 return m_Data.WorldsData.environmentMinTemps;
141 }

References m_Data.

Referenced by WorldData::Init().

◆ GetHealthDepletionSpeed()

static float CfgGameplayHandler::GetHealthDepletionSpeed ( )
inlinestaticprivate

Definition at line 415 of file CfgGameplayHandler.c.

416 {
417 return m_Data.PlayerData.DrowningData.healthDepletionSpeed;
418 }

References m_Data.

Referenced by DrowningMdfr::OnTick().

◆ GetHitIndicationBreakPoint()

static float CfgGameplayHandler::GetHitIndicationBreakPoint ( )
inlinestaticprivate

Definition at line 354 of file CfgGameplayHandler.c.

355 {
356 return m_Data.UIData.HitIndicationData.hitDirectionBreakPointRelative;
357 }

References m_Data.

Referenced by HitDirectionEffectBase::CheckValues().

◆ GetHitIndicationIndicatorColor()

static int CfgGameplayHandler::GetHitIndicationIndicatorColor ( )
inlinestaticprivate

Definition at line 344 of file CfgGameplayHandler.c.

345 {
346 return m_Data.UIData.HitIndicationData.hitDirectionIndicatorColorStr.HexToInt();
347 }

References m_Data.

Referenced by HitDirectionEffectBase::CheckValues().

◆ GetHitIndicationMaxDuration()

static float CfgGameplayHandler::GetHitIndicationMaxDuration ( )
inlinestaticprivate

Definition at line 349 of file CfgGameplayHandler.c.

350 {
351 return m_Data.UIData.HitIndicationData.hitDirectionMaxDuration;
352 }

References m_Data.

Referenced by HitDirectionEffectBase::CheckValues().

◆ GetHitIndicationMode()

static int CfgGameplayHandler::GetHitIndicationMode ( )
inlinestaticprivate

Definition at line 334 of file CfgGameplayHandler.c.

335 {
336 return m_Data.UIData.HitIndicationData.hitDirectionBehaviour;
337 }

References m_Data.

Referenced by HitDirectionEffectBase::CheckValues().

◆ GetHitIndicationOverrideEnabled()

static bool CfgGameplayHandler::GetHitIndicationOverrideEnabled ( )
inlinestaticprivate

Definition at line 329 of file CfgGameplayHandler.c.

330 {
331 return m_Data.UIData.HitIndicationData.hitDirectionOverrideEnabled;
332 }

References m_Data.

Referenced by HitDirectionEffectBase::CheckValues().

◆ GetHitIndicationPPEEnabled()

static bool CfgGameplayHandler::GetHitIndicationPPEEnabled ( )
inlinestaticprivate

Definition at line 364 of file CfgGameplayHandler.c.

365 {
366 return m_Data.UIData.HitIndicationData.hitIndicationPostProcessEnabled;
367 }

References m_Data.

Referenced by ManBase::OnGameplayDataHandlerSync().

◆ GetHitIndicationScatter()

static float CfgGameplayHandler::GetHitIndicationScatter ( )
inlinestaticprivate

Definition at line 359 of file CfgGameplayHandler.c.

360 {
361 return m_Data.UIData.HitIndicationData.hitDirectionScatter;
362 }

References m_Data.

Referenced by HitDirectionEffectBase::CheckValues().

◆ GetHitIndicationTypeID()

static int CfgGameplayHandler::GetHitIndicationTypeID ( )
inlinestaticprivate

Definition at line 339 of file CfgGameplayHandler.c.

340 {
341 return m_Data.UIData.HitIndicationData.hitDirectionStyle;
342 }

References m_Data.

Referenced by HitDirectionEffectBase::CheckValues().

◆ GetHoldBreathStaminaModifier()

static float CfgGameplayHandler::GetHoldBreathStaminaModifier ( )
inlinestaticprivate

Definition at line 224 of file CfgGameplayHandler.c.

225 {
226 return m_Data.PlayerData.StaminaData.holdBreathStaminaModifier;
227 }

References m_Data.

Referenced by Init().

◆ GetLightingConfig()

static int CfgGameplayHandler::GetLightingConfig ( )
inlinestaticprivate

Definition at line 128 of file CfgGameplayHandler.c.

129 {
130 return m_Data.WorldsData.lightingConfig;
131 }

References m_Data.

Referenced by ManBase::UpdateLighting().

◆ GetMapDisplayNavigationInfo()

static bool CfgGameplayHandler::GetMapDisplayNavigationInfo ( )
inlinestaticprivate

Definition at line 405 of file CfgGameplayHandler.c.

406 {
407 return m_Data.MapData.displayNavInfo;
408 }

References m_Data.

Referenced by UIScriptedMenu::Init().

◆ GetMapDisplayPlayerPosition()

static bool CfgGameplayHandler::GetMapDisplayPlayerPosition ( )
inlinestaticprivate

Definition at line 400 of file CfgGameplayHandler.c.

401 {
402 return m_Data.MapData.displayPlayerPosition;
403 }

References m_Data.

Referenced by UIScriptedMenu::Init().

◆ GetMapIgnoreMapOwnership()

static bool CfgGameplayHandler::GetMapIgnoreMapOwnership ( )
inlinestaticprivate

Definition at line 390 of file CfgGameplayHandler.c.

391 {
392 return m_Data.MapData.ignoreMapOwnership;
393 }

References m_Data.

Referenced by UIScriptedMenu::CloseMapMenu(), MissionBase::OnUpdate(), and UIScriptedMenu::Update().

◆ GetMapIgnoreNavItemsOwnership()

static bool CfgGameplayHandler::GetMapIgnoreNavItemsOwnership ( )
inlinestaticprivate

Definition at line 395 of file CfgGameplayHandler.c.

396 {
397 return m_Data.MapData.ignoreNavItemsOwnership;
398 }

References m_Data.

Referenced by UIScriptedMenu::Init(), and UIScriptedMenu::Update().

◆ GetMeleeStaminaModifier()

static float CfgGameplayHandler::GetMeleeStaminaModifier ( )
inlinestaticprivate

Definition at line 214 of file CfgGameplayHandler.c.

215 {
216 return m_Data.PlayerData.StaminaData.meleeStaminaModifier;
217 }

References m_Data.

Referenced by StaminaHandler::RegisterStaminaModifiers().

◆ GetMovementRotationSpeedJog()

static float CfgGameplayHandler::GetMovementRotationSpeedJog ( )
inlinestaticprivate

Definition at line 244 of file CfgGameplayHandler.c.

245 {
246 return Math.Max(0.01, m_Data.PlayerData.MovementData.rotationSpeedJog);
247 }
Definition EnMath.c:7
static proto float Max(float x, float y)
Returns bigger of two given values.

References m_Data, and Math::Max().

◆ GetMovementRotationSpeedSprint()

static float CfgGameplayHandler::GetMovementRotationSpeedSprint ( )
inlinestaticprivate

Definition at line 249 of file CfgGameplayHandler.c.

250 {
251 return Math.Max(0.01, m_Data.PlayerData.MovementData.rotationSpeedSprint);
252 }

References m_Data, and Math::Max().

◆ GetMovementTimeToSprint()

static float CfgGameplayHandler::GetMovementTimeToSprint ( )
inlinestaticprivate

Definition at line 234 of file CfgGameplayHandler.c.

235 {
236 return Math.Max(0.01, m_Data.PlayerData.MovementData.timeToSprint);
237 }

References m_Data, and Math::Max().

Referenced by DayZPlayerTypeUtils::DayZPlayerTypeInitMovement().

◆ GetMovementTimeToStrafeJog()

static float CfgGameplayHandler::GetMovementTimeToStrafeJog ( )
inlinestaticprivate

Definition at line 229 of file CfgGameplayHandler.c.

230 {
231 return Math.Max(0.01, m_Data.PlayerData.MovementData.timeToStrafeJog);
232 }

References m_Data, and Math::Max().

Referenced by DayZPlayerTypeUtils::DayZPlayerTypeInitMovement().

◆ GetMovementTimeToStrafeSprint()

static float CfgGameplayHandler::GetMovementTimeToStrafeSprint ( )
inlinestaticprivate

Definition at line 239 of file CfgGameplayHandler.c.

240 {
241 return Math.Max(0.01, m_Data.PlayerData.MovementData.timeToStrafeSprint);
242 }

References m_Data, and Math::Max().

Referenced by DayZPlayerTypeUtils::DayZPlayerTypeInitMovement().

◆ GetObjectSpawnersArr()

static TStringArray CfgGameplayHandler::GetObjectSpawnersArr ( )
inlinestaticprivate

Definition at line 133 of file CfgGameplayHandler.c.

134 {
135 return m_Data.WorldsData.objectSpawnersArr;
136 }

References m_Data.

Referenced by ObjectSpawnerHandler::SpawnObjects().

◆ GetObstacleTraversalStaminaModifier()

static float CfgGameplayHandler::GetObstacleTraversalStaminaModifier ( )
inlinestaticprivate

Definition at line 219 of file CfgGameplayHandler.c.

220 {
221 return m_Data.PlayerData.StaminaData.obstacleTraversalStaminaModifier;
222 }

References m_Data.

Referenced by StaminaHandler::RegisterStaminaModifiers().

◆ GetPlayerSpawnGearPresetFiles()

static TStringArray CfgGameplayHandler::GetPlayerSpawnGearPresetFiles ( )
inlinestaticprivate

Definition at line 430 of file CfgGameplayHandler.c.

431 {
432 return m_Data.PlayerData.spawnGearPresetFiles;
433 }

References m_Data.

Referenced by PlayerSpawnHandler::LoadData().

◆ GetShockDepletionSpeed()

static float CfgGameplayHandler::GetShockDepletionSpeed ( )
inlinestaticprivate

Definition at line 420 of file CfgGameplayHandler.c.

421 {
422 return m_Data.PlayerData.DrowningData.shockDepletionSpeed;
423 }

References m_Data.

Referenced by DrowningMdfr::OnTick().

◆ GetShockRefillSpeedConscious()

static float CfgGameplayHandler::GetShockRefillSpeedConscious ( )
inlinestaticprivate

Definition at line 374 of file CfgGameplayHandler.c.

375 {
376 return m_Data.PlayerData.ShockHandlingData.shockRefillSpeedConscious;
377 }

References m_Data.

Referenced by ShockMdfr::GetRefillSpeed().

◆ GetShockRefillSpeedUnconscious()

static float CfgGameplayHandler::GetShockRefillSpeedUnconscious ( )
inlinestaticprivate

Definition at line 379 of file CfgGameplayHandler.c.

380 {
381 return m_Data.PlayerData.ShockHandlingData.shockRefillSpeedUnconscious;
382 }

References m_Data.

Referenced by ShockMdfr::GetRefillSpeed().

◆ GetSprintLadderStaminaModifier()

static float CfgGameplayHandler::GetSprintLadderStaminaModifier ( )
inlinestaticprivate

Definition at line 189 of file CfgGameplayHandler.c.

190 {
191 return m_Data.PlayerData.StaminaData.sprintLadderStaminaModifier;
192 }

References m_Data.

Referenced by StaminaHandler::StaminaProcessor_Ladder().

◆ GetSprintStaminaModifierCro()

static float CfgGameplayHandler::GetSprintStaminaModifierCro ( )
inlinestaticprivate

Definition at line 180 of file CfgGameplayHandler.c.

181 {
182 return m_Data.PlayerData.StaminaData.sprintStaminaModifierCro;
183 }

References m_Data.

Referenced by StaminaHandler::StaminaProcessor_Move().

◆ GetSprintStaminaModifierErc()

static float CfgGameplayHandler::GetSprintStaminaModifierErc ( )
inlinestaticprivate

Definition at line 175 of file CfgGameplayHandler.c.

176 {
177 return m_Data.PlayerData.StaminaData.sprintStaminaModifierErc;
178 }

References m_Data.

Referenced by StaminaHandler::StaminaProcessor_Move().

◆ GetSprintSwimmingStaminaModifier()

static float CfgGameplayHandler::GetSprintSwimmingStaminaModifier ( )
inlinestaticprivate

Definition at line 185 of file CfgGameplayHandler.c.

186 {
187 return m_Data.PlayerData.StaminaData.sprintSwimmingStaminaModifier;
188 }//----------------------------------------------------------------------------------

References m_Data.

Referenced by StaminaHandler::StaminaProcessor_Swimming().

◆ GetStaminaDepletionSpeed()

static float CfgGameplayHandler::GetStaminaDepletionSpeed ( )
inlinestaticprivate

Definition at line 410 of file CfgGameplayHandler.c.

411 {
412 return m_Data.PlayerData.DrowningData.staminaDepletionSpeed;
413 }

References m_Data.

◆ GetStaminaKgToStaminaPercentPenalty()

static float CfgGameplayHandler::GetStaminaKgToStaminaPercentPenalty ( )
inlinestaticprivate

Definition at line 204 of file CfgGameplayHandler.c.

205 {
206 return m_Data.PlayerData.StaminaData.staminaKgToStaminaPercentPenalty;
207 }

References m_Data.

Referenced by StaminaHandler::Update().

◆ GetStaminaMax()

static float CfgGameplayHandler::GetStaminaMax ( )
inlinestaticprivate

◆ GetStaminaMinCap()

static float CfgGameplayHandler::GetStaminaMinCap ( )
inlinestaticprivate

Definition at line 209 of file CfgGameplayHandler.c.

210 {
211 return m_Data.PlayerData.StaminaData.staminaMinCap;
212 }

References m_Data.

Referenced by StaminaHandler::RegisterStaminaConsumers(), and StaminaHandler::Update().

◆ GetStaminaWeightLimitThreshold()

static float CfgGameplayHandler::GetStaminaWeightLimitThreshold ( )
inlinestaticprivate

Definition at line 194 of file CfgGameplayHandler.c.

195 {
196 return m_Data.PlayerData.StaminaData.staminaWeightLimitThreshold;
197 }

References m_Data.

Referenced by StaminaHandler::Update().

◆ GetUse3DMap()

static bool CfgGameplayHandler::GetUse3DMap ( )
inlinestaticprivate

◆ GetWetnessWeightModifiers()

static array< float > CfgGameplayHandler::GetWetnessWeightModifiers ( )
inlinestaticprivate

Definition at line 147 of file CfgGameplayHandler.c.

148 {
149 return m_Data.WorldsData.wetnessWeightModifiers;
150 }

References m_Data.

Referenced by Entity::GetWetWeightModifier().

◆ InitData()

static void CfgGameplayHandler::InitData ( )
inlinestaticprivate

Definition at line 29 of file CfgGameplayHandler.c.

30 {
31 foreach (ITEM_DataBase item: m_Items)
33 }
ITEM_PlayerData InitServer
static ref array< ref ITEM_DataBase > m_Items

References m_Items.

Referenced by LoadData().

◆ LoadData()

static bool CfgGameplayHandler::LoadData ( )
inlinestaticprivate

we are allowed to read the file, so we replace the default data with data from json

Definition at line 42 of file CfgGameplayHandler.c.

43 {
44 if (!FileExist(m_Path))
45 {
46 m_Path = "";
47 GetGame().GetWorldName(m_Path);
48 m_Path = string.Format("dz/worlds/%1/ce/cfggameplay.json", m_Path);
49 }
50
51 bool cfgGameplayFileEnabled = GetGame().ServerConfigGetInt("enableCfgGameplayFile");
52
53#ifdef DIAG_DEVELOPER
54 if (!GetGame().IsDedicatedServer())
56#endif
57
59 {
60 m_Data.InitServer();//legacy call
61 InitData();
62 OnLoaded();
63 return false;
64 }
65
66 string errorMessage;
69
71 OnLoaded();
72
73 return true;
74 }
static void ValidateItems()
proto native CGame GetGame()
enum ShapeType ErrorEx
proto bool FileExist(string name)
Check existence of file.

References ErrorEx, FileExist(), GetGame(), InitData(), m_Data, m_Path, OnLoaded(), and ValidateItems().

Referenced by MissionBase::OnInit().

◆ OnLoaded()

static void CfgGameplayHandler::OnLoaded ( )
inlinestaticprivate

Definition at line 77 of file CfgGameplayHandler.c.

78 {
79 GetGame().GetMission().OnGameplayDataHandlerLoad();
80 DayZGame.Cast(GetGame()).OnGameplayDataHandlerLoad();
81 }

References GetGame().

Referenced by LoadData().

◆ OnRPC()

static void CfgGameplayHandler::OnRPC ( Man player,
ParamsReadContext ctx )
inlinestaticprivate

Definition at line 98 of file CfgGameplayHandler.c.

99 {
101
102 if (ctx.Read(data))
103 m_Data = data.param1;
104 else
105 ErrorEx("CfgGameplayHandler - client failed to read incoming data");
106 }

References ErrorEx, and m_Data.

Referenced by CGame::OnRPC().

◆ RegisterItem()

static void CfgGameplayHandler::RegisterItem ( ITEM_DataBase item)
inlinestaticprivate

Definition at line 9 of file CfgGameplayHandler.c.

10 {
11 m_Items.Insert(item);
12 }

References m_Items.

Referenced by ITEM_DataBase::ITEM_DataBase().

◆ SyncDataSend()

static void CfgGameplayHandler::SyncDataSend ( notnull Man player)
inlinestaticprivate

Definition at line 84 of file CfgGameplayHandler.c.

85 {
86 GetGame().RPCSingleParam(player, ERPCs.RPC_CFG_GAMEPLAY_SYNC, new Param1<CfgGameplayJson>(m_Data), true, player.GetIdentity());
87 }
ERPCs
Definition ERPCs.c:2

References GetGame(), and m_Data.

◆ SyncDataSendEx()

static void CfgGameplayHandler::SyncDataSendEx ( notnull PlayerIdentity identity)
inlinestaticprivate

Definition at line 90 of file CfgGameplayHandler.c.

91 {
92 //Debug.Log("SyncDataSendEx");
93 GetGame().RPCSingleParam(null, ERPCs.RPC_CFG_GAMEPLAY_SYNC, new Param1<CfgGameplayJson>(m_Data), true, identity);
94 }

References GetGame(), and m_Data.

Referenced by MissionBase::OnEvent().

◆ ValidateItems()

static void CfgGameplayHandler::ValidateItems ( )
inlinestaticprivate

Definition at line 14 of file CfgGameplayHandler.c.

15 {
16 foreach (ITEM_DataBase item : m_Items)
17 {
18 if (!item.ValidateServer())
19 {
20 string itemName = item.Type().ToString();
21 itemName.Replace("ITEM_", "");
22 PrintToRPT("Validation failed during loading of 'cfggameplay.json' for " + itemName);
23 item.InitServer();
24 }
25 }
26 }
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...

References m_Items, and PrintToRPT().

Referenced by LoadData().

Member Data Documentation

◆ m_Data

ref CfgGameplayJson CfgGameplayHandler::m_Data = new CfgGameplayJson()
staticprivate

Definition at line 6 of file CfgGameplayHandler.c.

Referenced by GetAllowRefillSpeedModifier(), GetAllowStaminaAffectInertia(), GetDisable2dMap(), GetDisableBaseDamage(), GetDisableContainerDamage(), GetDisableDistanceCheck(), GetDisableHeightPlacementCheck(), GetDisableIsBaseViableCheck(), GetDisableIsClippingRoofCheck(), GetDisableIsCollidingAngleCheck(), GetDisableIsCollidingBBoxCheck(), GetDisableIsCollidingCheck(), GetDisableIsCollidingGPlotCheck(), GetDisableIsCollidingPlayerCheck(), GetDisableIsInTerrainCheck(), GetDisableIsPlacementPermittedCheck(), GetDisableIsUnderwaterCheck(), GetDisablePerformRoofCheck(), GetDisablePersonalLight(), GetDisableRespawnDialog(), GetDisableRespawnInUnconsciousness(), GetDisallowedTypesInUnderground(), GetEnvironmentMaxTemps(), GetEnvironmentMinTemps(), GetHealthDepletionSpeed(), GetHitIndicationBreakPoint(), GetHitIndicationIndicatorColor(), GetHitIndicationMaxDuration(), GetHitIndicationMode(), GetHitIndicationOverrideEnabled(), GetHitIndicationPPEEnabled(), GetHitIndicationScatter(), GetHitIndicationTypeID(), GetHoldBreathStaminaModifier(), GetLightingConfig(), GetMapDisplayNavigationInfo(), GetMapDisplayPlayerPosition(), GetMapIgnoreMapOwnership(), GetMapIgnoreNavItemsOwnership(), GetMeleeStaminaModifier(), GetMovementRotationSpeedJog(), GetMovementRotationSpeedSprint(), GetMovementTimeToSprint(), GetMovementTimeToStrafeJog(), GetMovementTimeToStrafeSprint(), GetObjectSpawnersArr(), GetObstacleTraversalStaminaModifier(), GetPlayerSpawnGearPresetFiles(), GetShockDepletionSpeed(), GetShockRefillSpeedConscious(), GetShockRefillSpeedUnconscious(), GetSprintLadderStaminaModifier(), GetSprintStaminaModifierCro(), GetSprintStaminaModifierErc(), GetSprintSwimmingStaminaModifier(), GetStaminaDepletionSpeed(), GetStaminaKgToStaminaPercentPenalty(), GetStaminaMax(), GetStaminaMinCap(), GetStaminaWeightLimitThreshold(), GetUse3DMap(), GetWetnessWeightModifiers(), LoadData(), OnRPC(), SyncDataSend(), and SyncDataSendEx().

◆ m_Items

ref array<ref ITEM_DataBase> CfgGameplayHandler::m_Items = new array<ref ITEM_DataBase>()
staticprivate

Definition at line 4 of file CfgGameplayHandler.c.

Referenced by InitData(), RegisterItem(), and ValidateItems().

◆ m_Path

string CfgGameplayHandler::m_Path = "$mission:cfggameplay.json"
staticprivate

Definition at line 3 of file CfgGameplayHandler.c.

Referenced by LoadData().


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