DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ ItemBaseType()

void ItemBaseType::ItemBaseType ( )
inlineprivate

См. определение в файле ItemBaseType.c строка 55

56 {
57 m_CanBeSplit = false;
58 if (ConfigIsExisting("canBeSplit"))
59 m_CanBeSplit = ConfigGetBool("canBeSplit");
60
61 m_Count = ConfigGetInt("count");
62
63 m_VarQuantityInit = ConfigGetInt("varQuantityInit");
64 m_VarQuantityMin = ConfigGetInt("varQuantityMin");
65 m_VarQuantityMax = ConfigGetInt("varQuantityMax");
66
67 m_VarStackMax = ConfigGetFloat("varStackMax");
68
69 m_VarWetInit = ConfigGetFloat("varWetInit");
70 m_VarWetMin = ConfigGetFloat("varWetMin");
71 m_VarWetMax = ConfigGetFloat("varWetMax");
72
73 m_CanShowQuantity = ConfigGetBool("quantityShow");
74 m_HasQuantityBar = ConfigGetBool("quantityBar");
75
76 m_CleannessInit = ConfigGetInt("varCleannessInit");
77 m_CleannessMin = ConfigGetInt("varCleannessMin");
78 m_CleannessMax = ConfigGetInt("varCleannessMax");
79
80 m_LiquidContainerMask = ConfigGetInt("liquidContainerType");
81
82 m_VarLiquidTypeInit = ConfigGetInt("varLiquidTypeInit");
83
84 m_HeatIsolation = ConfigGetFloat("heatIsolation");
85
86 m_ItemModelLength = 0.0;
87 if (ConfigIsExisting("itemModelLength"))
88 m_ItemModelLength = ConfigGetFloat("itemModelLength");
89
91 if (ConfigIsExisting("itemAttachOffset"))
92 m_ItemAttachOffset = ConfigGetFloat("itemAttachOffset");
93
94 m_CanBeDigged = ConfigGetBool("canBeDigged");
95
96 m_LockType = ConfigGetInt("lockType");
97 m_LockSoundSet = ConfigGetString("lockSoundSet");
98 m_CompatibleLocks = new array<int>();
99 ConfigGetIntArray("compatibleLocks", m_CompatibleLocks);
100
101 m_ItemBehaviour = -1;
102 if (ConfigIsExisting("itemBehaviour"))
103 m_ItemBehaviour = ConfigGetInt("itemBehaviour");
104
105 if (ConfigIsExisting("headSelectionsToHide"))
106 {
108 ConfigGetTextArray("headSelectionsToHide", m_HeadHidingSelections);
109 }
110
112 if (ConfigIsExisting("hideSelectionsByinventorySlot"))
113 m_HideSelectionsBySlot = ConfigGetBool("hideSelectionsByinventorySlot");
114
115 m_QuickBarBonus = Math.Max(0, ConfigGetInt("quickBarBonus"));
116
118 if (ConfigIsExisting("temperaturePerQuantityWeight"))
119 m_TemperaturePerQuantityWeight = ConfigGetFloat("temperaturePerQuantityWeight");
120
121 {
122 string paramPath;
124 paramPath = string.Format("CfgVehicles %1 EnvironmentWetnessIncrements Soaking %2", GetName(), "parentWithLiquid");
125 m_SoakingIncrements.Set(EEnvironmentSoakingCategories.PARENT_LIQUID, g_Game.ConfigGetFloat(paramPath));
126 paramPath = string.Format("CfgVehicles %1 EnvironmentWetnessIncrements Soaking %2", GetName(), "wetParent");
127 m_SoakingIncrements.Set(EEnvironmentSoakingCategories.PARENT_WET, g_Game.ConfigGetFloat(paramPath));
128
130 paramPath = string.Format("CfgVehicles %1 EnvironmentWetnessIncrements Drying %2", GetName(), "player");
131 m_DryingIncrements.Set(EEnvironmentDryingCategories.PLAYER, g_Game.ConfigGetFloat(paramPath));
132 paramPath = string.Format("CfgVehicles %1 EnvironmentWetnessIncrements Drying %2", GetName(), "ground");
133 m_DryingIncrements.Set(EEnvironmentDryingCategories.GROUND, g_Game.ConfigGetFloat(paramPath));
134 paramPath = string.Format("CfgVehicles %1 EnvironmentWetnessIncrements Drying %2", GetName(), "playerHeatSource");
135 m_DryingIncrements.Set(EEnvironmentDryingCategories.PLAYER_HEATSOURCE, g_Game.ConfigGetFloat(paramPath));
136 paramPath = string.Format("CfgVehicles %1 EnvironmentWetnessIncrements Drying %2", GetName(), "groundHeatSource");
137 m_DryingIncrements.Set(EEnvironmentDryingCategories.GROUND_HEATSOURCE, g_Game.ConfigGetFloat(paramPath));
138 }
139 }
DayZGame g_Game
Определения DayZGame.c:4074
int m_LiquidContainerMask
Определения ItemBaseType.c:23
ref TStringArray m_HeadHidingSelections
Определения ItemBaseType.c:53
int m_VarQuantityMax
Определения ItemBaseType.c:16
float m_HeatIsolation
Определения ItemBaseType.c:42
bool m_CanBeSplit
Определения ItemBaseType.c:10
int m_CleannessInit
Cleanness config.
Определения ItemBaseType.c:19
int m_VarQuantityMin
Определения ItemBaseType.c:15
int m_LockType
Attachment locking.
Определения ItemBaseType.c:30
float m_VarWetInit
Wetness config.
Определения ItemBaseType.c:38
int m_QuickBarBonus
Определения ItemBaseType.c:27
float m_VarStackMax
Определения ItemBaseType.c:35
float m_VarWetMax
Определения ItemBaseType.c:40
int m_CleannessMax
Определения ItemBaseType.c:21
string m_LockSoundSet
Определения ItemBaseType.c:49
ref TIntFloatMap m_DryingIncrements
Определения ItemBaseType.c:52
ref TIntArray m_CompatibleLocks
Определения ItemBaseType.c:31
bool m_HideSelectionsBySlot
Определения ItemBaseType.c:9
float m_VarWetMin
Определения ItemBaseType.c:39
bool m_CanShowQuantity
Определения ItemBaseType.c:6
int m_Count
Quantity config.
Определения ItemBaseType.c:13
int m_VarQuantityInit
Определения ItemBaseType.c:14
int m_ItemBehaviour
Определения ItemBaseType.c:33
float m_TemperaturePerQuantityWeight
Определения ItemBaseType.c:47
bool m_HasQuantityBar
Определения ItemBaseType.c:7
int m_VarLiquidTypeInit
Определения ItemBaseType.c:25
bool m_CanBeDigged
Определения ItemBaseType.c:8
float m_ItemModelLength float m_ItemAttachOffset
Определения ItemBaseType.c:45
int m_CleannessMin
Определения ItemBaseType.c:20
ref TIntFloatMap m_SoakingIncrements
Определения ItemBaseType.c:51
map< int, float > TIntFloatMap
Определения EnScript.c:993
class array< Class T > TStringArray
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.
proto native owned string GetName()
Test name getter. Strictly for UI porposes!
Определения SyncedValue.c:119

Перекрестные ссылки string::Format(), g_Game, GetName(), m_CanBeDigged, m_CanBeSplit, m_CanShowQuantity, m_CleannessInit, m_CleannessMax, m_CleannessMin, m_CompatibleLocks, m_Count, m_DryingIncrements, m_HasQuantityBar, m_HeadHidingSelections, m_HeatIsolation, m_HideSelectionsBySlot, m_ItemAttachOffset, m_ItemBehaviour, m_LiquidContainerMask, m_LockSoundSet, m_LockType, m_QuickBarBonus, m_SoakingIncrements, m_TemperaturePerQuantityWeight, m_VarLiquidTypeInit, m_VarQuantityInit, m_VarQuantityMax, m_VarQuantityMin, m_VarStackMax, m_VarWetInit, m_VarWetMax, m_VarWetMin, Math::Max() и TStringArray.