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

◆ OnEngineStop()

override void Car::OnEngineStop ( )
inlineprotected

Gets called everytime the engine stops.

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

2051 {
2052 ItemBase battery = GetBattery();
2053 if (g_Game.IsServer() && battery)
2054 {
2055 UpdateBattery(battery);
2056 }
2057
2058 UpdateLights();
2059
2060 CarEngineSoundState stopSoundState = CarEngineSoundState.STOP_OK;
2061 if (GetFluidFraction(CarFluid.FUEL) <= 0)
2062 stopSoundState = CarEngineSoundState.STOP_NO_FUEL;
2063
2064 HandleEngineSound(stopSoundState);
2065
2066 SetEngineZoneReceivedHit(false);
2067 }
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Car.c:19
DayZGame g_Game
Определения DayZGame.c:3942
class GP5GasMask extends MaskBase ItemBase
ItemBase GetBattery()
Определения CarScript.c:3015
void UpdateBattery(ItemBase battery)
Определения CarScript.c:3029
void HandleEngineSound(CarEngineSoundState state)
Определения CarScript.c:1790
override void UpdateLights(int new_gear=-1)
Определения CarScript.c:2095

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