DayZ 1.24
Loading...
Searching...
No Matches
CfgGameplayDataJson.c File Reference

Go to the source code of this file.

Classes

class  CfgGameplayJson
 contents of this class will be transfered to client upon connecting, with the variables in either initial state as set through the 'InitServer..()' call, or replaced with contents of the json configuration file if such file is both present and reading is enabled in server.cfg More...
 
class  ITEM_DataBase
 
class  ITEM_PlayerData
 
class  ITEM_ShockHandlingData
 
class  ITEM_StaminaData
 
class  ITEM_MovementData
 
class  ITEM_BaseBuildingData
 
class  ITEM_HologramData
 
class  ITEM_ConstructionData
 
class  ITEM_UIData
 data for UI, in-game HUD, and similar More...
 
class  ITEM_HitIndicationData
 
class  ITEM_MapData
 

Functions

void ITEM_DataBase ()
 
bool ValidateServer ()
 

Variables

bool disableBaseDamage
 !! all member variables must correspond with the cfggameplay.json file contents !!!!
 
bool disableContainerDamage
 
bool disableRespawnDialog
 
bool disableRespawnInUnconsciousness
 
ITEM_PlayerData InitServer
 
float timeToStrafeJog = 0.1
 !! all member variables must correspond with the cfggameplay.json file contents !!!!
 
float rotationSpeedJog = 0.15
 
float timeToSprint = 0.45
 
float timeToStrafeSprint = 0.3
 
float rotationSpeedSprint = 0.15
 
bool allowStaminaAffectInertia = 1
 
int lightingConfig
 !! all member variables must correspond with the cfggameplay.json file contents !!!!
 
ref array< stringobjectSpawnersArr
 
ref array< floatenvironmentMinTemps
 
ref array< floatenvironmentMaxTemps
 
ref array< floatwetnessWeightModifiers = {GameConstants.WEIGHT_DRY, GameConstants.WEIGHT_DAMP, GameConstants.WEIGHT_WET, GameConstants.WEIGHT_SOAKING_WET, GameConstants.WEIGHT_DRENCHED}
 
bool ignoreMapOwnership = false
 !! all member variables must correspond with the cfggameplay.json file contents !!!!
 
bool ignoreNavItemsOwnership = false
 
bool displayPlayerPosition = false
 
bool displayNavInfo = true
 
float staminaDepletionSpeed = 10
 !! all member variables must correspond with the cfggameplay.json file contents !!!!
 
float healthDepletionSpeed = 10
 
float shockDepletionSpeed = 10
 

Function Documentation

◆ ITEM_DataBase()

void InitServer::ITEM_DataBase ( )

Definition at line 44 of file CfgGameplayDataJson.c.

44 {
45 disableBaseDamage = GetGame().ServerConfigGetInt("disableBaseDamage");
46 disableContainerDamage = GetGame().ServerConfigGetInt("disableContainerDamage");
47 disableRespawnDialog = GetGame().ServerConfigGetInt("disableRespawnDialog");
48 }
49
bool disableRespawnDialog
bool disableBaseDamage
!! all member variables must correspond with the cfggameplay.json file contents !!...
bool disableContainerDamage
proto native CGame GetGame()

References disableBaseDamage, disableContainerDamage, disableRespawnDialog, and GetGame().

◆ ValidateServer()

override bool ValidateServer ( )

Definition at line 51 of file CfgGameplayDataJson.c.

51 {
52 return true;
53 }
54 //-------------------------------------------------------------------------------------------------

Variable Documentation

◆ allowStaminaAffectInertia

bool allowStaminaAffectInertia = 1

Definition at line 182 of file CfgGameplayDataJson.c.

◆ disableBaseDamage

bool disableBaseDamage

!! all member variables must correspond with the cfggameplay.json file contents !!!!

Definition at line 56 of file CfgGameplayDataJson.c.

Referenced by ITEM_DataBase().

◆ disableContainerDamage

bool disableContainerDamage

Definition at line 57 of file CfgGameplayDataJson.c.

Referenced by ITEM_DataBase().

◆ disableRespawnDialog

bool disableRespawnDialog

Definition at line 58 of file CfgGameplayDataJson.c.

Referenced by ITEM_DataBase().

◆ disableRespawnInUnconsciousness

bool disableRespawnInUnconsciousness

Definition at line 59 of file CfgGameplayDataJson.c.

◆ displayNavInfo

bool displayNavInfo = true

Definition at line 352 of file CfgGameplayDataJson.c.

◆ displayPlayerPosition

bool displayPlayerPosition = false

Definition at line 351 of file CfgGameplayDataJson.c.

◆ environmentMaxTemps

ref array<float> environmentMaxTemps

Definition at line 185 of file CfgGameplayDataJson.c.

◆ environmentMinTemps

ref array<float> environmentMinTemps

Definition at line 184 of file CfgGameplayDataJson.c.

◆ healthDepletionSpeed

float healthDepletionSpeed = 10

Definition at line 349 of file CfgGameplayDataJson.c.

◆ ignoreMapOwnership

bool ignoreMapOwnership = false

!! all member variables must correspond with the cfggameplay.json file contents !!!!

Definition at line 349 of file CfgGameplayDataJson.c.

◆ ignoreNavItemsOwnership

bool ignoreNavItemsOwnership = false

Definition at line 350 of file CfgGameplayDataJson.c.

◆ InitServer

override void InitServer

Definition at line 1 of file CfgGameplayDataJson.c.

44 {
45 disableBaseDamage = GetGame().ServerConfigGetInt("disableBaseDamage");
46 disableContainerDamage = GetGame().ServerConfigGetInt("disableContainerDamage");
47 disableRespawnDialog = GetGame().ServerConfigGetInt("disableRespawnDialog");
48 }

◆ lightingConfig

int lightingConfig

!! all member variables must correspond with the cfggameplay.json file contents !!!!

Definition at line 181 of file CfgGameplayDataJson.c.

◆ objectSpawnersArr

ref array<string> objectSpawnersArr

Definition at line 183 of file CfgGameplayDataJson.c.

◆ rotationSpeedJog

float rotationSpeedJog = 0.15

Definition at line 178 of file CfgGameplayDataJson.c.

◆ rotationSpeedSprint

float rotationSpeedSprint = 0.15

Definition at line 181 of file CfgGameplayDataJson.c.

◆ shockDepletionSpeed

float shockDepletionSpeed = 10

Definition at line 350 of file CfgGameplayDataJson.c.

◆ staminaDepletionSpeed

float staminaDepletionSpeed = 10

!! all member variables must correspond with the cfggameplay.json file contents !!!!

Definition at line 348 of file CfgGameplayDataJson.c.

◆ timeToSprint

float timeToSprint = 0.45

Definition at line 179 of file CfgGameplayDataJson.c.

◆ timeToStrafeJog

float timeToStrafeJog = 0.1

!! all member variables must correspond with the cfggameplay.json file contents !!!!

Definition at line 177 of file CfgGameplayDataJson.c.

◆ timeToStrafeSprint

float timeToStrafeSprint = 0.3

Definition at line 180 of file CfgGameplayDataJson.c.

◆ wetnessWeightModifiers