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

◆ ItemBase()

void InventoryItem::ItemBase ( )
inlineprivate

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

149 {
150 SetEventMask(EntityEvent.INIT); // Enable EOnInit event
154
155 if (!g_Game.IsDedicatedServer())
156 {
157 if (HasMuzzle())
158 {
160
162 {
164 }
165 }
166
168 m_ActionsInitialize = false;
169 }
170
171 m_OldLocation = null;
172
173 if (g_Game.IsServer())
174 {
175 m_AdminLog = PluginAdminLog.Cast(GetPlugin(PluginAdminLog));
176 }
177
178 if (ConfigIsExisting("headSelectionsToHide"))
179 {
181 ConfigGetTextArray("headSelectionsToHide",m_HeadHidingSelections);
182 }
183
185 if (ConfigIsExisting("hideSelectionsByinventorySlot"))
186 {
187 m_HideSelectionsBySlot = ConfigGetBool("hideSelectionsByinventorySlot");
188 }
189
190 m_QuickBarBonus = Math.Max(0, ConfigGetInt("quickBarBonus"));
191
192 m_IsResultOfSplit = false;
193
195 }
DayZGame g_Game
Определения DayZGame.c:3942
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:325
bool HasMuzzle()
Returns true if this item has a muzzle (weapons, suppressors)
Определения ItemBase.c:710
bool m_ActionsInitialize
Определения ItemBase.c:26
ref TIntArray m_SingleUseActions
Определения ItemBase.c:93
int m_ShotsToStartOverheating
Определения ItemBase.c:116
int GetMuzzleID()
Returns global muzzle ID. If not found, then it gets automatically registered.
Определения ItemBase.c:719
bool m_HideSelectionsBySlot
Определения ItemBase.c:122
int m_QuickBarBonus
Определения ItemBase.c:66
void LoadParticleConfigOnOverheating(int id)
Определения ItemBase.c:473
PluginAdminLog m_AdminLog
Определения ItemBase.c:125
ref TIntArray m_ContinuousActions
Определения ItemBase.c:94
void PreLoadSoundAttachmentType()
Attachment Sound Type getting from config file.
Определения ItemBase.c:4412
ref TIntArray m_InteractActions
Определения ItemBase.c:95
void LoadParticleConfigOnFire(int id)
Определения ItemBase.c:404
ref TStringArray m_HeadHidingSelections
Определения ItemBase.c:121
void SetActionAnimOverrides()
array< string > TStringArray
Определения EnScript.c:712
array< int > TIntArray
Определения EnScript.c:714
EntityEvent
Entity events for event-mask, or throwing event from code.
Определения EnEntity.c:45

Перекрестные ссылки g_Game, GetMuzzleID(), GetPlugin(), HasMuzzle(), LoadParticleConfigOnFire(), LoadParticleConfigOnOverheating(), m_ActionsInitialize, m_AdminLog, m_ContinuousActions, m_HeadHidingSelections, m_HideSelectionsBySlot, m_InteractActions, m_QuickBarBonus, m_ShotsToStartOverheating, m_SingleUseActions, Math::Max(), PreLoadSoundAttachmentType() и ItemBase::SetActionAnimOverrides().

Используется в AddDebugActionsMask(), AddLightSourceItem(), CanRepair(), CheckOverheating(), ClearInventory(), CombineItems(), CombineItemsClient(), CombineItemsEx(), ComputeQuantityUsed(), ComputeQuantityUsedEx(), DamageItemAttachments(), DamageItemInCargo(), EEItemLocationChanged(), GetDebugActionsMask(), GetLightSourceItem(), GetNumberOfItems(), GetProtectionLevel(), GetRecipesActions(), HasDebugActionsMask(), HierarchyCheck(), IncreaseOverheating(), IsCombineAll(), OnAction(), OnActivatedByItem(), OnAttachmentQuantityChanged(), OnAttachmentQuantityChangedEx(), OnCombine(), OnItemLocationChanged(), OnQuantityChanged(), OnRightClick(), PairWithDevice(), PlayBulletCasingEjectParticles(), PlayFireParticles(), PlayOverheatingParticles(), ProcessItemTemperature(), ProcessItemWetness(), ProcessItemWetnessAndTemperature(), ProcessVariables(), RemoveDebugActionsMask(), Repair(), SetDebugActionsMask(), SpawnItemOnLocation(), SplitIntoStackMax(), SplitIntoStackMaxCargo(), SplitIntoStackMaxCargoClient(), SplitIntoStackMaxClient(), SplitIntoStackMaxEx(), SplitIntoStackMaxHands(), SplitIntoStackMaxHandsClient(), SplitIntoStackMaxToInventoryLocationClient(), SplitIntoStackMaxToInventoryLocationEx(), SplitItem(), SplitItemToInventoryLocation(), StartOverheating(), StopOverheating(), StopOverheatingParticles(), UpdateOverheating() и UpdateOverheatingParticles().