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

◆ UpdateAttachmentPhysics()

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

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

876 {
877 //checks for invalid appends; hotfix
878 if ( !m_Mountables || m_Mountables.Find(slot_name) == -1 )
879 return;
880 //----------------------------------
881 string slot_name_mounted = slot_name + "_Mounted";
882 EntityAI attachment = FindAttachmentBySlotName( slot_name );
883
884 //remove proxy physics
885 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " Removing ATT SLOT=" + slot_name + " RM / RM");
886 RemoveProxyPhysics( slot_name_mounted );
887 RemoveProxyPhysics( slot_name );
888
889 if ( attachment )
890 {
891 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " Adding ATT=" + Object.GetDebugName(attachment));
892 if ( is_locked )
893 {
894 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " RM / RM");
895 AddProxyPhysics( slot_name_mounted );
896 }
897 else
898 {
899 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] " + GetDebugName(this) + " ADD");
900 AddProxyPhysics( slot_name );
901 }
902 }
903 }
class LogManager EntityAI
class BaseBuildingBase extends ItemBase bsbDebugPrint(string s)
Определения BaseBuildingBase.c:1312
ref array< string > m_Mountables
Определения BaseBuildingBase.c:36
override string GetDebugName()
Определения dayzplayer.c:1170
class LOD Object

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