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

◆ EEItemDetached()

override void EEItemDetached ( EntityAI item,
string slot_name )
protected

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

562 {
563 super.EEItemDetached(item, slot_name);
564
565 switch (slot_name)
566 {
567 case "CarBattery":
568 case "TruckBattery":
569 m_BatteryHealth = -1;
570 if (g_Game.IsServer())
571 {
572 if (EngineIsOn())
573 EngineStop();
574 }
575
576 if (g_Game.IsServer())
577 {
578 LightOff();
579
580 UpdateBattery(ItemBase.Cast(item));
581 }
582
583 break;
584
585 case "SparkPlug":
586 case "GlowPlug":
587 m_PlugHealth = -1;
588 if (g_Game.IsServer() && EngineIsOn())
589 EngineStop();
590
591 break;
592 }
593
594 if (g_Game.IsServer())
595 {
596 HandleHeatComfortOverrides(slot_name, item, true);
597 Synchronize();
598 }
599
601 UpdateLights();
602 }
void Synchronize()
Определения CombinationLock.c:205
DayZGame g_Game
Определения DayZGame.c:4074
proto native void EngineStop()
Stops the engine.
proto native bool EngineIsOn()
Returns true when engine is running, false otherwise.
override void UpdateLights(int new_gear=-1)
Определения MotorbikeScript.c:1080
float m_BatteryHealth
Определения MotorbikeScript.c:66
void HandleHeatComfortOverrides(string slotName, notnull EntityAI item, bool detach=false)
float m_PlugHealth
Определения MotorbikeScript.c:67
void UpdateHeadlightState()
Определения MotorbikeScript.c:1049

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