3 private static string m_Path =
"$mission:cfggameplay.json";
18 if (!
item.ValidateServer())
48 m_Path =
string.Format(
"dz/worlds/%1/ce/cfggameplay.json",
m_Path);
54 if (!
GetGame().IsDedicatedServer())
79 GetGame().GetMission().OnGameplayDataHandlerLoad();
80 DayZGame.Cast(
GetGame()).OnGameplayDataHandlerLoad();
105 ErrorEx(
"CfgGameplayHandler - client failed to read incoming data");
123 return m_Data.PlayerData.disablePersonalLight;
130 return m_Data.WorldsData.lightingConfig;
135 return m_Data.WorldsData.objectSpawnersArr;
140 return m_Data.WorldsData.environmentMinTemps;
145 return m_Data.WorldsData.environmentMaxTemps;
149 return m_Data.WorldsData.wetnessWeightModifiers;
156 return m_Data.GeneralData.disableBaseDamage;
162 return m_Data.GeneralData.disableContainerDamage;
167 return m_Data.GeneralData.disableRespawnDialog;
172 return m_Data.GeneralData.disableRespawnInUnconsciousness;
177 return m_Data.PlayerData.StaminaData.sprintStaminaModifierErc;
182 return m_Data.PlayerData.StaminaData.sprintStaminaModifierCro;
187 return m_Data.PlayerData.StaminaData.sprintSwimmingStaminaModifier;
191 return m_Data.PlayerData.StaminaData.sprintLadderStaminaModifier;
196 return m_Data.PlayerData.StaminaData.staminaWeightLimitThreshold;
201 return m_Data.PlayerData.StaminaData.staminaMax;
206 return m_Data.PlayerData.StaminaData.staminaKgToStaminaPercentPenalty;
211 return m_Data.PlayerData.StaminaData.staminaMinCap;
216 return m_Data.PlayerData.StaminaData.meleeStaminaModifier;
221 return m_Data.PlayerData.StaminaData.obstacleTraversalStaminaModifier;
226 return m_Data.PlayerData.StaminaData.holdBreathStaminaModifier;
231 return Math.
Max(0.01,
m_Data.PlayerData.MovementData.timeToStrafeJog);
236 return Math.
Max(0.01,
m_Data.PlayerData.MovementData.timeToSprint);
241 return Math.
Max(0.01,
m_Data.PlayerData.MovementData.timeToStrafeSprint);
246 return Math.
Max(0.01,
m_Data.PlayerData.MovementData.rotationSpeedJog);
251 return Math.
Max(0.01,
m_Data.PlayerData.MovementData.rotationSpeedSprint);
256 return m_Data.PlayerData.disable2dMap;
261 return m_Data.BaseBuildingData.HologramData.disableIsCollidingBBoxCheck;
266 return m_Data.BaseBuildingData.HologramData.disableIsCollidingPlayerCheck;
271 return m_Data.BaseBuildingData.HologramData.disableIsClippingRoofCheck;
276 return m_Data.BaseBuildingData.HologramData.disableIsBaseViableCheck;
281 return m_Data.BaseBuildingData.HologramData.disableIsInTerrainCheck;
286 return m_Data.BaseBuildingData.HologramData.disableIsUnderwaterCheck;
291 return m_Data.BaseBuildingData.HologramData.disableHeightPlacementCheck;
296 return m_Data.BaseBuildingData.HologramData.disableIsPlacementPermittedCheck;
301 return m_Data.BaseBuildingData.HologramData.disableIsCollidingAngleCheck;
306 return m_Data.BaseBuildingData.HologramData.disableIsCollidingGPlotCheck;
311 return m_Data.BaseBuildingData.ConstructionData.disableIsCollidingCheck;
316 return m_Data.BaseBuildingData.ConstructionData.disablePerformRoofCheck;
321 return m_Data.BaseBuildingData.ConstructionData.disableDistanceCheck;
326 return m_Data.BaseBuildingData.HologramData.disallowedTypesInUnderground;
331 return m_Data.UIData.HitIndicationData.hitDirectionOverrideEnabled;
336 return m_Data.UIData.HitIndicationData.hitDirectionBehaviour;
341 return m_Data.UIData.HitIndicationData.hitDirectionStyle;
346 return m_Data.UIData.HitIndicationData.hitDirectionIndicatorColorStr.HexToInt();
351 return m_Data.UIData.HitIndicationData.hitDirectionMaxDuration;
356 return m_Data.UIData.HitIndicationData.hitDirectionBreakPointRelative;
361 return m_Data.UIData.HitIndicationData.hitDirectionScatter;
366 return m_Data.UIData.HitIndicationData.hitIndicationPostProcessEnabled;
371 return m_Data.UIData.use3DMap;
376 return m_Data.PlayerData.ShockHandlingData.shockRefillSpeedConscious;
381 return m_Data.PlayerData.ShockHandlingData.shockRefillSpeedUnconscious;
386 return m_Data.PlayerData.ShockHandlingData.allowRefillSpeedModifier;
392 return m_Data.MapData.ignoreMapOwnership;
397 return m_Data.MapData.ignoreNavItemsOwnership;
402 return m_Data.MapData.displayPlayerPosition;
407 return m_Data.MapData.displayNavInfo;
412 return m_Data.PlayerData.DrowningData.staminaDepletionSpeed;
417 return m_Data.PlayerData.DrowningData.healthDepletionSpeed;
422 return m_Data.PlayerData.DrowningData.shockDepletionSpeed;
427 return m_Data.PlayerData.MovementData.allowStaminaAffectInertia;
432 return m_Data.PlayerData.spawnGearPresetFiles;
static ref CfgGameplayJson m_Data
static bool GetHitIndicationOverrideEnabled()
static bool GetDisablePersonalLight()
static float GetHoldBreathStaminaModifier()
static float GetSprintLadderStaminaModifier()
static bool GetUse3DMap()
static bool GetDisable2dMap()
static void RegisterItem(ITEM_DataBase item)
static float GetMovementTimeToStrafeSprint()
static int GetHitIndicationIndicatorColor()
static TStringArray GetObjectSpawnersArr()
static float GetShockRefillSpeedUnconscious()
static bool GetAllowRefillSpeedModifier()
static bool GetDisableIsInTerrainCheck()
static bool GetDisablePerformRoofCheck()
static array< float > GetEnvironmentMaxTemps()
static float GetMovementTimeToSprint()
static int GetLightingConfig()
static bool GetDisableIsClippingRoofCheck()
static float GetStaminaKgToStaminaPercentPenalty()
static float GetMovementTimeToStrafeJog()
static bool GetDisableBaseDamage()
static int GetHitIndicationMode()
static bool GetDisableIsUnderwaterCheck()
static void OnRPC(Man player, ParamsReadContext ctx)
static bool GetDisableIsCollidingBBoxCheck()
static float GetShockDepletionSpeed()
static bool GetAllowStaminaAffectInertia()
static void ValidateItems()
static float GetStaminaMinCap()
static float GetSprintStaminaModifierCro()
static float GetSprintStaminaModifierErc()
static bool GetDisableRespawnInUnconsciousness()
static bool GetDisableHeightPlacementCheck()
static bool GetHitIndicationPPEEnabled()
static float GetHealthDepletionSpeed()
static float GetObstacleTraversalStaminaModifier()
static bool GetDisableIsPlacementPermittedCheck()
static float GetHitIndicationMaxDuration()
static bool GetMapDisplayPlayerPosition()
static bool GetMapDisplayNavigationInfo()
static float GetStaminaMax()
static TStringSet GetDisallowedTypesInUnderground()
static bool GetDisableDistanceCheck()
static int GetHitIndicationTypeID()
static TStringArray GetPlayerSpawnGearPresetFiles()
static bool GetDisableIsCollidingPlayerCheck()
static ref array< ref ITEM_DataBase > m_Items
static bool GetDisableContainerDamage()
static float GetMovementRotationSpeedJog()
static float GetMeleeStaminaModifier()
static bool GetDisableIsCollidingGPlotCheck()
static bool GetDisableRespawnDialog()
static float GetStaminaDepletionSpeed()
static bool GetDisableIsCollidingAngleCheck()
static bool GetMapIgnoreMapOwnership()
static float GetSprintSwimmingStaminaModifier()
static float GetMovementRotationSpeedSprint()
static bool GetMapIgnoreNavItemsOwnership()
static bool GetDisableIsCollidingCheck()
static array< float > GetEnvironmentMinTemps()
static float GetStaminaWeightLimitThreshold()
static bool GetDisableIsBaseViableCheck()
static float GetHitIndicationBreakPoint()
static array< float > GetWetnessWeightModifiers()
static float GetShockRefillSpeedConscious()
static void SyncDataSendEx(notnull PlayerIdentity identity)
static void SyncDataSend(notnull Man player)
static float GetHitIndicationScatter()
contents of this class will be transfered to client upon connecting, with the variables in either ini...
The class that will be instanced (moddable)
Serialization general interface. Serializer API works with:
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...
proto bool FileExist(string name)
Check existence of file.
static proto float Max(float x, float y)
Returns bigger of two given values.