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

◆ EEItemAttached()

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

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

687 {
688 super.EEItemAttached(item, slot_name);
689
690 switch (slot_name)
691 {
692 case "Reflector_1_1":
693 if (GetGame().IsServer())
694 {
695 SetHealth("Reflector_1_1", "Health", item.GetHealth());
696 }
697 break;
698 case "Reflector_2_1":
699 if (GetGame().IsServer())
700 {
701 SetHealth("Reflector_2_1", "Health", item.GetHealth());
702 }
703 break;
704 case "CarBattery":
705 case "TruckBattery":
706 if (GetGame().IsServer())
707 {
708 m_BatteryHealth = item.GetHealth01();
709 }
710 break;
711 case "SparkPlug":
712 case "GlowPlug":
713 if (GetGame().IsServer())
714 {
715 m_PlugHealth = item.GetHealth01();
716 }
717 break;
718 case "CarRadiator":
719 if (GetGame().IsServer())
720 {
721 m_RadiatorHealth = item.GetHealth01();
722 }
723
724 m_Radiator = item;
725 break;
726 }
727
728 if (GetGame().IsServer())
729 {
730 Synchronize();
731 }
732
734 UpdateLights();
735 }
void Synchronize()
Определения CombinationLock.c:151
void UpdateHeadlightState()
Определения CarScript.c:738
float m_PlugHealth
Определения CarScript.c:201
float m_RadiatorHealth
Определения CarScript.c:198
float m_BatteryHealth
Определения CarScript.c:200
void UpdateLights(int new_gear=-1)
Определения CarScript.c:1953
EntityAI m_Radiator
Определения CarScript.c:203
proto native CGame GetGame()

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