DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
CfgGameplayDataJson.c
См. документацию.
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 = GetGame().ServerConfigGetInt( "disableBaseDamage" );
47 disableContainerDamage = GetGame().ServerConfigGetInt( "disableContainerDamage" );
48 disableRespawnDialog = GetGame().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
73 override void InitServer()
74 {
75 disablePersonalLight = GetGame().ServerConfigGetInt( "disablePersonalLight" );
76 }
77
78 override bool ValidateServer()
79 {
80 return true;
81 }
82
83 //-------------------------------------------------------------------------------------------------
88
89};
90
91//--------------------------------------------------------------------------------------------------------------------------------------------------
92
94{
95 override void InitServer()
96 {
97 }
98
99 override bool ValidateServer()
100 {
101 return true;
102 }
103
104 //-------------------------------------------------------------------------------------------------
109};
110
111//--------------------------------------------------------------------------------------------------------------------------------------------------
112
114{
115 override void InitServer()
116 {
118 }
119
120 override bool ValidateServer()
121 {
122 if (staminaMax == 0.0)
123 return false;
124
125 return true;
126 }
127
128 //-------------------------------------------------------------------------------------------------
134 float sprintStaminaModifierErc = 1;//consumption of stamina during standing sprint modification
135 float sprintStaminaModifierCro = 1;//consumption of stamina during crouched sprint modification
136 float sprintSwimmingStaminaModifier = 1;//consumption of stamina during swimming sprint modification
137 float sprintLadderStaminaModifier = 1;//consumption of stamina during climbing sprint modification
138 float meleeStaminaModifier = 1;//consumption of stamina during melee attacks and evasion modification
139 float obstacleTraversalStaminaModifier = 1;// vaulting and climbing stamina consumption modification
140 float holdBreathStaminaModifier = 1;// hold breath stamina consumption modification
141};
142
143//--------------------------------------------------------------------------------------------------------------------------------------------------
144
146{
147 override void InitServer()
148 {
149 }
150
151 override bool ValidateServer()
152 {
153 return true;
154 }
155
156 //-------------------------------------------------------------------------------------------------
158 float timeToStrafeJog = 0.1;
159 float rotationSpeedJog = 0.15;
160 float timeToSprint = 0.45;
164}
165
166//--------------------------------------------------------------------------------------------------------------------------------------------------
167
168class ITEM_WorldData : ITEM_DataBase
169{
170 override void InitServer()
171 {
172 lightingConfig = GetGame().ServerConfigGetInt( "lightingConfig" );
174 }
175
176 override bool ValidateServer()
177 {
179 {
180 return false;
181 }
183 return true;
186 //-------------------------------------------------------------------------------------------------
189
195};
196
197//--------------------------------------------------------------------------------------------------------------------------------------------------
198
200{
201
202 override void InitServer()
203 {
204 }
205
206 override bool ValidateServer()
207 {
208 return true;
209 }
210
211 //-------------------------------------------------------------------------------------------------
215};
216
217//--------------------------------------------------------------------------------------------------------------------------------------------------
218
220{
221
222 override void InitServer()
223 {
225 disallowedTypesInUnderground.Insert("FenceKit");
226 disallowedTypesInUnderground.Insert("TerritoryFlagKit");
227 disallowedTypesInUnderground.Insert("WatchtowerKit");
228 }
229
230 override bool ValidateServer()
231 {
232 return true;
233 }
234
235 //-------------------------------------------------------------------------------------------------
249};
250
251//--------------------------------------------------------------------------------------------------------------------------------------------------
252
254{
255
256 override void InitServer()
257 {
258 }
259
260 override bool ValidateServer()
261 {
262 return true;
263 }
264
265 //-------------------------------------------------------------------------------------------------
270};
271
272//--------------------------------------------------------------------------------------------------------------------------------------------------
273
276{
277 override void InitServer()
278 {
279 HitIndicationData.InitServer();
280 }
281
282 override bool ValidateServer()
283 {
284 return true;
285 }
286
287 //-------------------------------------------------------------------------------------------------
290 bool use3DMap = false;
291};
292
293//--------------------------------------------------------------------------------------------------------------------------------------------------
294
296{
297 override void InitServer()
298 {
301 }
302
303 override bool ValidateServer()
304 {
305 return true;
306 }
307
308 //-------------------------------------------------------------------------------------------------
313 int hitDirectionStyle = HitIndicatorType.SPLASH;
315 float hitDirectionMaxDuration = HitDirectionConstants.DURATION_BASE;
316 float hitDirectionBreakPointRelative = HitDirectionConstants.BREAKPOINT_BASE;
317 float hitDirectionScatter = HitDirectionConstants.SCATTER;
319};
320
321//--------------------------------------------------------------------------------------------------------------------------------------------------
322
324{
325 override void InitServer()
326 {
327 }
328
329 override bool ValidateServer()
330 {
331 return true;
332 }
333
334 //-------------------------------------------------------------------------------------------------
336 bool ignoreMapOwnership = false;
339 bool displayNavInfo = true;
340}
341
342//--------------------------------------------------------------------------------------------------------------------------------------------------
343
344class ITEM_DrowningData : ITEM_DataBase
345{
346 override void InitServer()
347 {
348 }
349
350 override bool ValidateServer()
351 {
352 return true;
353 }
354
355 //-------------------------------------------------------------------------------------------------
362//--------------------------------------------------------------------------------------------------------------------------------------------------
363
365{
366 override void InitServer()
367 {
368 }
369
370 override bool ValidateServer()
371 {
372 return true;
373 }
374
375 //-------------------------------------------------------------------------------------------------
378};
ref array< float > environmentMaxTemps
Определения CfgGameplayDataJson.c:192
ref array< string > objectSpawnersArr
Определения CfgGameplayDataJson.c:190
ref array< float > wetnessWeightModifiers
Определения CfgGameplayDataJson.c:193
bool disableRespawnDialog
Определения CfgGameplayDataJson.c:59
ref array< float > environmentMinTemps
Определения CfgGameplayDataJson.c:191
float healthDepletionSpeed
Определения CfgGameplayDataJson.c:358
bool disableRespawnInUnconsciousness
Определения CfgGameplayDataJson.c:60
float staminaDepletionSpeed
!! all member variables must correspond with the cfggameplay.json file contents !!...
Определения CfgGameplayDataJson.c:357
int lightingConfig
!! all member variables must correspond with the cfggameplay.json file contents !!...
Определения CfgGameplayDataJson.c:188
bool disableBaseDamage
!! all member variables must correspond with the cfggameplay.json file contents !!...
Определения CfgGameplayDataJson.c:57
ref TStringArray playerRestrictedAreaFiles
Определения CfgGameplayDataJson.c:194
bool disableContainerDamage
Определения CfgGameplayDataJson.c:58
float shockDepletionSpeed
Определения CfgGameplayDataJson.c:359
proto native int ServerConfigGetInt(string name)
Server config parsing. Returns 0 if not found.
static void RegisterItem(ITEM_DataBase item)
Определения CfgGameplayHandler.c:9
ref ITEM_GeneralData GeneralData
!! all member variables must correspond with the cfggameplay.json file contents !!...
Определения CfgGameplayDataJson.c:15
ref ITEM_WorldData WorldsData
Определения CfgGameplayDataJson.c:17
ref ITEM_UIData UIData
Определения CfgGameplayDataJson.c:19
ref ITEM_PlayerData PlayerData
Определения CfgGameplayDataJson.c:16
int version
Определения CfgGameplayDataJson.c:4
void InitServer()
Obsolete, 'InitServer' on individual json items is now called centrally.
Определения CfgGameplayDataJson.c:7
ref ITEM_BaseBuildingData BaseBuildingData
Определения CfgGameplayDataJson.c:18
ref ITEM_VehicleData VehicleData
Определения CfgGameplayDataJson.c:21
ref ITEM_MapData MapData
Определения CfgGameplayDataJson.c:20
contents of this class will be transfered to client upon connecting, with the variables in either ini...
Определения CfgGameplayDataJson.c:3
Определения constants.c:659
override void InitServer()
Определения CfgGameplayDataJson.c:202
ref ITEM_HologramData HologramData
!! all member variables must correspond with the cfggameplay.json file contents !!...
Определения CfgGameplayDataJson.c:213
ref ITEM_ConstructionData ConstructionData
Определения CfgGameplayDataJson.c:214
override bool ValidateServer()
Определения CfgGameplayDataJson.c:206
bool disableDistanceCheck
Определения CfgGameplayDataJson.c:269
bool disablePerformRoofCheck
!! all member variables must correspond with the cfggameplay.json file contents !!...
Определения CfgGameplayDataJson.c:267
override void InitServer()
Определения CfgGameplayDataJson.c:256
bool disableIsCollidingCheck
Определения CfgGameplayDataJson.c:268
override bool ValidateServer()
Определения CfgGameplayDataJson.c:260
bool ValidateServer()
Определения CfgGameplayDataJson.c:34
void ITEM_DataBase()
Определения CfgGameplayDataJson.c:27
void InitServer()
override bool ValidateServer()
Определения CfgGameplayDataJson.c:303
float hitDirectionBreakPointRelative
Определения CfgGameplayDataJson.c:316
string hitDirectionIndicatorColorStr
Определения CfgGameplayDataJson.c:314
int hitDirectionBehaviour
Определения CfgGameplayDataJson.c:312
int hitDirectionStyle
Определения CfgGameplayDataJson.c:313
bool hitIndicationPostProcessEnabled
Определения CfgGameplayDataJson.c:318
float hitDirectionMaxDuration
Определения CfgGameplayDataJson.c:315
float hitDirectionScatter
Определения CfgGameplayDataJson.c:317
override void InitServer()
Определения CfgGameplayDataJson.c:297
bool hitDirectionOverrideEnabled
Определения CfgGameplayDataJson.c:311
bool disableIsBaseViableCheck
Определения CfgGameplayDataJson.c:240
bool disableIsCollidingBBoxCheck
!! all member variables must correspond with the cfggameplay.json file contents !!...
Определения CfgGameplayDataJson.c:237
override void InitServer()
Определения CfgGameplayDataJson.c:222
bool disableHeightPlacementCheck
Определения CfgGameplayDataJson.c:244
bool disableIsCollidingPlayerCheck
Определения CfgGameplayDataJson.c:238
ref TStringSet disallowedTypesInUnderground
Определения CfgGameplayDataJson.c:248
bool disableIsUnderwaterCheck
Определения CfgGameplayDataJson.c:245
bool disableIsCollidingAngleCheck
Определения CfgGameplayDataJson.c:242
bool disableColdAreaPlacementCheck
Определения CfgGameplayDataJson.c:247
override bool ValidateServer()
Определения CfgGameplayDataJson.c:230
bool disableIsClippingRoofCheck
Определения CfgGameplayDataJson.c:239
bool disableIsInTerrainCheck
Определения CfgGameplayDataJson.c:246
bool disableIsCollidingGPlotCheck
Определения CfgGameplayDataJson.c:241
bool disableIsPlacementPermittedCheck
Определения CfgGameplayDataJson.c:243
bool displayPlayerPosition
Определения CfgGameplayDataJson.c:338
bool ignoreNavItemsOwnership
Определения CfgGameplayDataJson.c:337
bool ignoreMapOwnership
!! all member variables must correspond with the cfggameplay.json file contents !!...
Определения CfgGameplayDataJson.c:336
override void InitServer()
Определения CfgGameplayDataJson.c:325
override bool ValidateServer()
Определения CfgGameplayDataJson.c:329
bool displayNavInfo
Определения CfgGameplayDataJson.c:339
override void InitServer()
Определения CfgGameplayDataJson.c:147
float timeToStrafeJog
!! all member variables must correspond with the cfggameplay.json file contents !!...
Определения CfgGameplayDataJson.c:158
float rotationSpeedSprint
Определения CfgGameplayDataJson.c:162
bool allowStaminaAffectInertia
Определения CfgGameplayDataJson.c:163
float rotationSpeedJog
Определения CfgGameplayDataJson.c:159
float timeToStrafeSprint
Определения CfgGameplayDataJson.c:161
override bool ValidateServer()
Определения CfgGameplayDataJson.c:151
float timeToSprint
Определения CfgGameplayDataJson.c:160
ref ITEM_MovementData MovementData
Определения CfgGameplayDataJson.c:70
ref ITEM_ShockHandlingData ShockHandlingData
Определения CfgGameplayDataJson.c:69
override bool ValidateServer()
Определения CfgGameplayDataJson.c:78
ref ITEM_DrowningData DrowningData
Определения CfgGameplayDataJson.c:71
bool disable2dMap
Определения CfgGameplayDataJson.c:86
ref ITEM_StaminaData StaminaData
Определения CfgGameplayDataJson.c:68
bool disablePersonalLight
!! all member variables must correspond with the cfggameplay.json file contents !!...
Определения CfgGameplayDataJson.c:85
override void InitServer()
Определения CfgGameplayDataJson.c:73
ref TStringArray spawnGearPresetFiles
Определения CfgGameplayDataJson.c:87
override void InitServer()
Определения CfgGameplayDataJson.c:95
float shockRefillSpeedConscious
!! all member variables must correspond with the cfggameplay.json file contents !!...
Определения CfgGameplayDataJson.c:106
bool allowRefillSpeedModifier
Определения CfgGameplayDataJson.c:108
override bool ValidateServer()
Определения CfgGameplayDataJson.c:99
float shockRefillSpeedUnconscious
Определения CfgGameplayDataJson.c:107
float staminaKgToStaminaPercentPenalty
Определения CfgGameplayDataJson.c:132
float holdBreathStaminaModifier
Определения CfgGameplayDataJson.c:140
float meleeStaminaModifier
Определения CfgGameplayDataJson.c:138
float sprintStaminaModifierErc
Определения CfgGameplayDataJson.c:134
float staminaMinCap
Определения CfgGameplayDataJson.c:133
float sprintLadderStaminaModifier
Определения CfgGameplayDataJson.c:137
float staminaWeightLimitThreshold
!! all member variables must correspond with the cfggameplay.json file contents !!...
Определения CfgGameplayDataJson.c:130
float sprintSwimmingStaminaModifier
Определения CfgGameplayDataJson.c:136
float obstacleTraversalStaminaModifier
Определения CfgGameplayDataJson.c:139
override bool ValidateServer()
Определения CfgGameplayDataJson.c:120
float sprintStaminaModifierCro
Определения CfgGameplayDataJson.c:135
float staminaMax
Определения CfgGameplayDataJson.c:131
override void InitServer()
Определения CfgGameplayDataJson.c:115
bool use3DMap
Определения CfgGameplayDataJson.c:290
override bool ValidateServer()
Определения CfgGameplayDataJson.c:282
ref ITEM_HitIndicationData HitIndicationData
!! all member variables must correspond with the cfggameplay.json file contents !!...
Определения CfgGameplayDataJson.c:289
override void InitServer()
Определения CfgGameplayDataJson.c:277
data for UI, in-game HUD, and similar
Определения CfgGameplayDataJson.c:276
float boatDecayMultiplier
!! all member variables must correspond with the cfggameplay.json file contents !!...
Определения CfgGameplayDataJson.c:377
override void InitServer()
Определения CfgGameplayDataJson.c:366
override bool ValidateServer()
Определения CfgGameplayDataJson.c:370
static const float SHOCK_REFILL_CONSCIOUS_SPEED
Определения PlayerConstants.c:157
static const float SHOCK_REFILl_UNCONSCIOUS_SPEED
Определения PlayerConstants.c:158
Определения PlayerConstants.c:2
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
HitDirectionModes
Определения constants.c:98
array< string > TStringArray
Определения EnScript.c:685
set< string > TStringSet
Определения EnScript.c:775
const float WEIGHT_DRY
Определения constants.c:902
const float WEIGHT_DAMP
Определения constants.c:901
const float WEIGHT_SOAKING_WET
Определения constants.c:899
const float WEIGHT_WET
Определения constants.c:900
const float WEIGHT_DRENCHED
Определения constants.c:898
const float STAMINA_MIN_CAP
Определения constants.c:694
const float STAMINA_MAX
Определения constants.c:710
const float STAMINA_WEIGHT_LIMIT_THRESHOLD
Определения constants.c:707
const float STAMINA_KG_TO_STAMINAPERCENT_PENALTY
Определения constants.c:693