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

◆ EOnPostSimulate()

override void BoatScript::EOnPostSimulate ( IEntity other,
float timeSlice )
inlineprotected

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

356 {
357 if (!IsProxy())
358 {
359 if (EngineIsOn())
360 {
361 if (GetFluidFraction(BoatFluid.FUEL) <= 0)
362 {
363 if (g_Game.IsServer())
364 {
366 SetSynchDirty();
368 }
369
370 EngineStop();
371 }
372 }
373 }
374
375 if (g_Game.IsServer())
376 {
378 m_VelocityPrevTick = GetVelocity(this);
379 m_MomentumPrevTick = GetMomentum();
380 }
381
382 if (!g_Game.IsHeadlessOrDedicatedServer())
383 {
384 if (EngineIsOn())
385 m_UpdateParticles = true;
386
389
390 }
391 }
BoatFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Boat.c:13
DayZGame g_Game
Определения DayZGame.c:4074
bool IsProxy()
Определения Hand_Events.c:65
proto native void EngineStop()
Stops the engine.
proto native bool EngineIsOn()
Returns true when engine is running, false otherwise.
proto native float GetFluidFraction(MotorbikeFluid fluid)
void HandleBoatSplashSound()
Определения BoatScript.c:672
bool m_UpdateParticles
Определения BoatScript.c:60
bool m_PlaySoundEngineStopNoFuel
Определения BoatScript.c:65
void CheckContactCache()
Определения BoatScript.c:742
proto native vector GetVelocity(notnull IEntity ent)
Returns linear velocity.

Перекрестные ссылки CheckContactCache(), EngineIsOn(), EngineStop(), g_Game, GetFluidFraction(), GetVelocity(), HandleBoatSplashSound(), IsProxy(), m_PlaySoundEngineStopNoFuel и m_UpdateParticles.