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

◆ OnEngineStop()

override void BoatScript::OnEngineStop ( )
inlineprotected

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

323 {
324 super.OnEngineStop();
325
326 if (g_Game.IsHeadlessOrDedicatedServer())
327 return;
328
329 FadeEngineSound(false);
330 HandleEngineSound(EBoatEngineSoundState.STOP_OK);
331
332 vector mat[4];
333 dBodyGetWorldTransform(this, mat);
334 vector pos = mat[3] + VectorToParent(PropellerGetPosition());
335
336 if (g_Game.GetWaterDepth(pos) < 0) // stop instantly
338 else
339 g_Game.GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(StopParticleUpdate, 3000);
340 }
DayZGame g_Game
Определения DayZGame.c:4074
void HandleEngineSound(EBoatEngineSoundState state)
Определения BoatScript.c:606
void FadeEngineSound(bool fadeIn)
Определения BoatScript.c:724
void StopParticleUpdate()
Определения BoatScript.c:819
proto native void dBodyGetWorldTransform(notnull IEntity body, out vector matrix[4])
const int CALL_CATEGORY_SYSTEM
Определения 3_Game/DayZ/tools/tools.c:8

Перекрестные ссылки CALL_CATEGORY_SYSTEM, dBodyGetWorldTransform(), FadeEngineSound(), g_Game, HandleEngineSound() и StopParticleUpdate().