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

◆ EOnPostSimulate()

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

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

348 {
349 if (!IsProxy())
350 {
351 if (EngineIsOn())
352 {
353 if (GetFluidFraction(BoatFluid.FUEL) <= 0)
354 {
355 if (GetGame().IsServer())
356 {
358 SetSynchDirty();
360 }
361
362 EngineStop();
363 }
364 }
365 }
366
367 if (GetGame().IsServer())
368 {
371 m_MomentumPrevTick = GetMomentum();
372 }
373
374 if (!GetGame().IsDedicatedServer())
375 {
376 if (EngineIsOn())
377 m_UpdateParticles = true;
378
381
382 }
383 }
BoatFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Boat.c:14
bool IsProxy()
Определения Hand_Events.c:65
void HandleBoatSplashSound()
Определения BoatScript.c:662
bool m_UpdateParticles
Определения BoatScript.c:63
bool m_PlaySoundEngineStopNoFuel
Определения BoatScript.c:68
void CheckContactCache()
Определения BoatScript.c:732
float m_MomentumPrevTick
Определения BoatScript.c:58
vector m_VelocityPrevTick
Определения BoatScript.c:57
proto native CGame GetGame()
proto native vector GetVelocity(notnull IEntity ent)
Returns linear velocity.

Перекрестные ссылки CheckContactCache(), GetGame(), GetVelocity(), HandleBoatSplashSound(), IsProxy(), m_MomentumPrevTick, m_PlaySoundEngineStopNoFuel, m_UpdateParticles и m_VelocityPrevTick.