Gets called everytime the engine stops.
1920 {
1922 if (
GetGame().IsServer() && battery)
1923 {
1925 }
1926
1928
1929 CarEngineSoundState stopSoundState = CarEngineSoundState.STOP_OK;
1930 if (GetFluidFraction(
CarFluid.FUEL) <= 0)
1931 stopSoundState = CarEngineSoundState.STOP_NO_FUEL;
1932
1934
1935 SetEngineZoneReceivedHit(false);
1936 }
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)
void UpdateLights(int new_gear=-1)
proto native CGame GetGame()