Gets called everytime the engine stops.
2051 {
2053 if (
g_Game.IsServer() && battery)
2054 {
2056 }
2057
2059
2060 CarEngineSoundState stopSoundState = CarEngineSoundState.STOP_OK;
2061 if (GetFluidFraction(
CarFluid.FUEL) <= 0)
2062 stopSoundState = CarEngineSoundState.STOP_NO_FUEL;
2063
2065
2066 SetEngineZoneReceivedHit(false);
2067 }
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
class GP5GasMask extends MaskBase ItemBase
void UpdateBattery(ItemBase battery)
void HandleEngineSound(CarEngineSoundState state)
override void UpdateLights(int new_gear=-1)