DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
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;
21
22};
23
25{
27 {
28 #ifdef SERVER
30 #endif
31 }
32
34 {
35 return true;
36 }
37
38 void InitServer();
39}
40
41class ITEM_GeneralData : ITEM_DataBase
42{
43 override void InitServer()
44 {
45 disableBaseDamage = GetGame().ServerConfigGetInt( "disableBaseDamage" );
46 disableContainerDamage = GetGame().ServerConfigGetInt( "disableContainerDamage" );
47 disableRespawnDialog = GetGame().ServerConfigGetInt("disableRespawnDialog");
48 }
49
50 override bool ValidateServer()
51 {
52 return true;
53 }
54 //-------------------------------------------------------------------------------------------------
59
60};
61
62//--------------------------------------------------------------------------------------------------------------------------------------------------
63
65{
69 ref ITEM_DrowningData DrowningData = new ITEM_DrowningData;
70
71 override void InitServer()
72 {
73 disablePersonalLight = GetGame().ServerConfigGetInt( "disablePersonalLight" );
74 }
75
76 override bool ValidateServer()
77 {
78 return true;
79 }
80
81 //-------------------------------------------------------------------------------------------------
85
86};
87
88//--------------------------------------------------------------------------------------------------------------------------------------------------
89
91{
92 override void InitServer()
93 {
94 }
95
96 override bool ValidateServer()
97 {
98 return true;
99 }
100
101 //-------------------------------------------------------------------------------------------------
106};
107
108//--------------------------------------------------------------------------------------------------------------------------------------------------
109
111{
112 override void InitServer()
113 {
114 }
115
116 override bool ValidateServer()
117 {
118 return true;
119 }
120
121 //-------------------------------------------------------------------------------------------------
127 float sprintStaminaModifierErc = 1;//consumption of stamina during standing sprint modification
128 float sprintStaminaModifierCro = 1;//consumption of stamina during crouched sprint modification
129 float sprintSwimmingStaminaModifier = 1;//consumption of stamina during swimming sprint modification
130 float sprintLadderStaminaModifier = 1;//consumption of stamina during climbing sprint modification
131 float meleeStaminaModifier = 1;//consumption of stamina during melee attacks and evasion modification
132 float obstacleTraversalStaminaModifier = 1;// vaulting and climbing stamina consumption modification
133 float holdBreathStaminaModifier = 1;// hold breath stamina consumption modification
134};
135
136//--------------------------------------------------------------------------------------------------------------------------------------------------
137
139{
140 override void InitServer()
141 {
142 }
143
144 override bool ValidateServer()
145 {
146 return true;
147 }
148
149 //-------------------------------------------------------------------------------------------------
151 float timeToStrafeJog = 0.1;
152 float rotationSpeedJog = 0.15;
153 float timeToSprint = 0.45;
157}
158
159//--------------------------------------------------------------------------------------------------------------------------------------------------
160
161class ITEM_WorldData : ITEM_DataBase
162{
163 override void InitServer()
164 {
165 lightingConfig = GetGame().ServerConfigGetInt( "lightingConfig" );
167 }
168
169 override bool ValidateServer()
170 {
172 {
173 return false;
174 }
176 return true;
179 //-------------------------------------------------------------------------------------------------
182
187};
188
189//--------------------------------------------------------------------------------------------------------------------------------------------------
190
192{
193
194 override void InitServer()
195 {
196 }
197
198 override bool ValidateServer()
199 {
200 return true;
201 }
202
203 //-------------------------------------------------------------------------------------------------
207};
208
209//--------------------------------------------------------------------------------------------------------------------------------------------------
210
212{
213
214 override void InitServer()
215 {
216 }
217
218 override bool ValidateServer()
219 {
220 return true;
221 }
222
223 //-------------------------------------------------------------------------------------------------
235};
236
237//--------------------------------------------------------------------------------------------------------------------------------------------------
238
240{
241
242 override void InitServer()
243 {
244 }
245
246 override bool ValidateServer()
247 {
248 return true;
249 }
250
251 //-------------------------------------------------------------------------------------------------
256};
257
258//--------------------------------------------------------------------------------------------------------------------------------------------------
259
262{
263 override void InitServer()
264 {
266 }
267
268 override bool ValidateServer()
269 {
270 return true;
271 }
272
273 //-------------------------------------------------------------------------------------------------
276 bool use3DMap = false;
277};
278
279//--------------------------------------------------------------------------------------------------------------------------------------------------
280
282{
283 override void InitServer()
284 {
287 }
288
289 override bool ValidateServer()
290 {
291 return true;
292 }
293
294 //-------------------------------------------------------------------------------------------------
299 int hitDirectionStyle = HitIndicatorType.SPLASH;
301 float hitDirectionMaxDuration = HitDirectionConstants.DURATION_BASE;
302 float hitDirectionBreakPointRelative = HitDirectionConstants.BREAKPOINT_BASE;
303 float hitDirectionScatter = HitDirectionConstants.SCATTER;
305};
306
307//--------------------------------------------------------------------------------------------------------------------------------------------------
308
310{
311 override void InitServer()
312 {
313 }
314
315 override bool ValidateServer()
316 {
317 return true;
318 }
319
320 //-------------------------------------------------------------------------------------------------
322 bool ignoreMapOwnership = false;
325 bool displayNavInfo = true;
326}
327
328//--------------------------------------------------------------------------------------------------------------------------------------------------
329
330class ITEM_DrowningData : ITEM_DataBase
331{
332 override void InitServer()
333 {
334 }
335
336 override bool ValidateServer()
337 {
338 return true;
339 }
340
341 //-------------------------------------------------------------------------------------------------
ref array< float > environmentMaxTemps
ref array< string > objectSpawnersArr
ref array< float > wetnessWeightModifiers
bool disableRespawnDialog
ref array< float > environmentMinTemps
float healthDepletionSpeed
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 !!...
bool disableBaseDamage
!! all member variables must correspond with the cfggameplay.json file contents !!...
bool disableContainerDamage
float shockDepletionSpeed
proto native int ServerConfigGetInt(string name)
Server config parsing. Returns 0 if not found.
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 !!...
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()
override bool ValidateServer()
override void InitServer()
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 ITEM_DrowningData DrowningData
ref ITEM_MovementData MovementData
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 !!...
static const float SHOCK_REFILl_UNCONSCIOUS_SPEED
static const float SHOCK_REFILL_CONSCIOUS_SPEED
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
HitDirectionModes
Definition constants.c:86
const float WEIGHT_SOAKING_WET
Definition constants.c:779
const float WEIGHT_DRENCHED
Definition constants.c:778
const float WEIGHT_WET
Definition constants.c:780
const float WEIGHT_DRY
Definition constants.c:782
const float WEIGHT_DAMP
Definition constants.c:781
const float STAMINA_WEIGHT_LIMIT_THRESHOLD
Definition constants.c:645
const float STAMINA_MIN_CAP
Definition constants.c:632
const float STAMINA_KG_TO_STAMINAPERCENT_PENALTY
Definition constants.c:631
const float STAMINA_MAX
Definition constants.c:648