Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
cfggameplaydatajson.c
Go to the documentation of this file.
3{
4 int version = -1;
5
7 void InitServer()
8 {
9 }
10
11 //-------------------------------------------------------------------------------------------------
12
13
15 ref ITEM_GeneralData GeneralData = new ITEM_GeneralData;
17 ref ITEM_WorldData WorldsData = new ITEM_WorldData;
22
23};
24
26{
28 {
29 #ifdef SERVER
31 #endif
32 }
33
35 {
36 return true;
37 }
38
39 void InitServer();
40}
41
42class ITEM_GeneralData : ITEM_DataBase
43{
44 override void InitServer()
45 {
46 disableBaseDamage = g_Game.ServerConfigGetInt( "disableBaseDamage" );
47 disableContainerDamage = g_Game.ServerConfigGetInt( "disableContainerDamage" );
48 disableRespawnDialog = g_Game.ServerConfigGetInt("disableRespawnDialog");
49 }
50
51 override bool ValidateServer()
52 {
53 return true;
54 }
55 //-------------------------------------------------------------------------------------------------
56
61
62};
63
64//--------------------------------------------------------------------------------------------------------------------------------------------------
65
67{
71 ref ITEM_DrowningData DrowningData = new ITEM_DrowningData;
72 ref ITEM_WeaponObstructionData WeaponObstructionData = new ITEM_WeaponObstructionData;
73
74 override void InitServer()
75 {
76 disablePersonalLight = g_Game.ServerConfigGetInt( "disablePersonalLight" );
77 }
78
79 override bool ValidateServer()
80 {
81 return true;
82 }
83
84 //-------------------------------------------------------------------------------------------------
89
90};
91
92//--------------------------------------------------------------------------------------------------------------------------------------------------
93
95{
96 override void InitServer()
97 {
98 }
99
100 override bool ValidateServer()
101 {
102 return true;
103 }
104
105 //-------------------------------------------------------------------------------------------------
110};
111
112//--------------------------------------------------------------------------------------------------------------------------------------------------
113
115{
116 override void InitServer()
117 {
119 }
120
121 override bool ValidateServer()
122 {
123 if (staminaMax == 0.0)
124 return false;
125
126 return true;
127 }
128
129 //-------------------------------------------------------------------------------------------------
135 float sprintStaminaModifierErc = 1;//consumption of stamina during standing sprint modification
136 float sprintStaminaModifierCro = 1;//consumption of stamina during crouched sprint modification
137 float sprintSwimmingStaminaModifier = 1;//consumption of stamina during swimming sprint modification
138 float sprintLadderStaminaModifier = 1;//consumption of stamina during climbing sprint modification
139 float meleeStaminaModifier = 1;//consumption of stamina during melee attacks and evasion modification
140 float obstacleTraversalStaminaModifier = 1;// vaulting and climbing stamina consumption modification
141 float holdBreathStaminaModifier = 1;// hold breath stamina consumption modification
142};
143
144//--------------------------------------------------------------------------------------------------------------------------------------------------
145
147{
148 override void InitServer()
149 {
150 }
151
152 override bool ValidateServer()
153 {
154 return true;
155 }
156
157 //-------------------------------------------------------------------------------------------------
159 float timeToStrafeJog = 0.1;
160 float rotationSpeedJog = 0.15;
161 float timeToSprint = 0.45;
165}
166
167//--------------------------------------------------------------------------------------------------------------------------------------------------
168
169class ITEM_WorldData : ITEM_DataBase
170{
171 override void InitServer()
172 {
173 lightingConfig = g_Game.ServerConfigGetInt( "lightingConfig" );
175 }
176
177 override bool ValidateServer()
178 {
180 {
181 return false;
182 }
184 return true;
187 //-------------------------------------------------------------------------------------------------
190
196};
197
198//--------------------------------------------------------------------------------------------------------------------------------------------------
199
201{
202
203 override void InitServer()
204 {
205 }
206
207 override bool ValidateServer()
208 {
209 return true;
210 }
211
212 //-------------------------------------------------------------------------------------------------
216};
217
218//--------------------------------------------------------------------------------------------------------------------------------------------------
219
221{
222
223 override void InitServer()
224 {
226 disallowedTypesInUnderground.Insert("FenceKit");
227 disallowedTypesInUnderground.Insert("TerritoryFlagKit");
228 disallowedTypesInUnderground.Insert("WatchtowerKit");
229 }
230
231 override bool ValidateServer()
232 {
233 return true;
234 }
235
236 //-------------------------------------------------------------------------------------------------
250};
251
252//--------------------------------------------------------------------------------------------------------------------------------------------------
253
255{
256
257 override void InitServer()
258 {
259 }
260
261 override bool ValidateServer()
262 {
263 return true;
264 }
265
266 //-------------------------------------------------------------------------------------------------
271};
272
273//--------------------------------------------------------------------------------------------------------------------------------------------------
274
277{
278 override void InitServer()
279 {
280 HitIndicationData.InitServer();
281 }
282
283 override bool ValidateServer()
284 {
285 return true;
286 }
287
288 //-------------------------------------------------------------------------------------------------
291 bool use3DMap = false;
292};
293
294//--------------------------------------------------------------------------------------------------------------------------------------------------
295
297{
298 override void InitServer()
299 {
302 }
303
304 override bool ValidateServer()
305 {
306 return true;
307 }
308
309 //-------------------------------------------------------------------------------------------------
314 int hitDirectionStyle = HitIndicatorType.SPLASH;
316 float hitDirectionMaxDuration = HitDirectionConstants.DURATION_BASE;
317 float hitDirectionBreakPointRelative = HitDirectionConstants.BREAKPOINT_BASE;
318 float hitDirectionScatter = HitDirectionConstants.SCATTER;
320};
321
322//--------------------------------------------------------------------------------------------------------------------------------------------------
323
325{
326 override void InitServer()
327 {
328 }
329
330 override bool ValidateServer()
331 {
332 return true;
333 }
334
335 //-------------------------------------------------------------------------------------------------
337 bool ignoreMapOwnership = false;
340 bool displayNavInfo = true;
341}
342
343//--------------------------------------------------------------------------------------------------------------------------------------------------
344
345class ITEM_DrowningData : ITEM_DataBase
346{
347 override void InitServer()
348 {
349 }
350
351 override bool ValidateServer()
352 {
353 return true;
354 }
355
356 //-------------------------------------------------------------------------------------------------
363//--------------------------------------------------------------------------------------------------------------------------------------------------
365{
366 DISABLED = 0, // Obstruction disallowed. Weapon doesn't obstruct, but still lifts.
367 ENABLED = 1, // Obstruction allowed. Weapon first obstructs and then lifts.
368 ALWAYS = 2, // Obstruction always. Weapon obstructs and never lifts.
369}
370
371class ITEM_WeaponObstructionData : ITEM_DataBase
372{
373 override void InitServer()
377 override bool ValidateServer()
378 {
379 return true;
380 }
381
382 //-------------------------------------------------------------------------------------------------
386}
387
388//--------------------------------------------------------------------------------------------------------------------------------------------------
389
391{
392 override void InitServer()
393 {
394 }
395
396 override bool ValidateServer()
397 {
398 return true;
399 }
400
401 //-------------------------------------------------------------------------------------------------
404};
EWeaponObstructionMode
ref array< float > environmentMaxTemps
ref array< string > objectSpawnersArr
ref array< float > wetnessWeightModifiers
bool disableRespawnDialog
ref array< float > environmentMinTemps
EWeaponObstructionMode staticMode
!! all member variables must correspond with the cfggameplay.json file contents !!...
float healthDepletionSpeed
bool disableRespawnInUnconsciousness
float staminaDepletionSpeed
!! all member variables must correspond with the cfggameplay.json file contents !!...
int lightingConfig
!! all member variables must correspond with the cfggameplay.json file contents !!...
EWeaponObstructionMode dynamicMode
bool disableBaseDamage
!! all member variables must correspond with the cfggameplay.json file contents !!...
ref TStringArray playerRestrictedAreaFiles
bool disableContainerDamage
float shockDepletionSpeed
static void RegisterItem(ITEM_DataBase item)
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_UIData UIData
ref ITEM_MapData MapData
ref ITEM_WorldData WorldsData
ref ITEM_GeneralData GeneralData
!! all member variables must correspond with the cfggameplay.json file contents !!...
ref ITEM_VehicleData VehicleData
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 !!...
void InitServer()
bool hitDirectionOverrideEnabled
!! all member variables must correspond with the cfggameplay.json file contents !!...
override bool ValidateServer()
override void InitServer()
ref TStringSet disallowedTypesInUnderground
bool disableIsCollidingBBoxCheck
!! all member variables must correspond with the cfggameplay.json file contents !!...
override bool ValidateServer()
bool ignoreMapOwnership
!! all member variables must correspond with the cfggameplay.json file contents !!...
override void InitServer()
override bool ValidateServer()
override void InitServer()
float timeToStrafeJog
!! all member variables must correspond with the cfggameplay.json file contents !!...
override bool ValidateServer()
ref ITEM_ShockHandlingData ShockHandlingData
override void InitServer()
bool disablePersonalLight
!! all member variables must correspond with the cfggameplay.json file contents !!...
ref TStringArray spawnGearPresetFiles
ref ITEM_DrowningData DrowningData
ref ITEM_MovementData MovementData
ref ITEM_WeaponObstructionData WeaponObstructionData
ref ITEM_StaminaData StaminaData
float shockRefillSpeedConscious
!! all member variables must correspond with the cfggameplay.json file contents !!...
override bool ValidateServer()
override void InitServer()
float staminaWeightLimitThreshold
!! all member variables must correspond with the cfggameplay.json file contents !!...
data for UI, in-game HUD, and similar
override bool ValidateServer()
override void InitServer()
ref ITEM_HitIndicationData HitIndicationData
!! all member variables must correspond with the cfggameplay.json file contents !!...
override bool ValidateServer()
override void InitServer()
float boatDecayMultiplier
!! all member variables must correspond with the cfggameplay.json file contents !!...
static const float SHOCK_REFILl_UNCONSCIOUS_SPEED
static const float SHOCK_REFILL_CONSCIOUS_SPEED
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
DayZGame g_Game
Definition dayzgame.c:3942
HitDirectionModes
Definition constants.c:98
array< string > TStringArray
Definition enscript.c:712
set< string > TStringSet
Definition enscript.c:802
const float WEIGHT_SOAKING_WET
Definition constants.c:904
const float WEIGHT_DRENCHED
Definition constants.c:903
const float WEIGHT_WET
Definition constants.c:905
const float WEIGHT_DRY
Definition constants.c:907
const float WEIGHT_DAMP
Definition constants.c:906
const float STAMINA_WEIGHT_LIMIT_THRESHOLD
Definition constants.c:712
const float STAMINA_MIN_CAP
Definition constants.c:699
const float STAMINA_KG_TO_STAMINAPERCENT_PENALTY
Definition constants.c:698
const float STAMINA_MAX
Definition constants.c:715
@ DISABLED
Definition enwidgets.c:79