3 private static string m_Path =
"$mission:cfgGameplay.json";
18 if (!item.ValidateServer())
20 string itemName = item.Type().ToString();
22 PrintToRPT(
"Validation failed during loading of 'cfgGameplay.json' for " + itemName);
61 JsonFileLoader<CfgGameplayJson>.JsonLoadFile(
m_Path,
m_Data );
72 DayZGame.Cast(
GetGame()).OnGameplayDataHandlerLoad();
92 Param1<CfgGameplayJson> data =
new Param1<CfgGameplayJson>(null);
100 ErrorEx(
"CfgGameplayHandler - client failed to read incoming data");
proto void GetWorldName(out string world_name)
proto native Mission GetMission()
void RPCSingleParam(Object target, int rpc_type, Param param, bool guaranteed, PlayerIdentity recipient=null)
see CGame.RPC
static float GetShockRefillSpeedUnconscious()
static bool GetAllowStaminaAffectInertia()
static bool GetDisableDistanceCheck()
static int GetHitIndicationTypeID()
static bool GetDisableIsCollidingPlayerCheck()
static TStringArray GetObjectSpawnersArr()
static void OnRPC(Man player, ParamsReadContext ctx)
static float GetObstacleTraversalStaminaModifier()
static int GetHitIndicationMode()
static float GetStaminaMinCap()
static private string m_Path
static bool GetDisableIsClippingRoofCheck()
static float GetHitIndicationScatter()
static bool GetDisableBaseDamage()
static float GetStaminaKgToStaminaPercentPenalty()
static float GetHitIndicationMaxDuration()
static float GetMovementTimeToStrafeJog()
static float GetShockDepletionSpeed()
static bool GetHitIndicationOverrideEnabled()
static float GetSprintSwimmingStaminaModifier()
static float GetMovementRotationSpeedJog()
static void RegisterItem(ITEM_DataBase item)
static float GetMovementTimeToSprint()
static bool GetDisableIsCollidingGPlotCheck()
static bool GetMapDisplayNavigationInfo()
static float GetHoldBreathStaminaModifier()
static bool GetAllowRefillSpeedModifier()
static float GetMovementRotationSpeedSprint()
static bool GetDisableIsCollidingBBoxCheck()
static private void ValidateItems()
static bool GetDisableIsCollidingCheck()
static void SyncDataSendEx(notnull PlayerIdentity identity)
static bool GetDisableIsInTerrainCheck()
static float GetShockRefillSpeedConscious()
static private void InitData()
static bool GetDisableIsCollidingAngleCheck()
static private ref array< ref ITEM_DataBase > m_Items
static float GetHealthDepletionSpeed()
static bool GetMapIgnoreMapOwnership()
static bool GetMapIgnoreNavItemsOwnership()
static bool GetUse3DMap()
static bool GetMapDisplayPlayerPosition()
static bool GetDisablePerformRoofCheck()
static bool GetDisableIsPlacementPermittedCheck()
static float GetMovementTimeToStrafeSprint()
static bool GetDisable2dMap()
static bool GetDisableHeightPlacementCheck()
static bool GetDisableIsBaseViableCheck()
static float GetStaminaDepletionSpeed()
static void SyncDataSend(notnull Man player)
static float GetSprintLadderStaminaModifier()
static float GetSprintStaminaModifierCro()
static bool GetHitIndicationPPEEnabled()
static float GetSprintStaminaModifierErc()
static int GetLightingConfig()
static array< float > GetWetnessWeightModifiers()
static array< float > GetEnvironmentMinTemps()
static bool GetDisableIsUnderwaterCheck()
static int GetHitIndicationIndicatorColor()
static bool GetDisableContainerDamage()
static bool GetDisableRespawnDialog()
static float GetStaminaWeightLimitThreshold()
static float GetMeleeStaminaModifier()
static float GetHitIndicationBreakPoint()
static bool GetDisablePersonalLight()
static float GetStaminaMax()
static ref CfgGameplayJson m_Data
static array< float > GetEnvironmentMaxTemps()
contents of this class will be transfered to client upon connecting, with the variables in either ini...
ref ITEM_PlayerData PlayerData
ref ITEM_BaseBuildingData BaseBuildingData
ref ITEM_WorldData WorldsData
ref ITEM_GeneralData GeneralData
!! all member variables must correspond with the cfggameplay.json file contents !!...
void InitServer()
Obsolete, 'InitServer' on individual json items is now called centrally.
ref ITEM_HologramData HologramData
!! all member variables must correspond with the cfggameplay.json file contents !!...
ref ITEM_ConstructionData ConstructionData
bool disablePerformRoofCheck
!! all member variables must correspond with the cfggameplay.json file contents !!...
bool disableDistanceCheck
bool disableIsCollidingCheck
string hitDirectionIndicatorColorStr
bool hitIndicationPostProcessEnabled
float hitDirectionScatter
int hitDirectionBehaviour
float hitDirectionMaxDuration
bool hitDirectionOverrideEnabled
float hitDirectionBreakPointRelative
bool disableIsUnderwaterCheck
bool disableHeightPlacementCheck
bool disableIsPlacementPermittedCheck
bool disableIsCollidingBBoxCheck
!! all member variables must correspond with the cfggameplay.json file contents !!...
bool disableIsCollidingPlayerCheck
bool disableIsCollidingAngleCheck
bool disableIsCollidingGPlotCheck
bool disableIsInTerrainCheck
bool disableIsClippingRoofCheck
bool disableIsBaseViableCheck
bool ignoreMapOwnership
!! all member variables must correspond with the cfggameplay.json file contents !!...
bool displayPlayerPosition
bool ignoreNavItemsOwnership
float rotationSpeedSprint
float timeToStrafeJog
!! all member variables must correspond with the cfggameplay.json file contents !!...
bool allowStaminaAffectInertia
ref ITEM_ShockHandlingData ShockHandlingData
bool disablePersonalLight
!! all member variables must correspond with the cfggameplay.json file contents !!...
ref ITEM_DrowningData DrowningData
ref ITEM_MovementData MovementData
ref ITEM_StaminaData StaminaData
float shockRefillSpeedUnconscious
float shockRefillSpeedConscious
!! all member variables must correspond with the cfggameplay.json file contents !!...
bool allowRefillSpeedModifier
float meleeStaminaModifier
float sprintStaminaModifierErc
float sprintSwimmingStaminaModifier
float staminaKgToStaminaPercentPenalty
float holdBreathStaminaModifier
float obstacleTraversalStaminaModifier
float staminaWeightLimitThreshold
!! all member variables must correspond with the cfggameplay.json file contents !!...
float sprintLadderStaminaModifier
float sprintStaminaModifierCro
ref ITEM_HitIndicationData HitIndicationData
!! all member variables must correspond with the cfggameplay.json file contents !!...
void OnGameplayDataHandlerLoad()
The class that will be instanced (moddable)
Serialization general interface. Serializer API works with:
proto bool Read(void value_in)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
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.
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.
proto native int HexToInt()
Converts string to integer.
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.