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

◆ ItemBase()

void InventoryItem::ItemBase ( )
inlineprivate

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

141 {
142 SetEventMask(EntityEvent.INIT); // Enable EOnInit event
146
147 if (!GetGame().IsDedicatedServer())
148 {
149 if (HasMuzzle())
150 {
152
154 {
156 }
157 }
158
160 m_ActionsInitialize = false;
161 }
162
163 m_OldLocation = null;
164
165 if (GetGame().IsServer())
166 {
167 m_AdminLog = PluginAdminLog.Cast(GetPlugin(PluginAdminLog));
168 }
169
170 if (ConfigIsExisting("headSelectionsToHide"))
171 {
173 ConfigGetTextArray("headSelectionsToHide",m_HeadHidingSelections);
174 }
175
177 if (ConfigIsExisting("hideSelectionsByinventorySlot"))
178 {
179 m_HideSelectionsBySlot = ConfigGetBool("hideSelectionsByinventorySlot");
180 }
181
182 m_QuickBarBonus = Math.Max(0, ConfigGetInt("quickBarBonus"));
183
184 m_IsResultOfSplit = false;
185
187 }
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:316
bool HasMuzzle()
Returns true if this item has a muzzle (weapons, suppressors)
Определения ItemBase.c:700
bool m_ActionsInitialize
Определения ItemBase.c:20
ref TIntArray m_SingleUseActions
Определения ItemBase.c:87
int m_ShotsToStartOverheating
Определения ItemBase.c:110
int GetMuzzleID()
Returns global muzzle ID. If not found, then it gets automatically registered.
Определения ItemBase.c:709
bool m_HideSelectionsBySlot
Определения ItemBase.c:116
int m_QuickBarBonus
Определения ItemBase.c:60
void LoadParticleConfigOnOverheating(int id)
Определения ItemBase.c:463
PluginAdminLog m_AdminLog
Определения ItemBase.c:119
ref TIntArray m_ContinuousActions
Определения ItemBase.c:88
void PreLoadSoundAttachmentType()
Attachment Sound Type getting from config file.
Определения ItemBase.c:4292
ref TIntArray m_InteractActions
Определения ItemBase.c:89
void LoadParticleConfigOnFire(int id)
Определения ItemBase.c:394
ref TStringArray m_HeadHidingSelections
Определения ItemBase.c:115
void SetActionAnimOverrides()
proto native CGame GetGame()
array< string > TStringArray
Определения EnScript.c:685
array< int > TIntArray
Определения EnScript.c:687
EntityEvent
Entity events for event-mask, or throwing event from code.
Определения EnEntity.c:45

Перекрестные ссылки GetGame(), 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().