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

◆ HandleDropAttachment()

void BaseBuildingBase::HandleDropAttachment ( ItemBase item)
inlineprotected

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

817 {
818 BarbedWire wire;
819 CombinationLock lock;
820 DigitalCodeLock codeLock;
821 if (Class.CastTo(wire,item)) //special barbed wire beh.
822 {
823 wire.SetMountedState( false );
824 GetInventory().DropEntity(InventoryMode.SERVER, this, wire);
825 }
826 else if (Class.CastTo(lock,item))
827 {
828 lock.UnlockOnServer(null,this);
829 }
830 else if (Class.CastTo(codeLock,item))
831 {
832 codeLock.UnlockOnServer(this);
833 }
834 else if (item)//generic behaviour
835 {
836 GetInventory().DropEntity(InventoryMode.SERVER, this, item);
837 }
838 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
void DigitalCodeLock()
Определения CodeLock.c:590
void CombinationLock()
Определения CombinationLock.c:55
void UnlockOnServer(EntityAI parent)
Unlock AND drop.
Определения CodeLock.c:277

Перекрестные ссылки Class::CastTo() и DigitalCodeLock::UnlockOnServer().

Используется в GateAttachmentsSanityCheck() и OnPartDestroyedServer().