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

◆ UpdateAttachmentPhysics()

void ItemBase::UpdateAttachmentPhysics ( string slot_name,
bool is_locked )
inlineprotected

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

783 {
784 //checks for invalid appends; hotfix
785 if ( !m_Mountables || m_Mountables.Find(slot_name) == -1 )
786 return;
787 //----------------------------------
788 string slot_name_mounted = slot_name + "_Mounted";
789 EntityAI attachment = FindAttachmentBySlotName( slot_name );
790
791 //remove proxy physics
792 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " Removing ATT SLOT=" + slot_name + " RM / RM");
793 RemoveProxyPhysics( slot_name_mounted );
794 RemoveProxyPhysics( slot_name );
795
796 if ( attachment )
797 {
798 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " Adding ATT=" + Object.GetDebugName(attachment));
799 if ( is_locked )
800 {
801 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " RM / RM");
802 AddProxyPhysics( slot_name_mounted );
803 }
804 else
805 {
806 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " ADD");
807 AddProxyPhysics( slot_name );
808 }
809 }
810 }
class LogManager EntityAI
class BaseBuildingBase extends ItemBase bsbDebugPrint(string s)
Определения BaseBuildingBase.c:1291
ref array< string > m_Mountables
Определения BaseBuildingBase.c:35
override string GetDebugName()
Определения dayzplayer.c:1191
class LOD Object

Перекрестные ссылки bsbDebugPrint(), GetDebugName(), LogManager::IsBaseBuildingLogEnable() и m_Mountables.