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

◆ OnEngineStop()

override void Car::OnEngineStop ( )
inlineprotected

Gets called everytime the engine stops.

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

1823 {
1824 ItemBase battery = GetBattery();
1825 if (g_Game.IsServer() && battery)
1826 {
1827 UpdateBattery(battery);
1828 }
1829
1830 UpdateLights();
1831
1832 CarEngineSoundState stopSoundState = CarEngineSoundState.STOP_OK;
1833 if (GetFluidFraction(CarFluid.FUEL) <= 0)
1834 stopSoundState = CarEngineSoundState.STOP_NO_FUEL;
1835
1836 HandleEngineSound(stopSoundState);
1837
1838 SetEngineZoneReceivedHit(false);
1839 }
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Car.c:18
DayZGame g_Game
Определения DayZGame.c:4074
class GP5GasMask extends MaskBase ItemBase
proto native float GetFluidFraction(MotorbikeFluid fluid)
ItemBase GetBattery()
Определения CarScript.c:2437
void UpdateBattery(ItemBase battery)
Определения CarScript.c:2442
void HandleEngineSound(CarEngineSoundState state)
Определения CarScript.c:1560
override void UpdateLights(int new_gear=-1)
Определения CarScript.c:1853

Перекрестные ссылки g_Game, GetBattery(), GetFluidFraction(), HandleEngineSound(), UpdateBattery() и UpdateLights().