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

◆ OnEngineStop()

override void BoatScript::OnEngineStop ( )
inlineprotected

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

315 {
316 super.OnEngineStop();
317
318 if (g_Game.IsDedicatedServer())
319 return;
320
321 FadeEngineSound(false);
322 HandleEngineSound(EBoatEngineSoundState.STOP_OK);
323
324 vector mat[4];
325 dBodyGetWorldTransform(this, mat);
326 vector pos = mat[3] + VectorToParent(PropellerGetPosition());
327
328 if (g_Game.GetWaterDepth(pos) < 0) // stop instantly
330 else
331 g_Game.GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(StopParticleUpdate, 3000);
332 }
DayZGame g_Game
Определения DayZGame.c:3942
void HandleEngineSound(EBoatEngineSoundState state)
Определения BoatScript.c:598
void FadeEngineSound(bool fadeIn)
Определения BoatScript.c:714
void StopParticleUpdate()
Определения BoatScript.c:808
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().