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

◆ OnEngineStop()

override void OnEngineStop ( )
protected

Gets called everytime the engine stops.

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

1028 {
1030 {
1032 if (g_Game.IsServer() && battery)
1033 UpdateBattery(battery);
1034 }
1035
1037 UpdateLights();
1038
1040 if (GetFluidFraction(MotorbikeFluid.FUEL) <= 0)
1041 stopSoundState = MotorbikeEngineSoundState.STOP_NO_FUEL;
1042
1043 HandleEngineSound(stopSoundState);
1044
1045 SetEngineZoneReceivedHit(false);
1046 }
DayZGame g_Game
Определения DayZGame.c:4074
MotorbikeFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Motorbike.c:14
proto native float GetFluidFraction(MotorbikeFluid fluid)
override void UpdateLights(int new_gear=-1)
Определения MotorbikeScript.c:1080
void HandleEngineSound(MotorbikeEngineSoundState state)
Определения MotorbikeScript.c:1461
MotorbikeEngineSoundState
Определения MotorbikeScript.c:43
void UpdateHeadlightState()
Определения MotorbikeScript.c:1049
override EntityAI GetElectricitySourceDevice()
override bool NeedElectricitySourceDevice()

Перекрестные ссылки g_Game, GetElectricitySourceDevice(), GetFluidFraction(), HandleEngineSound(), NeedElectricitySourceDevice(), UpdateHeadlightState() и UpdateLights().