281 {
282#ifdef DIAG_DEVELOPER
283 _car = this;
284#endif
285
288
290
292
298
302
304
307
310
311 RegisterNetSyncVariableBool("m_HeadlightsOn");
312 RegisterNetSyncVariableBool("m_BrakesArePressed");
313 RegisterNetSyncVariableBool("m_ForceUpdateLights");
314 RegisterNetSyncVariableBoolSignal("m_PlayCrashSoundLight");
315 RegisterNetSyncVariableBoolSignal("m_PlayCrashSoundHeavy");
316 RegisterNetSyncVariableInt("m_CarHornState", ECarHornState.OFF, ECarHornState.LONG);
317 RegisterNetSyncVariableInt("m_CarEngineSoundState", CarEngineSoundState.NONE, CarEngineSoundState.STOP_NO_FUEL);
318
319 if ( MemoryPointExists("ptcExhaust_end") )
320 {
322 if ( MemoryPointExists("ptcExhaust_start") )
323 {
324 vector exhaustStart = GetMemoryPointPos(
"ptcExhaust_start");
326
330
332 }
333 }
334 else
335 {
338 }
339
340 if ( MemoryPointExists("ptcEnginePos") )
342 else
344
345 if ( MemoryPointExists("ptcCoolantPos") )
347 else
349
350 if ( MemoryPointExists("drown_engine") )
352 else
354
355 if ( MemoryPointExists("dmgZone_engine") )
357 else
359
360 if ( MemoryPointExists("dmgZone_front") )
361 m_frontPos = GetMemoryPointPos(
"dmgZone_front");
362 else
364
365 if ( MemoryPointExists("dmgZone_back") )
366 m_backPos = GetMemoryPointPos(
"dmgZone_back");
367 else
369
370 if ( MemoryPointExists("dmgZone_fender_1_1") )
372 else
374
375 if ( MemoryPointExists("dmgZone_fender_1_2") )
377 else
379
380 if ( MemoryPointExists("dmgZone_fender_2_1") )
382 else
384
385 if ( MemoryPointExists("dmgZone_fender_2_2") )
387 else
389
390 if (!
GetGame().IsDedicatedServer())
391 {
397 {
399 }
400 }
401 }
ref array< ref EffWheelSmoke > m_WheelSmokeFx
int m_CarEngineSoundState
float m_EnviroHeatComfortOverride
bool m_PlayCrashSoundLight
ref array< int > m_WheelSmokePtcFx
bool m_PlayCrashSoundHeavy
static vector m_DrownEnginePos
ref CarContactCache m_ContactCache
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static vector Direction(vector p1, vector p2)
Returns direction vector from point p1 to point p2.
proto native CGame GetGame()
EntityEvent
Entity events for event-mask, or throwing event from code.