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

◆ EEItemAttached()

override void Car::EEItemAttached ( EntityAI item,
string slot_name )
inlineprotected

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

741 {
742 super.EEItemAttached(item, slot_name);
743
744 switch (slot_name)
745 {
746 case "Reflector_1_1":
747 if (g_Game.IsServer())
748 {
749 SetHealth("Reflector_1_1", "Health", item.GetHealth());
750 }
751 break;
752 case "Reflector_2_1":
753 if (g_Game.IsServer())
754 {
755 SetHealth("Reflector_2_1", "Health", item.GetHealth());
756 }
757 break;
758 case "CarBattery":
759 case "TruckBattery":
760 if (g_Game.IsServer())
761 {
762 m_BatteryHealth = item.GetHealth01();
763 }
764 break;
765 case "SparkPlug":
766 case "GlowPlug":
767 if (g_Game.IsServer())
768 {
769 m_PlugHealth = item.GetHealth01();
770 }
771 break;
772 case "CarRadiator":
773 if (g_Game.IsServer())
774 {
775 m_RadiatorHealth = item.GetHealth01();
776 }
777
778 m_Radiator = item;
779 break;
780 }
781
782 if (g_Game.IsServer())
783 {
784 Synchronize();
785 }
786
788 UpdateLights();
789 }
void Synchronize()
Определения CombinationLock.c:151
DayZGame g_Game
Определения DayZGame.c:3942
void UpdateHeadlightState()
Определения CarScript.c:792
float m_PlugHealth
Определения CarScript.c:210
float m_RadiatorHealth
Определения CarScript.c:207
float m_BatteryHealth
Определения CarScript.c:209
override void UpdateLights(int new_gear=-1)
Определения CarScript.c:2095
EntityAI m_Radiator
Определения CarScript.c:212

Перекрестные ссылки g_Game, m_BatteryHealth, m_PlugHealth, m_Radiator, m_RadiatorHealth, Synchronize(), UpdateHeadlightState() и UpdateLights().