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

◆ UpdateAttachmentPhysics()

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

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

856 {
857 //checks for invalid appends; hotfix
858 if ( !m_Mountables || m_Mountables.Find(slot_name) == -1 )
859 return;
860 //----------------------------------
861 string slot_name_mounted = slot_name + "_Mounted";
862 EntityAI attachment = FindAttachmentBySlotName( slot_name );
863
864 //remove proxy physics
865 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " Removing ATT SLOT=" + slot_name + " RM / RM");
866 RemoveProxyPhysics( slot_name_mounted );
867 RemoveProxyPhysics( slot_name );
868
869 if ( attachment )
870 {
871 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " Adding ATT=" + Object.GetDebugName(attachment));
872 if ( is_locked )
873 {
874 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " RM / RM");
875 AddProxyPhysics( slot_name_mounted );
876 }
877 else
878 {
879 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " ADD");
880 AddProxyPhysics( slot_name );
881 }
882 }
883 }
class LogManager EntityAI
class BaseBuildingBase extends ItemBase bsbDebugPrint(string s)
Определения BaseBuildingBase.c:1292
ref array< string > m_Mountables
Определения BaseBuildingBase.c:36
override string GetDebugName()
Определения dayzplayer.c:1170
class LOD Object

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