309 {
310#ifdef DIAG_DEVELOPER
311 _car = this;
312#endif
313
316
318
320
326
330
332
335
338
339 RegisterNetSyncVariableBool("m_HeadlightsOn");
340 RegisterNetSyncVariableBool("m_BrakesArePressed");
341 RegisterNetSyncVariableBool("m_ForceUpdateLights");
342 RegisterNetSyncVariableBoolSignal("m_PlayCrashSoundLight");
343 RegisterNetSyncVariableBoolSignal("m_PlayCrashSoundHeavy");
344 RegisterNetSyncVariableInt("m_CarHornState", ECarHornState.OFF, ECarHornState.LONG);
345 RegisterNetSyncVariableInt("m_CarEngineSoundState", CarEngineSoundState.NONE, CarEngineSoundState.STOP_NO_FUEL);
346
347 if ( MemoryPointExists("ptcExhaust_end") )
348 {
350 if ( MemoryPointExists("ptcExhaust_start") )
351 {
352 vector exhaustStart = GetMemoryPointPos("ptcExhaust_start");
354
358
360 }
361 }
362 else
363 {
366 }
367
368 if ( MemoryPointExists("ptcEnginePos") )
370 else
372
373 if ( MemoryPointExists("ptcCoolantPos") )
375 else
377
378 if ( MemoryPointExists("drown_engine") )
380 else
382
383 if ( MemoryPointExists("dmgZone_engine") )
385 else
387
388 if ( MemoryPointExists("dmgZone_front") )
389 m_frontPos = GetMemoryPointPos(
"dmgZone_front");
390 else
392
393 if ( MemoryPointExists("dmgZone_back") )
394 m_backPos = GetMemoryPointPos(
"dmgZone_back");
395 else
397
398 if ( MemoryPointExists("dmgZone_fender_1_1") )
400 else
402
403 if ( MemoryPointExists("dmgZone_fender_1_2") )
405 else
407
408 if ( MemoryPointExists("dmgZone_fender_2_1") )
410 else
412
413 if ( MemoryPointExists("dmgZone_fender_2_2") )
415 else
417
418 if (!
GetGame().IsDedicatedServer())
419 {
425 {
427 }
428 }
429 }
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
proto native CGame GetGame()
EntityEvent
Entity events for event-mask, or throwing event from code.