DayZ 1.24
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
21
22};
23
25{
27 {
28#ifdef SERVER
30#endif
31 }
32
34 {
35 return true;
36 }
37
38 void InitServer();
39}
40
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 //-------------------------------------------------------------------------------------------------
60
61};
62
63//--------------------------------------------------------------------------------------------------------------------------------------------------
64
66{
71
72 override void InitServer()
73 {
74 disablePersonalLight = GetGame().ServerConfigGetInt("disablePersonalLight");
75 }
76
77 override bool ValidateServer()
78 {
79 return true;
80 }
81
82 //-------------------------------------------------------------------------------------------------
87
88};
89
90//--------------------------------------------------------------------------------------------------------------------------------------------------
91
93{
94 override void InitServer()
95 {
96 }
97
98 override bool ValidateServer()
99 {
100 return true;
101 }
102
103 //-------------------------------------------------------------------------------------------------
108};
109
110//--------------------------------------------------------------------------------------------------------------------------------------------------
111
113{
114 override void InitServer()
115 {
116 }
117
118 override bool ValidateServer()
119 {
120 return true;
121 }
122
123 //-------------------------------------------------------------------------------------------------
129 float sprintStaminaModifierErc = 1;//consumption of stamina during standing sprint modification
130 float sprintStaminaModifierCro = 1;//consumption of stamina during crouched sprint modification
131 float sprintSwimmingStaminaModifier = 1;//consumption of stamina during swimming sprint modification
132 float sprintLadderStaminaModifier = 1;//consumption of stamina during climbing sprint modification
133 float meleeStaminaModifier = 1;//consumption of stamina during melee attacks and evasion modification
134 float obstacleTraversalStaminaModifier = 1;// vaulting and climbing stamina consumption modification
135 float holdBreathStaminaModifier = 1;// hold breath stamina consumption modification
136};
137
138//--------------------------------------------------------------------------------------------------------------------------------------------------
139
141{
142 override void InitServer()
143 {
144 }
145
146 override bool ValidateServer()
147 {
148 return true;
149 }
150
151 //-------------------------------------------------------------------------------------------------
153 float timeToStrafeJog = 0.1;
154 float rotationSpeedJog = 0.15;
155 float timeToSprint = 0.45;
159}
160
161//--------------------------------------------------------------------------------------------------------------------------------------------------
162
164{
165 override void InitServer()
166 {
167 lightingConfig = GetGame().ServerConfigGetInt("lightingConfig");
169 }
170
171 override bool ValidateServer()
172 {
174 return false;
175
176 return true;
179 //-------------------------------------------------------------------------------------------------
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 {
217 disallowedTypesInUnderground.Insert("FenceKit");
218 disallowedTypesInUnderground.Insert("TerritoryFlagKit");
219 disallowedTypesInUnderground.Insert("WatchtowerKit");
220 }
221
222 override bool ValidateServer()
223 {
224 return true;
225 }
226
227 //-------------------------------------------------------------------------------------------------
240};
241
242//--------------------------------------------------------------------------------------------------------------------------------------------------
243
245{
246
247 override void InitServer()
248 {
249 }
250
251 override bool ValidateServer()
252 {
253 return true;
254 }
255
256 //-------------------------------------------------------------------------------------------------
261};
262
263//--------------------------------------------------------------------------------------------------------------------------------------------------
264
267{
268 override void InitServer()
269 {
270 HitIndicationData.InitServer();
271 }
272
273 override bool ValidateServer()
274 {
275 return true;
276 }
277
278 //-------------------------------------------------------------------------------------------------
281 bool use3DMap = false;
282};
283
284//--------------------------------------------------------------------------------------------------------------------------------------------------
285
287{
288 override void InitServer()
289 {
292 }
293
294 override bool ValidateServer()
295 {
296 return true;
297 }
298
299 //-------------------------------------------------------------------------------------------------
310};
311
312//--------------------------------------------------------------------------------------------------------------------------------------------------
313
315{
316 override void InitServer()
317 {
318 }
319
320 override bool ValidateServer()
321 {
322 return true;
323 }
324
325 //-------------------------------------------------------------------------------------------------
327 bool ignoreMapOwnership = false;
330 bool displayNavInfo = true;
331}
332
333//--------------------------------------------------------------------------------------------------------------------------------------------------
334
336{
337 override void InitServer()
338 {
339 }
340
341 override bool ValidateServer()
342 {
343 return true;
344 }
345
346 //-------------------------------------------------------------------------------------------------
bool ValidateServer()
ref array< float > environmentMaxTemps
ref array< string > objectSpawnersArr
ref array< float > wetnessWeightModifiers
bool disableRespawnDialog
ref array< float > environmentMinTemps
ITEM_PlayerData InitServer
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 !!...
bool disableBaseDamage
!! all member variables must correspond with the cfggameplay.json file contents !!...
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_GeneralData GeneralData
!! all member variables must correspond with the cfggameplay.json file contents !!...
ref ITEM_WorldData WorldsData
ref ITEM_UIData UIData
ref ITEM_PlayerData PlayerData
void InitServer()
Obsolete, 'InitServer' on individual json items is now called centrally.
ref ITEM_BaseBuildingData BaseBuildingData
ref ITEM_MapData MapData
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 disableIsCollidingBBoxCheck
!! all member variables must correspond with the cfggameplay.json file contents !!...
override void InitServer()
ref TStringSet disallowedTypesInUnderground
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_MovementData MovementData
ref ITEM_ShockHandlingData ShockHandlingData
override bool ValidateServer()
ref ITEM_DrowningData DrowningData
ref ITEM_StaminaData StaminaData
bool disablePersonalLight
!! all member variables must correspond with the cfggameplay.json file contents !!...
override void InitServer()
ref TStringArray spawnGearPresetFiles
float shockRefillSpeedConscious
!! all member variables must correspond with the cfggameplay.json file contents !!...
float staminaWeightLimitThreshold
!! all member variables must correspond with the cfggameplay.json file contents !!...
override bool ValidateServer()
override void InitServer()
data for UI, in-game HUD, and similar
override bool ValidateServer()
ref ITEM_HitIndicationData HitIndicationData
!! all member variables must correspond with the cfggameplay.json file contents !!...
override void InitServer()
static const float SHOCK_REFILL_CONSCIOUS_SPEED
static const float SHOCK_REFILl_UNCONSCIOUS_SPEED
proto native CGame GetGame()
HitDirectionModes
Definition constants.c:98
set< string > TStringSet
Definition EnScript.c:754
const float WEIGHT_DRY
Definition constants.c:797
const float WEIGHT_DAMP
Definition constants.c:796
const float WEIGHT_SOAKING_WET
Definition constants.c:794
const float WEIGHT_WET
Definition constants.c:795
const float WEIGHT_DRENCHED
Definition constants.c:793
const float STAMINA_MIN_CAP
Definition constants.c:647
const float STAMINA_MAX
Definition constants.c:663
const float STAMINA_WEIGHT_LIMIT_THRESHOLD
Definition constants.c:660
const float STAMINA_KG_TO_STAMINAPERCENT_PENALTY
Definition constants.c:646