320 {
321#ifdef DIAG_DEVELOPER
322 _car = this;
323#endif
324
327
329
331
337
341
343
346
349
350 RegisterNetSyncVariableBool("m_BrakesArePressed");
351 RegisterNetSyncVariableBool("m_ForceUpdateLights");
352 RegisterNetSyncVariableBoolSignal("m_PlayCrashSoundLight");
353 RegisterNetSyncVariableBoolSignal("m_PlayCrashSoundHeavy");
354 RegisterNetSyncVariableInt("m_CarHornState", ECarHornState.OFF, ECarHornState.LONG);
355 RegisterNetSyncVariableInt("m_CarEngineSoundState", CarEngineSoundState.NONE, CarEngineSoundState.STOP_NO_FUEL);
356
357 if ( MemoryPointExists("ptcExhaust_end") )
358 {
360 if ( MemoryPointExists("ptcExhaust_start") )
361 {
362 vector exhaustStart = GetMemoryPointPos("ptcExhaust_start");
364
368
370 }
371 }
372 else
373 {
376 }
377
378 if ( MemoryPointExists("ptcEnginePos") )
380 else
382
383 if ( MemoryPointExists("ptcCoolantPos") )
385 else
387
388 if ( MemoryPointExists("drown_engine") )
390 else
392
393 if ( MemoryPointExists("dmgZone_engine") )
395 else
397
398 if ( MemoryPointExists("dmgZone_front") )
399 m_frontPos = GetMemoryPointPos(
"dmgZone_front");
400 else
402
403 if ( MemoryPointExists("dmgZone_back") )
404 m_backPos = GetMemoryPointPos(
"dmgZone_back");
405 else
407
408 if ( MemoryPointExists("dmgZone_fender_1_1") )
410 else
412
413 if ( MemoryPointExists("dmgZone_fender_1_2") )
415 else
417
418 if ( MemoryPointExists("dmgZone_fender_2_1") )
420 else
422
423 if ( MemoryPointExists("dmgZone_fender_2_2") )
425 else
427
428 if (!
g_Game.IsDedicatedServer())
429 {
435 {
437 }
438 }
439 }
int m_CarEngineSoundState
float m_EnviroHeatComfortOverride
static vector m_DrownEnginePos
bool m_PlayCrashSoundLight
ref array< int > m_WheelSmokePtcFx
ref CarContactCache m_ContactCache
ref array< ref EffWheelSmoke > m_WheelSmokeFx
bool m_PlayCrashSoundHeavy
EntityEvent
Entity events for event-mask, or throwing event from code.