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

◆ ~ItemBase()

void ~ItemBase ( )
private

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

660 {
661 if (g_Game && g_Game.GetPlayer() && (!g_Game.IsDedicatedServer()))
662 {
663 PlayerBase player = PlayerBase.Cast(g_Game.GetPlayer());
664 int r_index = player.GetHumanInventory().FindUserReservedLocationIndex(this);
665
666 if (r_index >= 0)
667 {
669 player.GetHumanInventory().GetUserReservedLocation(r_index,r_il);
670
671 player.GetHumanInventory().ClearUserReservedLocationAtIndex(r_index);
672 int r_type = r_il.GetType();
673 if (r_type == InventoryLocationType.CARGO || r_type == InventoryLocationType.PROXYCARGO)
674 {
675 r_il.GetParent().GetOnReleaseLock().Invoke(this);
676 }
677 else if (r_type == InventoryLocationType.ATTACHMENT)
678 {
679 r_il.GetParent().GetOnAttachmentReleaseLock().Invoke(this, r_il.GetSlot());
680 }
681
682 }
683
684 player.GetHumanInventory().ClearUserReservedLocation(this);
685 }
686
687 if (m_LockingSound)
689 }
DayZGame g_Game
Определения DayZGame.c:4074
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
EffectSound m_LockingSound
Определения Land_Underground_Entrance.c:344
proto native EntityAI GetParent()
returns parent of current inventory location
proto native int GetSlot()
returns slot id if current type is Attachment
proto native int GetType()
returns type of InventoryLocation
InventoryLocation.
Определения InventoryLocation.c:30
Определения PlayerBaseClient.c:2
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
Определения EffectManager.c:280
Manager class for managing Effect (EffectParticle, EffectSound)
Определения EffectManager.c:6

Перекрестные ссылки SEffectManager::DestroyEffect(), g_Game, InventoryLocation::GetParent(), InventoryLocation::GetSlot(), InventoryLocation::GetType() и m_LockingSound.