DayZ 1.24
Loading...
Searching...
No Matches
CarScript Class Reference
Collaboration diagram for CarScript:
[legend]

Protected Member Functions

void CivilianSedan ()
 
override void EEInit ()
 
override void OnEngineStart ()
 
override void OnEngineStop ()
 
override void EOnPostSimulate (IEntity other, float timeSlice)
 
override int GetAnimInstance ()
 
override float GetTransportCameraDistance ()
 
override int GetSeatAnimationType (int posIdx)
 
override CarLightBase CreateFrontLight ()
 
override CarRearLightBase CreateRearLight ()
 
override bool CanReleaseAttachment (EntityAI attachment)
 
bool CanManipulateSpareWheel (string slotSelectionName)
 
override bool CanDisplayAttachmentCategory (string category_name)
 
override bool CanDisplayCargo ()
 
override int GetCarDoorsState (string slotType)
 
override bool CrewCanGetThrough (int posIdx)
 
override string GetDoorSelectionNameFromSeatPos (int posIdx)
 
override string GetDoorInvSlotNameFromSeatPos (int posIdx)
 
override float OnSound (CarSoundCtrl ctrl, float oldValue)
 
override string GetAnimSourceFromSelection (string selection)
 
override bool IsVitalTruckBattery ()
 
override bool IsVitalGlowPlug ()
 
override bool CanReachSeatFromSeat (int currentSeat, int nextSeat)
 
override bool CanReachDoorsFromSeat (string pDoorsSelection, int pCurrentSeat)
 
override void OnDebugSpawn ()
 
override float GetPushForceCoefficientMultiplier ()
 
void Hatchback_02 ()
 
override void EEInit ()
 
override void OnEngineStart ()
 
override void OnEngineStop ()
 
override void EOnPostSimulate (IEntity other, float timeSlice)
 
override int GetAnimInstance ()
 
override int GetSeatAnimationType (int posIdx)
 
override CarRearLightBase CreateRearLight ()
 
override CarLightBase CreateFrontLight ()
 
override bool CanReleaseAttachment (EntityAI attachment)
 
bool CanManipulateSpareWheel (string slotSelectionName)
 
override bool CanDisplayAttachmentCategory (string category_name)
 
override bool CanDisplayCargo ()
 
override int GetCarDoorsState (string slotType)
 
override bool CrewCanGetThrough (int posIdx)
 
override string GetDoorSelectionNameFromSeatPos (int posIdx)
 
override string GetDoorInvSlotNameFromSeatPos (int posIdx)
 
override float OnSound (CarSoundCtrl ctrl, float oldValue)
 
override string GetAnimSourceFromSelection (string selection)
 
override bool IsVitalTruckBattery ()
 
override bool IsVitalGlowPlug ()
 
override bool CanReachSeatFromSeat (int currentSeat, int nextSeat)
 
override bool CanReachDoorsFromSeat (string pDoorsSelection, int pCurrentSeat)
 
override void OnDebugSpawn ()
 
void Offroad_02 ()
 
override void EEInit ()
 
override void OnEngineStart ()
 
override void OnEngineStop ()
 
override void EOnPostSimulate (IEntity other, float timeSlice)
 
override int GetAnimInstance ()
 
override float GetTransportCameraDistance ()
 
override int GetSeatAnimationType (int posIdx)
 
override CarLightBase CreateFrontLight ()
 
override CarRearLightBase CreateRearLight ()
 
override bool CanReleaseAttachment (EntityAI attachment)
 
bool CanManipulateSpareWheel (string slotSelectionName)
 
override bool CanDisplayAttachmentCategory (string category_name)
 
override bool CanDisplayCargo ()
 
override int GetCarDoorsState (string slotType)
 
override bool CrewCanGetThrough (int posIdx)
 
override string GetDoorSelectionNameFromSeatPos (int posIdx)
 
override string GetDoorInvSlotNameFromSeatPos (int posIdx)
 
override float OnSound (CarSoundCtrl ctrl, float oldValue)
 
override string GetAnimSourceFromSelection (string selection)
 
override bool CanReachSeatFromSeat (int currentSeat, int nextSeat)
 
override bool CanReachDoorsFromSeat (string pDoorsSelection, int pCurrentSeat)
 
override bool IsVitalTruckBattery ()
 
override bool IsVitalSparkPlug ()
 
override bool IsVitalRadiator ()
 
override void OnDebugSpawn ()
 
void OffroadHatchback ()
 
override void EEInit ()
 
override void OnEngineStart ()
 
override void OnEngineStop ()
 
override void EOnPostSimulate (IEntity other, float timeSlice)
 
override int GetAnimInstance ()
 
override float GetTransportCameraDistance ()
 
override int GetSeatAnimationType (int posIdx)
 
override CarRearLightBase CreateRearLight ()
 
override CarLightBase CreateFrontLight ()
 
override bool CanReleaseAttachment (EntityAI attachment)
 
bool CanManipulateSpareWheel (string slotSelectionName)
 
override bool CanDisplayAttachmentCategory (string category_name)
 
override bool CanDisplayCargo ()
 
override int GetCarDoorsState (string slotType)
 
override bool CrewCanGetThrough (int posIdx)
 
override string GetDoorSelectionNameFromSeatPos (int posIdx)
 
override string GetDoorInvSlotNameFromSeatPos (int posIdx)
 
override float OnSound (CarSoundCtrl ctrl, float oldValue)
 
override string GetAnimSourceFromSelection (string selection)
 
override string GetDoorConditionPointFromSelection (string selection)
 
override int GetCrewIndex (string selection)
 
override bool IsVitalTruckBattery ()
 
override bool IsVitalGlowPlug ()
 
override bool CanReachSeatFromSeat (int currentSeat, int nextSeat)
 
override bool CanReachDoorsFromSeat (string pDoorsSelection, int pCurrentSeat)
 
override int GetSeatIndexFromDoor (string pDoorSelection)
 
override void SetActions ()
 
override void OnDebugSpawn ()
 
void Sedan_02 ()
 
override void EEInit ()
 
override void OnEngineStart ()
 
override void OnEngineStop ()
 
override void EOnPostSimulate (IEntity other, float timeSlice)
 
override int GetAnimInstance ()
 
override int GetSeatAnimationType (int posIdx)
 
override CarLightBase CreateFrontLight ()
 
override CarRearLightBase CreateRearLight ()
 
override bool CanReleaseAttachment (EntityAI attachment)
 
bool CanManipulateSpareWheel (string slotSelectionName)
 
override bool CanDisplayAttachmentCategory (string category_name)
 
override bool CanDisplayCargo ()
 
override int GetCarDoorsState (string slotType)
 
override bool CrewCanGetThrough (int posIdx)
 
override string GetDoorSelectionNameFromSeatPos (int posIdx)
 
override string GetDoorInvSlotNameFromSeatPos (int posIdx)
 
override float OnSound (CarSoundCtrl ctrl, float oldValue)
 
override string GetAnimSourceFromSelection (string selection)
 
override bool IsVitalTruckBattery ()
 
override bool IsVitalGlowPlug ()
 
override bool CanReachSeatFromSeat (int currentSeat, int nextSeat)
 
override bool CanReachDoorsFromSeat (string pDoorsSelection, int pCurrentSeat)
 
override void OnDebugSpawn ()
 
void Truck_01_Base ()
 
override void EEInit ()
 
override void OnEngineStart ()
 
override void OnEngineStop ()
 
override void EOnPostSimulate (IEntity other, float timeSlice)
 
override float GetTransportCameraDistance ()
 
override vector GetTransportCameraOffset ()
 
override int GetAnimInstance ()
 
override int GetSeatAnimationType (int posIdx)
 
override CarLightBase CreateFrontLight ()
 
override CarRearLightBase CreateRearLight ()
 
override bool CanReleaseAttachment (EntityAI attachment)
 
bool CanManipulateSpareWheel (string slotSelectionName)
 
override bool CrewCanGetThrough (int posIdx)
 
override string GetDoorSelectionNameFromSeatPos (int posIdx)
 
override string GetDoorInvSlotNameFromSeatPos (int posIdx)
 
override float OnSound (CarSoundCtrl ctrl, float oldValue)
 
override void OnAnimationPhaseStarted (string animSource, float phase)
 
override int GetCarDoorsState (string slotType)
 
override string GetAnimSourceFromSelection (string selection)
 
override bool CanReachSeatFromSeat (int currentSeat, int nextSeat)
 
override bool CanReachDoorsFromSeat (string pDoorsSelection, int pCurrentSeat)
 
override int GetSeatIndexFromDoor (string pDoorSelection)
 
override bool IsVitalCarBattery ()
 
override bool IsVitalSparkPlug ()
 
override bool IsVitalGlowPlug ()
 
override bool IsVitalEngineBelt ()
 
override bool IsVitalRadiator ()
 
override void SetActions ()
 
override void OnDebugSpawn ()
 
void Truck_02 ()
 
override void EEInit ()
 
override void OnEngineStart ()
 
override void OnEngineStop ()
 
override void EOnPostSimulate (IEntity other, float timeSlice)
 
override int GetAnimInstance ()
 
override int GetSeatAnimationType (int posIdx)
 
override int GetCarDoorsState (string slotType)
 
override bool CrewCanGetThrough (int posIdx)
 
override float OnSound (CarSoundCtrl ctrl, float oldValue)
 
override string GetAnimSourceFromSelection (string selection)
 
override bool IsVitalCarBattery ()
 
override bool IsVitalSparkPlug ()
 
override bool IsVitalGlowPlug ()
 
override bool IsVitalEngineBelt ()
 
override bool IsVitalRadiator ()
 
override bool CanReachSeatFromSeat (int currentSeat, int nextSeat)
 
override bool CanReachDoorsFromSeat (string pDoorsSelection, int pCurrentSeat)
 
override int GetSeatIndexFromDoor (string pDoorSelection)
 
override void OnDebugSpawn ()
 
void Van_01 ()
 
override void EEInit ()
 
override void OnEngineStart ()
 
override void OnEngineStop ()
 
override void EOnPostSimulate (IEntity other, float timeSlice)
 
override int GetAnimInstance ()
 
override int GetSeatAnimationType (int posIdx)
 
override int GetCarDoorsState (string slotType)
 
override bool CrewCanGetThrough (int posIdx)
 
override float OnSound (CarSoundCtrl ctrl, float oldValue)
 
override string GetAnimSourceFromSelection (string selection)
 
override string GetDoorConditionPointFromSelection (string selection)
 
override bool IsVitalTruckBattery ()
 
override bool IsVitalGlowPlug ()
 
override bool CanReachSeatFromSeat (int currentSeat, int nextSeat)
 
override bool CanReachDoorsFromSeat (string pDoorsSelection, int pCurrentSeat)
 

Protected Attributes

ref UniversalTemperatureSource m_UTSource
 
ref UniversalTemperatureSourceSettings m_UTSSettings
 
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
 

Detailed Description

Definition at line 1 of file CivilianSedan.c.

Member Function Documentation

◆ CanDisplayAttachmentCategory() [1/5]

override bool CarScript::CanDisplayAttachmentCategory ( string category_name)
inlineprotected

Definition at line 130 of file CivilianSedan.c.

131 {
132 //super
133 if (!super.CanDisplayAttachmentCategory(category_name))
134 return false;
135 //
136
137 category_name.ToLower();
138 if (category_name.Contains("engine"))
139 {
140 if (GetCarDoorsState("CivSedanHood") == CarDoorState.DOORS_CLOSED)
141 return false;
142 }
143
144 return true;
145 }
CarDoorState
Definition CarScript.c:2
override int GetCarDoorsState(string slotType)

References GetCarDoorsState().

◆ CanDisplayAttachmentCategory() [2/5]

override bool CarScript::CanDisplayAttachmentCategory ( string category_name)
inlineprotected

Definition at line 124 of file Hatchback_02.c.

125 {
126 //super
127 if (!super.CanDisplayAttachmentCategory(category_name))
128 return false;
129 //
130
131 category_name.ToLower();
132 if (category_name.Contains("engine"))
133 {
134 if (GetCarDoorsState("Hatchback_02_Hood") == CarDoorState.DOORS_CLOSED)
135 return false;
136 }
137
138 return true;
139 }

References GetCarDoorsState().

◆ CanDisplayAttachmentCategory() [3/5]

override bool CarScript::CanDisplayAttachmentCategory ( string category_name)
inlineprotected

Definition at line 136 of file Offroad_02.c.

137 {
138 if (!super.CanDisplayAttachmentCategory(category_name))
139 return false;
140
141 category_name.ToLower();
142 if (category_name.Contains("engine"))
143 {
144 if (GetCarDoorsState("Offroad_02_Hood") == CarDoorState.DOORS_CLOSED)
145 return false;
146 }
147
148 return true;
149 }

References GetCarDoorsState().

◆ CanDisplayAttachmentCategory() [4/5]

override bool CarScript::CanDisplayAttachmentCategory ( string category_name)
inlineprotected

Definition at line 131 of file OffroadHatchback.c.

132 {
133 if (!super.CanDisplayAttachmentCategory(category_name))
134 return false;
135
136 category_name.ToLower();
137 if (category_name.Contains("engine"))
138 {
139 if (GetCarDoorsState("NivaHood") == CarDoorState.DOORS_CLOSED)
140 return false;
141 }
142
143 return true;
144 }

References GetCarDoorsState().

◆ CanDisplayAttachmentCategory() [5/5]

override bool CarScript::CanDisplayAttachmentCategory ( string category_name)
inlineprotected

Definition at line 136 of file Sedan_02.c.

137 {
138 if (!super.CanDisplayAttachmentCategory(category_name))
139 return false;
140
141 category_name.ToLower();
142 if (category_name.Contains("engine"))
143 {
144 if (GetCarDoorsState("Sedan_02_Trunk") == CarDoorState.DOORS_CLOSED)
145 return false;
146 }
147
148 if (category_name.Contains("trunk"))
149 {
150 if (GetCarDoorsState("Sedan_02_Hood") == CarDoorState.DOORS_CLOSED)
151 return false;
152 }
153
154 return true;
155 }

References GetCarDoorsState().

◆ CanDisplayCargo() [1/5]

override bool CarScript::CanDisplayCargo ( )
inlineprotected

Definition at line 147 of file CivilianSedan.c.

148 {
149 if (!super.CanDisplayCargo())
150 return false;
151
152 if (GetCarDoorsState("CivSedanTrunk") == CarDoorState.DOORS_CLOSED)
153 return false;
154
155 return true;
156 }

References GetCarDoorsState().

◆ CanDisplayCargo() [2/5]

override bool CarScript::CanDisplayCargo ( )
inlineprotected

Definition at line 141 of file Hatchback_02.c.

142 {
143 if (!super.CanDisplayCargo())
144 return false;
145
146 if (GetCarDoorsState("Hatchback_02_Trunk") == CarDoorState.DOORS_CLOSED)
147 return false;
148
149 return true;
150 }

References GetCarDoorsState().

◆ CanDisplayCargo() [3/5]

override bool CarScript::CanDisplayCargo ( )
inlineprotected

Definition at line 151 of file Offroad_02.c.

152 {
153 if (!super.CanDisplayCargo())
154 return false;
155
156 if (GetCarDoorsState("Offroad_02_Trunk") == CarDoorState.DOORS_CLOSED)
157 return false;
158
159 return true;
160 }

References GetCarDoorsState().

◆ CanDisplayCargo() [4/5]

override bool CarScript::CanDisplayCargo ( )
inlineprotected

Definition at line 146 of file OffroadHatchback.c.

147 {
148 if (!super.CanDisplayCargo())
149 return false;
150
151 if (GetCarDoorsState("NivaTrunk") == CarDoorState.DOORS_CLOSED)
152 return false;
153
154 return true;
155 }

References GetCarDoorsState().

◆ CanDisplayCargo() [5/5]

override bool CarScript::CanDisplayCargo ( )
inlineprotected

Definition at line 157 of file Sedan_02.c.

158 {
159 if (!super.CanDisplayCargo())
160 return false;
161
162 if (GetCarDoorsState("Sedan_02_Hood") == CarDoorState.DOORS_CLOSED)
163 return false;
164
165 return true;
166 }

References GetCarDoorsState().

◆ CanManipulateSpareWheel() [1/6]

bool CarScript::CanManipulateSpareWheel ( string slotSelectionName)
inlineprotected

Definition at line 125 of file CivilianSedan.c.

126 {
127 return GetCarDoorsState("CivSedanTrunk") != CarDoorState.DOORS_CLOSED;
128 }

References GetCarDoorsState().

Referenced by CanReceiveAttachment(), and CanReleaseAttachment().

◆ CanManipulateSpareWheel() [2/6]

bool CarScript::CanManipulateSpareWheel ( string slotSelectionName)
inlineprotected

Definition at line 119 of file Hatchback_02.c.

120 {
121 return GetCarDoorsState("Hatchback_02_Trunk") != CarDoorState.DOORS_CLOSED;
122 }

References GetCarDoorsState().

◆ CanManipulateSpareWheel() [3/6]

bool CarScript::CanManipulateSpareWheel ( string slotSelectionName)
inlineprotected

Definition at line 131 of file Offroad_02.c.

132 {
133 return GetCarDoorsState("Offroad_02_Trunk") != CarDoorState.DOORS_CLOSED;
134 }

References GetCarDoorsState().

◆ CanManipulateSpareWheel() [4/6]

bool CarScript::CanManipulateSpareWheel ( string slotSelectionName)
inlineprotected

Definition at line 126 of file OffroadHatchback.c.

127 {
128 return GetCarDoorsState("NivaHood") != CarDoorState.DOORS_CLOSED;
129 }

References GetCarDoorsState().

◆ CanManipulateSpareWheel() [5/6]

bool CarScript::CanManipulateSpareWheel ( string slotSelectionName)
inlineprotected

Definition at line 131 of file Sedan_02.c.

132 {
133 return GetCarDoorsState("Sedan_02_Hood") != CarDoorState.DOORS_CLOSED;
134 }

References GetCarDoorsState().

◆ CanManipulateSpareWheel() [6/6]

bool CarScript::CanManipulateSpareWheel ( string slotSelectionName)
inlineprotected

Definition at line 122 of file Truck_01_Base.c.

123 {
124 if (slotSelectionName == "wheel_spare_1")
125 return GetAnimationPhase("wheelSidePlate1") == 1.0);
126
127 if (slotSelectionName == "wheel_spare_2")
128 return GetAnimationPhase("wheelSidePlate2") == 1.0);
129
130 return super.CanManipulateSpareWheel(slotSelectionName);
131 }

◆ CanReachDoorsFromSeat() [1/8]

override bool CarScript::CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected

Definition at line 359 of file CivilianSedan.c.

360 {
361 switch (pCurrentSeat)
362 {
363 case 0:
364 return pDoorsSelection == "DoorsDriver";
365
366 case 1:
367 return pDoorsSelection == "DoorsCoDriver";
368
369 case 2:
370 return pDoorsSelection == "DoorsCargo1";
371
372 case 3:
373 return pDoorsSelection == "DoorsCargo2";
374 }
375
376 return false;
377 }

◆ CanReachDoorsFromSeat() [2/8]

override bool CarScript::CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected

Definition at line 333 of file Hatchback_02.c.

334 {
335 switch (pCurrentSeat)
336 {
337 case 0:
338 return pDoorsSelection == "DoorsDriver";
339 case 1:
340 return pDoorsSelection == "DoorsCoDriver";
341 case 2:
342 return pDoorsSelection == "DoorsCargo1";
343 case 3:
344 return pDoorsSelection == "DoorsCargo2";
345 }
346
347 return false;
348 }

◆ CanReachDoorsFromSeat() [3/8]

override bool CarScript::CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected

Definition at line 332 of file Offroad_02.c.

333 {
334 switch (pCurrentSeat)
335 {
336 case 0:
337 return pDoorsSelection == "DoorsDriver";
338 case 1:
339 return pDoorsSelection == "DoorsCoDriver";
340 case 2:
341 return pDoorsSelection == "DoorsCargo1";
342 case 3:
343 return pDoorsSelection == "DoorsCargo2";
344 }
345
346 return false;
347 }

◆ CanReachDoorsFromSeat() [4/8]

override bool CarScript::CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected

Definition at line 376 of file OffroadHatchback.c.

377 {
378 switch (pCurrentSeat)
379 {
380 case 0:
381 return pDoorsSelection == "DoorsDriver";
382
383 case 1:
384 return pDoorsSelection == "DoorsCoDriver";
385
386 case 2:
387 return pDoorsSelection == "DoorsDriver";
388
389 case 3:
390 return pDoorsSelection == "DoorsCoDriver";
391 }
392
393 return false;
394 }

◆ CanReachDoorsFromSeat() [5/8]

override bool CarScript::CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected

Definition at line 356 of file Sedan_02.c.

357 {
358 switch (pCurrentSeat)
359 {
360 case 0:
361 return pDoorsSelection == "DoorsDriver";
362
363 case 1:
364 return pDoorsSelection == "DoorsCoDriver";
365
366 case 2:
367 return pDoorsSelection == "DoorsCargo1";
368
369 case 3:
370 return pDoorsSelection == "DoorsCargo2";
371 }
372
373 return false;
374 }

◆ CanReachDoorsFromSeat() [6/8]

override bool CarScript::CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected

Definition at line 281 of file Truck_01_Base.c.

282 {
283 switch (pCurrentSeat)
284 {
285 case 0:
286 return pDoorsSelection == "DoorsDriver";
287
288 case 1:
289 return pDoorsSelection == "DoorsCoDriver";
290 }
291
292 return false;
293 }

◆ CanReachDoorsFromSeat() [7/8]

override bool CarScript::CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected

Definition at line 222 of file Truck_02.c.

223 {
224 switch (pCurrentSeat)
225 {
226 case 0:
227 if (pDoorsSelection == "DoorsDriver")
228 return true;
229 break;
230
231 case 1:
232 if (pDoorsSelection == "DoorsCoDriver")
233 return true;
234 break;
235 }
236
237 return false;
238 }

◆ CanReachDoorsFromSeat() [8/8]

override bool CarScript::CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected

Definition at line 297 of file Van_01.c.

298 {
299 switch (pCurrentSeat)
300 {
301 case 0:
302 if (pDoorsSelection == "DoorsDriver")
303 return true;
304 break;
305 case 1:
306 if (pDoorsSelection == "DoorsCoDriver")
307 return true;
308 break;
309 case 2:
310 if (pDoorsSelection == "DoorsCargo1")
311 return true;
312 break;
313 case 3:
314 if (pDoorsSelection == "DoorsCargo2")
315 return true;
316 break;
317 }
318
319 return false;
320 }

◆ CanReachSeatFromSeat() [1/8]

override bool CarScript::CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected

Definition at line 339 of file CivilianSedan.c.

340 {
341 switch (currentSeat)
342 {
343 case 0:
344 return nextSeat == 1;
345
346 case 1:
347 return nextSeat == 0;
348
349 case 2:
350 return nextSeat == 3;
351
352 case 3:
353 return nextSeat == 2;
354 }
355
356 return false;
357 }

◆ CanReachSeatFromSeat() [2/8]

override bool CarScript::CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected

Definition at line 316 of file Hatchback_02.c.

317 {
318 switch (currentSeat)
319 {
320 case 0:
321 return nextSeat == 1;
322 case 1:
323 return nextSeat == 0;
324 case 2:
325 return nextSeat == 3;
326 case 3:
327 return nextSeat == 2;
328 }
329
330 return false;
331 }

◆ CanReachSeatFromSeat() [3/8]

override bool CarScript::CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected

Definition at line 315 of file Offroad_02.c.

316 {
317 switch (currentSeat)
318 {
319 case 0:
320 return nextSeat == 1;
321 case 1:
322 return nextSeat == 0;
323 case 2:
324 return nextSeat == 3;
325 case 3:
326 return nextSeat == 2;
327 }
328
329 return false;
330 }

◆ CanReachSeatFromSeat() [4/8]

override bool CarScript::CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected

Definition at line 350 of file OffroadHatchback.c.

351 {
352 if (nextSeat == 0 && GetAnimationPhase("SeatDriver") > 0.5)
353 return false;
354
355 if (nextSeat == 1 && GetAnimationPhase("SeatCoDriver") > 0.5)
356 return false;
357
358 switch (currentSeat)
359 {
360 case 0:
361 return nextSeat == 1;
362
363 case 1:
364 return nextSeat == 0;
365
366 case 2:
367 return nextSeat == 3;
368
369 case 3:
370 return nextSeat == 2;
371 }
372
373 return false;
374 }

◆ CanReachSeatFromSeat() [5/8]

override bool CarScript::CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected

Definition at line 336 of file Sedan_02.c.

337 {
338 switch (currentSeat)
339 {
340 case 0:
341 return nextSeat == 1;
342
343 case 1:
344 return nextSeat == 0;
345
346 case 2:
347 return nextSeat == 3;
348
349 case 3:
350 return nextSeat == 2;
351 }
352
353 return false;
354 }

◆ CanReachSeatFromSeat() [6/8]

override bool CarScript::CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected

Definition at line 268 of file Truck_01_Base.c.

269 {
270 switch (currentSeat)
271 {
272 case 0:
273 return nextSeat == 1;
274 case 1:
275 return nextSeat == 0;
276 }
277
278 return false;
279 }

◆ CanReachSeatFromSeat() [7/8]

override bool CarScript::CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected

Definition at line 204 of file Truck_02.c.

205 {
206 switch (currentSeat)
207 {
208 case 0:
209 if (nextSeat == 1)
210 return true;
211 break;
212
213 case 1:
214 if (nextSeat == 0)
215 return true;
216 break;
217 }
218
219 return false;
220 }

◆ CanReachSeatFromSeat() [8/8]

override bool CarScript::CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected

Definition at line 271 of file Van_01.c.

272 {
273 switch (currentSeat)
274 {
275 case 0:
276 if (nextSeat == 1)
277 return true;
278 break;
279 case 1:
280 if (nextSeat == 0)
281 return true;
282 break;
283 case 2:
284 if (nextSeat == 3)
285 return true;
286 break;
287 case 3:
288 if (nextSeat == 2)
289 return true;
290 break;
291 }
292
293 return false;
294 }

◆ CanReleaseAttachment() [1/6]

override bool CarScript::CanReleaseAttachment ( EntityAI attachment)
inlineprotected

Definition at line 109 of file CivilianSedan.c.

110 {
111 if (!super.CanReleaseAttachment(attachment))
112 return false;
113
114 string attType = attachment.GetType();
115
116 if (EngineIsOn() || GetCarDoorsState("CivSedanHood") == CarDoorState.DOORS_CLOSED)
117 {
118 if (attType == "CarRadiator" || attType == "CarBattery" || attType == "SparkPlug")
119 return false;
120 }
121
122 return true;
123 }

References GetCarDoorsState().

◆ CanReleaseAttachment() [2/6]

override bool CarScript::CanReleaseAttachment ( EntityAI attachment)
inlineprotected

Definition at line 104 of file Hatchback_02.c.

105 {
106 if (!super.CanReleaseAttachment(attachment))
107 return false;
108
109 if (EngineIsOn() || GetCarDoorsState("Hatchback_02_Hood") == CarDoorState.DOORS_CLOSED)
110 {
111 string attType = attachment.GetType();
112 if (attType == "CarRadiator" || attType == "CarBattery" || attType == "SparkPlug")
113 return false;
114 }
115
116 return true;
117 }

References GetCarDoorsState().

◆ CanReleaseAttachment() [3/6]

override bool CarScript::CanReleaseAttachment ( EntityAI attachment)
inlineprotected

Definition at line 109 of file Offroad_02.c.

110 {
111 if (!super.CanReleaseAttachment(attachment))
112 return false;
113
114 string attType = attachment.GetType();
115 switch (attType)
116 {
117 case "CarBattery":
118 if (GetCarDoorsState("Offroad_02_Hood") == CarDoorState.DOORS_CLOSED || EngineIsOn())
119 return false;
120 break;
121
122 case "GlowPlug":
123 if (GetCarDoorsState("Offroad_02_Hood") == CarDoorState.DOORS_CLOSED || EngineIsOn())
124 return false;
125 break;
126 }
127
128 return true;
129 }

References GetCarDoorsState().

◆ CanReleaseAttachment() [4/6]

override bool CarScript::CanReleaseAttachment ( EntityAI attachment)
inlineprotected

Definition at line 111 of file OffroadHatchback.c.

112 {
113 if (!super.CanReleaseAttachment(attachment))
114 return false;
115
116 if (EngineIsOn() || GetCarDoorsState("NivaHood") == CarDoorState.DOORS_CLOSED)
117 {
118 string attType = attachment.GetType();
119 if (attType == "CarRadiator" || attType == "CarBattery" || attType == "SparkPlug")
120 return false;
121 }
122
123 return true;
124 }

References GetCarDoorsState().

◆ CanReleaseAttachment() [5/6]

override bool CarScript::CanReleaseAttachment ( EntityAI attachment)
inlineprotected

Definition at line 104 of file Sedan_02.c.

105 {
106 if (!super.CanReleaseAttachment(attachment))
107 return false;
108
109 string attType = attachment.GetType();
110 switch (attType)
111 {
112 case "CarBattery":
113 if (GetCarDoorsState("Sedan_02_Trunk") == CarDoorState.DOORS_CLOSED || EngineIsOn())
114 return false;
115 break;
116
117 case "SparkPlug":
118 if (GetCarDoorsState("Sedan_02_Trunk") == CarDoorState.DOORS_CLOSED || EngineIsOn())
119 return false;
120 break;
121
122 case "CarRadiator":
123 if (GetCarDoorsState("Sedan_02_Hood") == CarDoorState.DOORS_CLOSED || EngineIsOn())
124 return false;
125 break;
126 }
127
128 return true;
129 }

References GetCarDoorsState().

◆ CanReleaseAttachment() [6/6]

override bool CarScript::CanReleaseAttachment ( EntityAI attachment)
inlineprotected

Definition at line 111 of file Truck_01_Base.c.

112 {
113 if (!super.CanReleaseAttachment(attachment))
114 return false;
115
116 if (EngineIsOn() && attachment.GetType() == "TruckBattery")
117 return false;
118
119 return true;
120 }

◆ CivilianSedan()

void CarScript::CivilianSedan ( )
inlineprotected

Definition at line 7 of file CivilianSedan.c.

8 {
9 //m_dmgContactCoef = 0.065;
10
11 m_EngineStartOK = "CivilianSedan_engine_start_SoundSet";
12 m_EngineStartBattery = "CivilianSedan_engine_failed_start_battery_SoundSet";
13 m_EngineStartPlug = "CivilianSedan_engine_failed_start_sparkplugs_SoundSet";
14 m_EngineStartFuel = "CivilianSedan_engine_failed_start_fuel_SoundSet";
15 m_EngineStopFuel = "offroad_engine_stop_fuel_SoundSet";
16
17 m_CarDoorOpenSound = "offroad_door_open_SoundSet";
18 m_CarDoorCloseSound = "offroad_door_close_SoundSet";
19
20 m_CarHornShortSoundName = "CivilianSedan_Horn_Short_SoundSet";
21 m_CarHornLongSoundName = "CivilianSedan_Horn_SoundSet";
22
23 SetEnginePos("0 0.7 1.6");
24 }
string m_EngineStartOK
Sounds.
Definition CarScript.c:207
string m_CarDoorCloseSound
Definition CarScript.c:214
string m_EngineStartBattery
Definition CarScript.c:208
string m_EngineStartPlug
Definition CarScript.c:209
string m_EngineStartFuel
Definition CarScript.c:210
string m_CarHornShortSoundName
Definition CarScript.c:218
string m_CarHornLongSoundName
Definition CarScript.c:219
string m_EngineStopFuel
Definition CarScript.c:211
string m_CarDoorOpenSound
Definition CarScript.c:213

References m_CarDoorCloseSound, m_CarDoorOpenSound, m_CarHornLongSoundName, m_CarHornShortSoundName, m_EngineStartBattery, m_EngineStartFuel, m_EngineStartOK, m_EngineStartPlug, and m_EngineStopFuel.

◆ CreateFrontLight() [1/6]

override CarLightBase CarScript::CreateFrontLight ( )
inlineprotected

Definition at line 98 of file CivilianSedan.c.

99 {
100 return CarLightBase.Cast(ScriptedLightBase.CreateLight(CivilianSedanFrontLight));
101 }

Referenced by UpdateLightsClient().

◆ CreateFrontLight() [2/6]

override CarLightBase CarScript::CreateFrontLight ( )
inlineprotected

Definition at line 99 of file Hatchback_02.c.

100 {
101 return CarLightBase.Cast(ScriptedLightBase.CreateLight(Hatchback_02FrontLight));
102 }

◆ CreateFrontLight() [3/6]

override CarLightBase CarScript::CreateFrontLight ( )
inlineprotected

Definition at line 98 of file Offroad_02.c.

99 {
100 return CarLightBase.Cast(ScriptedLightBase.CreateLight(Offroad_02FrontLight));
101 }

◆ CreateFrontLight() [4/6]

override CarLightBase CarScript::CreateFrontLight ( )
inlineprotected

Definition at line 106 of file OffroadHatchback.c.

107 {
108 return CarLightBase.Cast(ScriptedLightBase.CreateLight(OffroadHatchbackFrontLight));
109 }

◆ CreateFrontLight() [5/6]

override CarLightBase CarScript::CreateFrontLight ( )
inlineprotected

Definition at line 93 of file Sedan_02.c.

94 {
95 return CarLightBase.Cast(ScriptedLightBase.CreateLight(Sedan_02FrontLight));
96 }

◆ CreateFrontLight() [6/6]

override CarLightBase CarScript::CreateFrontLight ( )
inlineprotected

Definition at line 100 of file Truck_01_Base.c.

101 {
102 return CarLightBase.Cast(ScriptedLightBase.CreateLight(Truck_01FrontLight));
103 }

◆ CreateRearLight() [1/6]

override CarRearLightBase CarScript::CreateRearLight ( )
inlineprotected

Definition at line 104 of file CivilianSedan.c.

105 {
106 return CarRearLightBase.Cast(ScriptedLightBase.CreateLight(CivilianSedanRearLight));
107 }

Referenced by UpdateLightsClient().

◆ CreateRearLight() [2/6]

override CarRearLightBase CarScript::CreateRearLight ( )
inlineprotected

Definition at line 93 of file Hatchback_02.c.

94 {
95 return CarRearLightBase.Cast(ScriptedLightBase.CreateLight(Hatchback_02RearLight));
96 }

◆ CreateRearLight() [3/6]

override CarRearLightBase CarScript::CreateRearLight ( )
inlineprotected

Definition at line 104 of file Offroad_02.c.

105 {
106 return CarRearLightBase.Cast(ScriptedLightBase.CreateLight(Offroad_02RearLight));
107 }

◆ CreateRearLight() [4/6]

override CarRearLightBase CarScript::CreateRearLight ( )
inlineprotected

Definition at line 101 of file OffroadHatchback.c.

102 {
103 return CarRearLightBase.Cast(ScriptedLightBase.CreateLight(OffroadHatchbackRearLight));
104 }

◆ CreateRearLight() [5/6]

override CarRearLightBase CarScript::CreateRearLight ( )
inlineprotected

Definition at line 99 of file Sedan_02.c.

100 {
101 return CarRearLightBase.Cast(ScriptedLightBase.CreateLight(Sedan_02RearLight));
102 }

◆ CreateRearLight() [6/6]

override CarRearLightBase CarScript::CreateRearLight ( )
inlineprotected

Definition at line 106 of file Truck_01_Base.c.

107 {
108 return CarRearLightBase.Cast(ScriptedLightBase.CreateLight(Truck_01RearLight));
109 }

◆ CrewCanGetThrough() [1/8]

override bool CarScript::CrewCanGetThrough ( int posIdx)
inlineprotected

Definition at line 197 of file CivilianSedan.c.

198 {
199 switch (posIdx)
200 {
201 case 0:
202 if (GetCarDoorsState("CivSedanDriverDoors") == CarDoorState.DOORS_CLOSED)
203 return false;
204
205 return true;
206 break;
207
208 case 1:
209 if (GetCarDoorsState("CivSedanCoDriverDoors") == CarDoorState.DOORS_CLOSED)
210 return false;
211
212 return true;
213 break;
214
215 case 2:
216 if (GetCarDoorsState("CivSedanCargo1Doors") == CarDoorState.DOORS_CLOSED)
217 return false;
218
219 return true;
220 break;
221
222 case 3:
223 if (GetCarDoorsState("CivSedanCargo2Doors") == CarDoorState.DOORS_CLOSED)
224 return false;
225
226 return true;
227 break;
228 }
229
230 return false;
231 }

References GetCarDoorsState().

◆ CrewCanGetThrough() [2/8]

override bool CarScript::CrewCanGetThrough ( int posIdx)
inlineprotected

Definition at line 185 of file Hatchback_02.c.

186 {
187 switch (posIdx)
188 {
189 case 0:
190 if (GetCarDoorsState("Hatchback_02_Door_1_1") == CarDoorState.DOORS_CLOSED)
191 return false;
192
193 return true;
194
195 case 1:
196 if (GetCarDoorsState("Hatchback_02_Door_2_1") == CarDoorState.DOORS_CLOSED)
197 return false;
198
199 return true;
200
201 case 2:
202 if (GetCarDoorsState("Hatchback_02_Door_1_2") == CarDoorState.DOORS_CLOSED)
203 return false;
204
205 return true;
206
207 case 3:
208 if (GetCarDoorsState("Hatchback_02_Door_2_2") == CarDoorState.DOORS_CLOSED)
209 return false;
210
211 return true;
212 }
213
214 return false;
215 }

References GetCarDoorsState().

◆ CrewCanGetThrough() [3/8]

override bool CarScript::CrewCanGetThrough ( int posIdx)
inlineprotected

Definition at line 195 of file Offroad_02.c.

196 {
197 switch (posIdx)
198 {
199 case 0:
200 if (GetCarDoorsState("Offroad_02_Door_1_1") == CarDoorState.DOORS_CLOSED)
201 return false;
202
203 return true;
204 break;
205
206 case 1:
207 if (GetCarDoorsState("Offroad_02_Door_2_1") == CarDoorState.DOORS_CLOSED)
208 return false;
209
210 return true;
211 break;
212
213 case 2:
214 if (GetCarDoorsState("Offroad_02_Door_1_2") == CarDoorState.DOORS_CLOSED)
215 return false;
216
217 return true;
218 break;
219
220 case 3:
221 if (GetCarDoorsState("Offroad_02_Door_2_2") == CarDoorState.DOORS_CLOSED)
222 return false;
223
224 return true;
225 break;
226 }
227
228 return false;
229 }

References GetCarDoorsState().

◆ CrewCanGetThrough() [4/8]

override bool CarScript::CrewCanGetThrough ( int posIdx)
inlineprotected

Definition at line 183 of file OffroadHatchback.c.

184 {
186 switch (posIdx)
187 {
188 case 0:
189 if (GetCarDoorsState("NivaDriverDoors") == CarDoorState.DOORS_CLOSED)
190 return false;
191 else if (GetAnimationPhase("SeatDriver") > 0.5)
192 return false;
193
194 return true;
195
196 case 1:
197 if (GetCarDoorsState("NivaCoDriverDoors") == CarDoorState.DOORS_CLOSED)
198 return false;
199 else if (GetAnimationPhase("SeatCoDriver") > 0.5)
200 return false;
201
202 return true;
203
204 case 2:
205 if (GetCarDoorsState("NivaDriverDoors") == CarDoorState.DOORS_CLOSED)
206 return false;
207 else if (GetAnimationPhase("SeatDriver") <= 0.5)
208 return false;
209
210 return true;
211
212 case 3:
213 if (GetCarDoorsState("NivaCoDriverDoors") == CarDoorState.DOORS_CLOSED)
214 return false;
215 else if (GetAnimationPhase("SeatCoDriver") <= 0.5)
216 return false;
217
218 return true;
219 }
220
221 return false;
222 }

References GetCarDoorsState().

◆ CrewCanGetThrough() [5/8]

override bool CarScript::CrewCanGetThrough ( int posIdx)
inlineprotected

Definition at line 201 of file Sedan_02.c.

202 {
203 switch (posIdx)
204 {
205 case 0:
206 if (GetCarDoorsState("Sedan_02_Door_1_1") == CarDoorState.DOORS_CLOSED)
207 return false;
208
209 return true;
210 break;
211
212 case 1:
213 if (GetCarDoorsState("Sedan_02_Door_2_1") == CarDoorState.DOORS_CLOSED)
214 return false;
215
216 return true;
217 break;
218
219 case 2:
220 if (GetCarDoorsState("Sedan_02_Door_1_2") == CarDoorState.DOORS_CLOSED)
221 return false;
222
223 return true;
224 break;
225
226 case 3:
227 if (GetCarDoorsState("Sedan_02_Door_2_2") == CarDoorState.DOORS_CLOSED)
228 return false;
229
230 return true;
231 break;
232 }
233
234 return false;
235 }

References GetCarDoorsState().

◆ CrewCanGetThrough() [6/8]

override bool CarScript::CrewCanGetThrough ( int posIdx)
inlineprotected

Definition at line 133 of file Truck_01_Base.c.

134 {
136 switch (posIdx)
137 {
138 case 0:
139 if (GetCarDoorsState("Truck_01_Door_1_1") == CarDoorState.DOORS_CLOSED)
140 return false;
141
142 return true;
143
144 case 1:
145 if (GetCarDoorsState("Truck_01_Door_2_1") == CarDoorState.DOORS_CLOSED)
146 return false;
147
148 return true;
149 }
150
151 return false;
152 }

References GetCarDoorsState().

◆ CrewCanGetThrough() [7/8]

override bool CarScript::CrewCanGetThrough ( int posIdx)
inlineprotected

Definition at line 111 of file Truck_02.c.

112 {
114 switch (posIdx)
115 {
116 case 0:
117 if (GetCarDoorsState("Truck_02_Door_1_1") == CarDoorState.DOORS_CLOSED)
118 return false;
119
120 return true;
121 break;
122
123 case 1:
124 if (GetCarDoorsState("Truck_02_Door_2_1") == CarDoorState.DOORS_CLOSED)
125 return false;
126
127 return true;
128 break;
129 }
130
131 return false;
132 }

References GetCarDoorsState().

◆ CrewCanGetThrough() [8/8]

override bool CarScript::CrewCanGetThrough ( int posIdx)
inlineprotected

Definition at line 137 of file Van_01.c.

138 {
139 switch (posIdx)
140 {
141 case 0:
142 if (GetCarDoorsState("Van_01_Door_1_1") == CarDoorState.DOORS_CLOSED)
143 return false;
144
145 return true;
146 break;
147
148 case 1:
149 if (GetCarDoorsState("Van_01_Door_2_1") == CarDoorState.DOORS_CLOSED)
150 return false;
151
152 return true;
153 break;
154
155 case 2:
156 if (GetCarDoorsState("Van_01_Door_2_2") == CarDoorState.DOORS_CLOSED)
157 return false;
158
159 return true;
160 break;
161
162 case 3:
163 if (GetCarDoorsState("Van_01_Door_2_2") == CarDoorState.DOORS_CLOSED)
164 return false;
165
166 case 4:
167 if (GetCarDoorsState("Van_01_Door_2_2") == CarDoorState.DOORS_CLOSED)
168 return false;
169
170 return true;
171 break;
172 }
173
174 return false;
175 }

References GetCarDoorsState().

◆ EEInit() [1/8]

override void CarScript::EEInit ( )
inlineprotected

Definition at line 26 of file CivilianSedan.c.

27 {
28 super.EEInit();
29
30 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
31 {
33 m_UTSSettings.m_ManualUpdate = true;
34 m_UTSSettings.m_TemperatureMin = 0;
35 m_UTSSettings.m_TemperatureMax = 30;
36 m_UTSSettings.m_RangeFull = 0.5;
37 m_UTSSettings.m_RangeMax = 2;
38 m_UTSSettings.m_TemperatureCap = 25;
39
42 }
43 }
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
ref UniversalTemperatureSource m_UTSource
ref UniversalTemperatureSourceSettings m_UTSSettings
original Timer deletes m_params which is unwanted
proto native CGame GetGame()

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ EEInit() [2/8]

override void CarScript::EEInit ( )
inlineprotected

Definition at line 26 of file Hatchback_02.c.

27 {
28 super.EEInit();
29
30 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
31 {
33 m_UTSSettings.m_ManualUpdate = true;
34 m_UTSSettings.m_TemperatureMin = 0;
35 m_UTSSettings.m_TemperatureMax = 30;
36 m_UTSSettings.m_RangeFull = 0.5;
37 m_UTSSettings.m_RangeMax = 2;
38 m_UTSSettings.m_TemperatureCap = 25;
39
42 }
43 }

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ EEInit() [3/8]

override void CarScript::EEInit ( )
inlineprotected

Definition at line 26 of file Offroad_02.c.

27 {
28 super.EEInit();
29
30 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
31 {
33 m_UTSSettings.m_ManualUpdate = true;
34 m_UTSSettings.m_TemperatureMin = 0;
35 m_UTSSettings.m_TemperatureMax = 30;
36 m_UTSSettings.m_RangeFull = 0.5;
37 m_UTSSettings.m_RangeMax = 2;
38 m_UTSSettings.m_TemperatureCap = 25;
39
42 }
43 }

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ EEInit() [4/8]

override void CarScript::EEInit ( )
inlineprotected

Definition at line 28 of file OffroadHatchback.c.

29 {
30 super.EEInit();
31
32 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
33 {
35 m_UTSSettings.m_ManualUpdate = true;
36 m_UTSSettings.m_TemperatureMin = 0;
37 m_UTSSettings.m_TemperatureMax = 30;
38 m_UTSSettings.m_RangeFull = 0.5;
39 m_UTSSettings.m_RangeMax = 2;
40 m_UTSSettings.m_TemperatureCap = 25;
41
44 }
45 }

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ EEInit() [5/8]

override void CarScript::EEInit ( )
inlineprotected

Definition at line 26 of file Sedan_02.c.

27 {
28 super.EEInit();
29
30 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
31 {
33 m_UTSSettings.m_ManualUpdate = true;
34 m_UTSSettings.m_TemperatureMin = 0;
35 m_UTSSettings.m_TemperatureMax = 30;
36 m_UTSSettings.m_RangeFull = 0.5;
37 m_UTSSettings.m_RangeMax = 2;
38 m_UTSSettings.m_TemperatureCap = 25;
39
42 }
43 }

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ EEInit() [6/8]

override void CarScript::EEInit ( )
inlineprotected

Definition at line 27 of file Truck_01_Base.c.

28 {
29 super.EEInit();
30
31 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
32 {
34 m_UTSSettings.m_ManualUpdate = true;
35 m_UTSSettings.m_TemperatureMin = 0;
36 m_UTSSettings.m_TemperatureMax = 30;
37 m_UTSSettings.m_RangeFull = 0.5;
38 m_UTSSettings.m_RangeMax = 2;
39 m_UTSSettings.m_TemperatureCap = 25;
40
43 }
44 }

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ EEInit() [7/8]

override void CarScript::EEInit ( )
inlineprotected

Definition at line 13 of file Truck_02.c.

14 {
15 super.EEInit();
16
17 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
18 {
20 m_UTSSettings.m_ManualUpdate = true;
21 m_UTSSettings.m_TemperatureMin = 0;
22 m_UTSSettings.m_TemperatureMax = 30;
23 m_UTSSettings.m_RangeFull = 0.5;
24 m_UTSSettings.m_RangeMax = 2;
25 m_UTSSettings.m_TemperatureCap = 25;
26
29 }
30 }

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ EEInit() [8/8]

override void CarScript::EEInit ( )
inlineprotected

Definition at line 12 of file Van_01.c.

13 {
14 super.EEInit();
15
16 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
17 {
19 m_UTSSettings.m_ManualUpdate = true;
20 m_UTSSettings.m_TemperatureMin = 0;
21 m_UTSSettings.m_TemperatureMax = 30;
22 m_UTSSettings.m_RangeFull = 0.5;
23 m_UTSSettings.m_RangeMax = 2;
24 m_UTSSettings.m_TemperatureCap = 25;
25
28 }
29 }

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ EOnPostSimulate() [1/8]

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

Definition at line 61 of file CivilianSedan.c.

62 {
63 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
64 {
65 if (m_UTSource.IsActive())
67 }
68 }

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ EOnPostSimulate() [2/8]

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

Definition at line 61 of file Hatchback_02.c.

62 {
63 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
64 {
65 if (m_UTSource.IsActive())
67 }
68 }

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ EOnPostSimulate() [3/8]

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

Definition at line 61 of file Offroad_02.c.

62 {
63 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
64 {
65 if (m_UTSource.IsActive())
67 }
68 }

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ EOnPostSimulate() [4/8]

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

Definition at line 63 of file OffroadHatchback.c.

64 {
65 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
66 {
67 if (m_UTSource.IsActive())
69 }
70 }

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ EOnPostSimulate() [5/8]

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

Definition at line 61 of file Sedan_02.c.

62 {
63 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
64 {
65 if (m_UTSource.IsActive())
67 }
68 }

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ EOnPostSimulate() [6/8]

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

Definition at line 62 of file Truck_01_Base.c.

63 {
64 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
65 {
66 if (m_UTSource.IsActive())
68 }
69 }

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ EOnPostSimulate() [7/8]

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

Definition at line 48 of file Truck_02.c.

49 {
50 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
51 {
52 if (m_UTSource.IsActive())
54 }
55 }

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ EOnPostSimulate() [8/8]

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

Definition at line 47 of file Van_01.c.

48 {
49 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
50 {
51 if (m_UTSource.IsActive())
53 }
54 }

References GetGame(), m_UTSLEngine, m_UTSource, and m_UTSSettings.

◆ GetAnimInstance() [1/8]

override int CarScript::GetAnimInstance ( )
inlineprotected

Definition at line 70 of file CivilianSedan.c.

71 {
72 return VehicleAnimInstances.SEDAN;
73 }
VehicleAnimInstances

◆ GetAnimInstance() [2/8]

override int CarScript::GetAnimInstance ( )
inlineprotected

Definition at line 70 of file Hatchback_02.c.

71 {
72 return VehicleAnimInstances.GOLF;
73 }

◆ GetAnimInstance() [3/8]

override int CarScript::GetAnimInstance ( )
inlineprotected

Definition at line 70 of file Offroad_02.c.

71 {
72 return VehicleAnimInstances.HMMWV;
73 }

◆ GetAnimInstance() [4/8]

override int CarScript::GetAnimInstance ( )
inlineprotected

Definition at line 72 of file OffroadHatchback.c.

73 {
74 return VehicleAnimInstances.HATCHBACK;
75 }

◆ GetAnimInstance() [5/8]

override int CarScript::GetAnimInstance ( )
inlineprotected

Definition at line 70 of file Sedan_02.c.

71 {
72 return VehicleAnimInstances.S120;
73 }

◆ GetAnimInstance() [6/8]

override int CarScript::GetAnimInstance ( )
inlineprotected

Definition at line 81 of file Truck_01_Base.c.

82 {
83 return VehicleAnimInstances.V3S;
84 }

◆ GetAnimInstance() [7/8]

override int CarScript::GetAnimInstance ( )
inlineprotected

Definition at line 57 of file Truck_02.c.

58 {
59 return VehicleAnimInstances.MULTICAR;
60 }

◆ GetAnimInstance() [8/8]

override int CarScript::GetAnimInstance ( )
inlineprotected

Definition at line 57 of file Van_01.c.

58 {
59 return VehicleAnimInstances.CIVVAN;
60 }

◆ GetAnimSourceFromSelection() [1/8]

override string CarScript::GetAnimSourceFromSelection ( string selection)
inlineprotected

Definition at line 308 of file CivilianSedan.c.

309 {
310 switch (selection)
311 {
312 case "doors_driver":
313 return "DoorsDriver";
314 case "doors_codriver":
315 return "DoorsCoDriver";
316 case "doors_cargo1":
317 return "DoorsCargo1";
318 case "doors_cargo2":
319 return "DoorsCargo2";
320 case "doors_hood":
321 return "DoorsHood";
322 case "doors_trunk":
323 return "DoorsTrunk";
324 }
325
326 return "";
327 }

◆ GetAnimSourceFromSelection() [2/8]

override string CarScript::GetAnimSourceFromSelection ( string selection)
inlineprotected

Definition at line 284 of file Hatchback_02.c.

285 {
286 switch (selection)
287 {
288 case "doors_driver":
289 return "DoorsDriver";
290 case "doors_codriver":
291 return "DoorsCoDriver";
292 case "doors_cargo1":
293 return "DoorsCargo1";
294 case "doors_cargo2":
295 return "DoorsCargo2";
296 case "doors_hood":
297 return "DoorsHood";
298 case "doors_trunk":
299 return "DoorsTrunk";
300 }
301
302 return "";
303 }

◆ GetAnimSourceFromSelection() [3/8]

override string CarScript::GetAnimSourceFromSelection ( string selection)
inlineprotected

Definition at line 294 of file Offroad_02.c.

295 {
296 switch (selection)
297 {
298 case "doors_driver":
299 return "DoorsDriver";
300 case "doors_codriver":
301 return "DoorsCoDriver";
302 case "doors_cargo1":
303 return "DoorsCargo1";
304 case "doors_cargo2":
305 return "DoorsCargo2";
306 case "doors_hood":
307 return "DoorsHood";
308 case "doors_trunk":
309 return "DoorsTrunk";
310 }
311
312 return "";
313 }

◆ GetAnimSourceFromSelection() [4/8]

override string CarScript::GetAnimSourceFromSelection ( string selection)
inlineprotected

Definition at line 289 of file OffroadHatchback.c.

290 {
291 switch (selection)
292 {
293 case "doors_driver":
294 return "DoorsDriver";
295 case "doors_codriver":
296 return "DoorsCoDriver";
297 case "doors_hood":
298 return "DoorsHood";
299 case "doors_trunk":
300 return "DoorsTrunk";
301 case "seatback_driver":
302 return "SeatDriver";
303 case "seatback_codriver":
304 return "SeatCoDriver";
305 }
306
307 return "";
308 }

◆ GetAnimSourceFromSelection() [5/8]

override string CarScript::GetAnimSourceFromSelection ( string selection)
inlineprotected

Definition at line 304 of file Sedan_02.c.

305 {
306 switch (selection)
307 {
308 case "doors_driver":
309 return "DoorsDriver";
310 case "doors_codriver":
311 return "DoorsCoDriver";
312 case "doors_cargo1":
313 return "DoorsCargo1";
314 case "doors_cargo2":
315 return "DoorsCargo2";
316 case "doors_hood":
317 return "DoorsHood";
318 case "doors_trunk":
319 return "DoorsTrunk";
320 }
321
322 return "";
323 }

◆ GetAnimSourceFromSelection() [6/8]

override string CarScript::GetAnimSourceFromSelection ( string selection)
inlineprotected

Definition at line 247 of file Truck_01_Base.c.

248 {
249 switch (selection)
250 {
251 case "doors_driver":
252 return "DoorsDriver";
253 case "doors_codriver":
254 return "DoorsCoDriver";
255 case "doors_hood":
256 return "DoorsHood";
257 case "doors_trunk":
258 return "DoorsTrunk";
259 case "wheelsideplate1":
260 return "WheelSidePlate1";
261 case "wheelsideplate2":
262 return "WheelSidePlate2";
263 }
264
265 return "";
266 }

◆ GetAnimSourceFromSelection() [7/8]

override string CarScript::GetAnimSourceFromSelection ( string selection)
inlineprotected

Definition at line 158 of file Truck_02.c.

159 {
160 switch (selection)
161 {
162 case "doors_driver":
163 return "DoorsDriver";
164 case "doors_codriver":
165 return "DoorsCoDriver";
166 case "doors_hood":
167 return "DoorsHood";
168 case "doors_trunk":
169 return "DoorsTrunk";
170 case "wheelsideplate1":
171 return "WheelSidePlate1";
172 case "wheelsideplate2":
173 return "WheelSidePlate2";
174 }
175
176 return "";
177 }

◆ GetAnimSourceFromSelection() [8/8]

override string CarScript::GetAnimSourceFromSelection ( string selection)
inlineprotected

Definition at line 216 of file Van_01.c.

217 {
218 switch (selection)
219 {
220 case "doors_driver":
221 return "DoorsDriver";
222 case "doors_codriver":
223 return "DoorsCoDriver";
224 case "doors_cargo1":
225 return "DoorsCargo1";
226 case "doors_cargo2":
227 return "DoorsCargo2";
228 case "doors_cargo3":
229 return "DoorsCargo3";
230 case "doors_hood":
231 return "DoorsHood";
232 }
233
234 return "";
235 }

◆ GetCarDoorsState() [1/8]

override int CarScript::GetCarDoorsState ( string slotType)
inlineprotected

Definition at line 158 of file CivilianSedan.c.

159 {
161
162 Class.CastTo(carDoor, FindAttachmentBySlotName(slotType));
163 if (!carDoor)
164 return CarDoorState.DOORS_MISSING;
165
166 switch (slotType)
167 {
168 case "CivSedanDriverDoors":
169 return TranslateAnimationPhaseToCarDoorState("DoorsDriver");
170 break;
171
172 case "CivSedanCoDriverDoors":
173 return TranslateAnimationPhaseToCarDoorState("DoorsCoDriver");
174 break;
175
176 case "CivSedanCargo1Doors":
177 return TranslateAnimationPhaseToCarDoorState("DoorsCargo1");
178 break;
179
180 case "CivSedanCargo2Doors":
181 return TranslateAnimationPhaseToCarDoorState("DoorsCargo2");
182 break;
183
184 case "CivSedanTrunk":
185 return TranslateAnimationPhaseToCarDoorState("DoorsTrunk");
186 break;
187
188 case "CivSedanHood":
189 return TranslateAnimationPhaseToCarDoorState("DoorsHood");
190 break;
191 }
192
193 return CarDoorState.DOORS_MISSING;
194 }
CarDoorState TranslateAnimationPhaseToCarDoorState(string animation)
Definition CarScript.c:2241
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo(), and TranslateAnimationPhaseToCarDoorState().

Referenced by ActionLockAttachment::ActionCondition(), ActionCondition(), InventoryItemSuper::CanDetachAttachment(), CanDisplayAttachmentCategory(), CanDisplayCargo(), CanManipulateSpareWheel(), CanReleaseAttachment(), CrewCanGetThrough(), and OnSound().

◆ GetCarDoorsState() [2/8]

override int CarScript::GetCarDoorsState ( string slotType)
inlineprotected

Definition at line 152 of file Hatchback_02.c.

153 {
155
156 Class.CastTo(carDoor, FindAttachmentBySlotName(slotType));
157 if (!carDoor)
158 return CarDoorState.DOORS_MISSING;
159
160 switch (slotType)
161 {
162 case "Hatchback_02_Door_1_1":
163 return TranslateAnimationPhaseToCarDoorState("DoorsDriver");
164
165 case "Hatchback_02_Door_2_1":
166 return TranslateAnimationPhaseToCarDoorState("DoorsCoDriver");
167
168 case "Hatchback_02_Door_1_2":
169 return TranslateAnimationPhaseToCarDoorState("DoorsCargo1");
170
171 case "Hatchback_02_Door_2_2":
172 return TranslateAnimationPhaseToCarDoorState("DoorsCargo2");
173
174 case "Hatchback_02_Hood":
175 return TranslateAnimationPhaseToCarDoorState("DoorsHood");
176
177 case "Hatchback_02_Trunk":
178 return TranslateAnimationPhaseToCarDoorState("DoorsTrunk");
179 }
180
181 return CarDoorState.DOORS_MISSING;
182 }

References Class::CastTo(), and TranslateAnimationPhaseToCarDoorState().

◆ GetCarDoorsState() [3/8]

override int CarScript::GetCarDoorsState ( string slotType)
inlineprotected

Definition at line 162 of file Offroad_02.c.

163 {
165
166 Class.CastTo(carDoor, FindAttachmentBySlotName(slotType));
167 if (!carDoor)
168 return CarDoorState.DOORS_MISSING;
169
170 switch (slotType)
171 {
172 case "Offroad_02_Door_1_1":
173 return TranslateAnimationPhaseToCarDoorState("DoorsDriver");
174
175 case "Offroad_02_Door_2_1":
176 return TranslateAnimationPhaseToCarDoorState("DoorsCoDriver");
177
178 case "Offroad_02_Door_1_2":
179 return TranslateAnimationPhaseToCarDoorState("DoorsCargo1");
180
181 case "Offroad_02_Door_2_2":
182 return TranslateAnimationPhaseToCarDoorState("DoorsCargo2");
183
184 case "Offroad_02_Hood":
185 return TranslateAnimationPhaseToCarDoorState("DoorsHood");
186
187 case "Offroad_02_Trunk":
188 return TranslateAnimationPhaseToCarDoorState("DoorsTrunk");
189 }
190
191 return CarDoorState.DOORS_MISSING;
192 }

References Class::CastTo(), and TranslateAnimationPhaseToCarDoorState().

◆ GetCarDoorsState() [4/8]

override int CarScript::GetCarDoorsState ( string slotType)
inlineprotected

Definition at line 157 of file OffroadHatchback.c.

158 {
160
161 Class.CastTo(carDoor, FindAttachmentBySlotName(slotType));
162 if (!carDoor)
163 return CarDoorState.DOORS_MISSING;
164
165 switch (slotType)
166 {
167 case "NivaDriverDoors":
168 return TranslateAnimationPhaseToCarDoorState("DoorsDriver");
169
170 case "NivaCoDriverDoors":
171 return TranslateAnimationPhaseToCarDoorState("DoorsCoDriver");
172
173 case "NivaHood":
174 return TranslateAnimationPhaseToCarDoorState("DoorsHood");
175
176 case "NivaTrunk":
177 return TranslateAnimationPhaseToCarDoorState("DoorsTrunk");
178 }
179
180 return CarDoorState.DOORS_MISSING;
181 }

References Class::CastTo(), and TranslateAnimationPhaseToCarDoorState().

◆ GetCarDoorsState() [5/8]

override int CarScript::GetCarDoorsState ( string slotType)
inlineprotected

Definition at line 168 of file Sedan_02.c.

169 {
171
172 Class.CastTo(carDoor, FindAttachmentBySlotName(slotType));
173 if (!carDoor)
174 return CarDoorState.DOORS_MISSING;
175
176 switch (slotType)
177 {
178 case "Sedan_02_Door_1_1":
179 return TranslateAnimationPhaseToCarDoorState("DoorsDriver");
180
181 case "Sedan_02_Door_2_1":
182 return TranslateAnimationPhaseToCarDoorState("DoorsCoDriver");
183
184 case "Sedan_02_Door_1_2":
185 return TranslateAnimationPhaseToCarDoorState("DoorsCargo1");
186
187 case "Sedan_02_Door_2_2":
188 return TranslateAnimationPhaseToCarDoorState("DoorsCargo2");
189
190 case "Sedan_02_Hood":
191 return TranslateAnimationPhaseToCarDoorState("DoorsHood");
192
193 case "Sedan_02_Trunk":
194 return TranslateAnimationPhaseToCarDoorState("DoorsTrunk");
195 }
196
197 return CarDoorState.DOORS_MISSING;
198 }

References Class::CastTo(), and TranslateAnimationPhaseToCarDoorState().

◆ GetCarDoorsState() [6/8]

override int CarScript::GetCarDoorsState ( string slotType)
inlineprotected

Definition at line 227 of file Truck_01_Base.c.

228 {
230 Class.CastTo(carDoor, FindAttachmentBySlotName(slotType));
231 if (!carDoor)
232 return CarDoorState.DOORS_MISSING;
233
234 switch (slotType)
235 {
236 case "Truck_01_Door_1_1":
237 return TranslateAnimationPhaseToCarDoorState("DoorsDriver");
238 case "Truck_01_Door_2_1":
239 return TranslateAnimationPhaseToCarDoorState("DoorsCoDriver");
240 case "Truck_01_Hood":
241 return TranslateAnimationPhaseToCarDoorState("DoorsHood");
242 }
243
244 return CarDoorState.DOORS_MISSING;
245 }

References Class::CastTo(), and TranslateAnimationPhaseToCarDoorState().

◆ GetCarDoorsState() [7/8]

override int CarScript::GetCarDoorsState ( string slotType)
inlineprotected

Definition at line 75 of file Truck_02.c.

76 {
78
79 switch (slotType)
80 {
81 case "Truck_02_Door_1_1":
82 Class.CastTo(carDoor, FindAttachmentBySlotName(slotType));
83 if (carDoor)
84 {
85 if (GetAnimationPhase("DoorsDriver") > 0.5)
86 return CarDoorState.DOORS_OPEN;
87 else
88 return CarDoorState.DOORS_CLOSED;
89 }
90
91 return CarDoorState.DOORS_MISSING;
92 break;
93
94 case "Truck_02_Door_2_1":
95 Class.CastTo(carDoor, FindAttachmentBySlotName(slotType));
96 if (carDoor)
97 {
98 if (GetAnimationPhase("DoorsCoDriver") > 0.5)
99 return CarDoorState.DOORS_OPEN;
100 else
101 return CarDoorState.DOORS_CLOSED;
102 }
103
104 return CarDoorState.DOORS_MISSING;
105 break;
106 }
107
108 return CarDoorState.DOORS_MISSING;
109 }

References Class::CastTo().

◆ GetCarDoorsState() [8/8]

override int CarScript::GetCarDoorsState ( string slotType)
inlineprotected

Definition at line 83 of file Van_01.c.

84 {
86
87 Class.CastTo(carDoor, FindAttachmentBySlotName(slotType));
88 if (!carDoor)
89 return CarDoorState.DOORS_MISSING;
90
91 switch (slotType)
92 {
93 case "Van_01_Door_1_1":
94 if (GetAnimationPhase("DoorsDriver") > 0.5)
95 return CarDoorState.DOORS_OPEN;
96 else
97 return CarDoorState.DOORS_CLOSED;
98
99 break;
100
101 case "Van_01_Door_2_1":
102 if (GetAnimationPhase("DoorsCoDriver") > 0.5)
103 return CarDoorState.DOORS_OPEN;
104 else
105 return CarDoorState.DOORS_CLOSED;
106
107 break;
108
109 case "Van_01_Door_2_2":
110 if (GetAnimationPhase("DoorsCargo1") > 0.5)
111 return CarDoorState.DOORS_OPEN;
112 else
113 return CarDoorState.DOORS_CLOSED;
114
115 break;
116
117 case "Van_01_Trunk_1":
118 if (GetAnimationPhase("DoorsCargo3") > 0.5)
119 return CarDoorState.DOORS_OPEN;
120 else
121 return CarDoorState.DOORS_CLOSED;
122 break;
123
124 case "Van_01_Trunk_2":
125 if (GetAnimationPhase("DoorsCargo2") > 0.5)
126 return CarDoorState.DOORS_OPEN;
127 else
128 return CarDoorState.DOORS_CLOSED;
129
130 break;
131 }
132
133 return CarDoorState.DOORS_MISSING;
134 }

References Class::CastTo().

◆ GetCrewIndex()

override int CarScript::GetCrewIndex ( string selection)
inlineprotected

Definition at line 327 of file OffroadHatchback.c.

328 {
329 switch (selection)
330 {
331 case "seatback_driver":
332 return 0;
333 case "seatback_codriver":
334 return 1;
335 }
336
337 return -1;
338 }

◆ GetDoorConditionPointFromSelection() [1/2]

override string CarScript::GetDoorConditionPointFromSelection ( string selection)
inlineprotected

Definition at line 310 of file OffroadHatchback.c.

311 {
312 switch (selection)
313 {
314 case "seat_driver":
315 case "seatback_driver":
316 case "seat_cargo1":
317 return "seat_con_1_1";
318 case "seat_codriver":
319 case "seatback_codriver":
320 case "seat_cargo2":
321 return "seat_con_2_1";
322 }
323
324 return "";
325 }

Referenced by CanReachSeatFromDoors().

◆ GetDoorConditionPointFromSelection() [2/2]

override string CarScript::GetDoorConditionPointFromSelection ( string selection)
inlineprotected

Definition at line 238 of file Van_01.c.

239 {
240 switch (selection)
241 {
242 case "seat_driver":
243 return "seat_con_1_1";
244 break;
245 case "seat_codriver":
246 return "seat_con_2_1";
247 break;
248 case "seat_cargo1":
249 case "seat_cargo2":
250 case "seat_cargo3":
251 return "seat_con_1_2";
252 break;
253 }
254
255 return "";
256 };

◆ GetDoorInvSlotNameFromSeatPos() [1/6]

override string CarScript::GetDoorInvSlotNameFromSeatPos ( int posIdx)
inlineprotected

Definition at line 254 of file CivilianSedan.c.

255 {
256 switch (posIdx)
257 {
258 case 0:
259 return "CivSedanDriverDoors";
260 break;
261 case 1:
262 return "CivSedanCoDriverDoors";
263 break;
264 case 2:
265 return "CivSedanCargo1Doors";
266 break;
267 case 3:
268 return "CivSedanCargo2Doors";
269 break;
270 }
271
272 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
273 }

◆ GetDoorInvSlotNameFromSeatPos() [2/6]

override string CarScript::GetDoorInvSlotNameFromSeatPos ( int posIdx)
inlineprotected

Definition at line 238 of file Hatchback_02.c.

239 {
240 switch (posIdx)
241 {
242 case 0:
243 return "Hatchback_02_Door_1_1";
244 break;
245 case 1:
246 return "Hatchback_02_Door_2_1";
247 break;
248 case 2:
249 return "Hatchback_02_Door_1_2";
250 break;
251 case 3:
252 return "Hatchback_02_Door_2_2";
253 break;
254 }
255
256 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
257 }

◆ GetDoorInvSlotNameFromSeatPos() [3/6]

override string CarScript::GetDoorInvSlotNameFromSeatPos ( int posIdx)
inlineprotected

Definition at line 252 of file Offroad_02.c.

253 {
254 switch (posIdx)
255 {
256 case 0:
257 return "Offroad_02_Door_1_1";
258 case 1:
259 return "Offroad_02_Door_2_1";
260 case 2:
261 return "Offroad_02_Door_1_2";
262 case 3:
263 return "Offroad_02_Door_2_2";
264 }
265
266 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
267 }

◆ GetDoorInvSlotNameFromSeatPos() [4/6]

override string CarScript::GetDoorInvSlotNameFromSeatPos ( int posIdx)
inlineprotected

Definition at line 239 of file OffroadHatchback.c.

240 {
241 switch (posIdx)
242 {
243 case 0:
244 case 2:
245 return "NivaDriverDoors";
246 case 1:
247 case 3:
248 return "NivaCoDriverDoors";
249 }
250
251 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
252 }

◆ GetDoorInvSlotNameFromSeatPos() [5/6]

override string CarScript::GetDoorInvSlotNameFromSeatPos ( int posIdx)
inlineprotected

Definition at line 258 of file Sedan_02.c.

259 {
260 switch (posIdx)
261 {
262 case 0:
263 return "Sedan_02_Door_1_1";
264 break;
265 case 1:
266 return "Sedan_02_Door_2_1";
267 break;
268 case 2:
269 return "Sedan_02_Door_1_2";
270 break;
271 case 3:
272 return "Sedan_02_Door_2_2";
273 break;
274 }
275
276 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
277 }

◆ GetDoorInvSlotNameFromSeatPos() [6/6]

override string CarScript::GetDoorInvSlotNameFromSeatPos ( int posIdx)
inlineprotected

Definition at line 169 of file Truck_01_Base.c.

170 {
171 switch (posIdx)
172 {
173 case 0:
174 return "Truck_01_Door_1_1";
175 break;
176 case 1:
177 return "Truck_01_Door_2_1";
178 break;
179 }
180
181 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
182 }

◆ GetDoorSelectionNameFromSeatPos() [1/6]

override string CarScript::GetDoorSelectionNameFromSeatPos ( int posIdx)
inlineprotected

Definition at line 233 of file CivilianSedan.c.

234 {
235 switch (posIdx)
236 {
237 case 0:
238 return "doors_driver";
239 break;
240 case 1:
241 return "doors_codriver";
242 break;
243 case 2:
244 return "doors_cargo1";
245 break;
246 case 3:
247 return "doors_cargo2";
248 break;
249 }
250
251 return super.GetDoorSelectionNameFromSeatPos(posIdx);
252 }

◆ GetDoorSelectionNameFromSeatPos() [2/6]

override string CarScript::GetDoorSelectionNameFromSeatPos ( int posIdx)
inlineprotected

Definition at line 217 of file Hatchback_02.c.

218 {
219 switch (posIdx)
220 {
221 case 0:
222 return "doors_driver";
223 break;
224 case 1:
225 return "doors_codriver";
226 break;
227 case 2:
228 return "doors_cargo1";
229 break;
230 case 3:
231 return "doors_cargo2";
232 break;
233 }
234
235 return super.GetDoorSelectionNameFromSeatPos(posIdx);
236 }

◆ GetDoorSelectionNameFromSeatPos() [3/6]

override string CarScript::GetDoorSelectionNameFromSeatPos ( int posIdx)
inlineprotected

Definition at line 231 of file Offroad_02.c.

232 {
233 switch (posIdx)
234 {
235 case 0:
236 return "doors_driver";
237 break;
238 case 1:
239 return "doors_codriver";
240 break;
241 case 2:
242 return "doors_cargo1";
243 break;
244 case 3:
245 return "doors_cargo2";
246 break;
247 }
248
249 return super.GetDoorSelectionNameFromSeatPos(posIdx);
250 }

◆ GetDoorSelectionNameFromSeatPos() [4/6]

override string CarScript::GetDoorSelectionNameFromSeatPos ( int posIdx)
inlineprotected

Definition at line 224 of file OffroadHatchback.c.

225 {
226 switch (posIdx)
227 {
228 case 0:
229 case 2:
230 return "doors_driver";
231 case 1:
232 case 3:
233 return "doors_codriver";
234 }
235
236 return super.GetDoorSelectionNameFromSeatPos(posIdx);
237 }

◆ GetDoorSelectionNameFromSeatPos() [5/6]

override string CarScript::GetDoorSelectionNameFromSeatPos ( int posIdx)
inlineprotected

Definition at line 237 of file Sedan_02.c.

238 {
239 switch (posIdx)
240 {
241 case 0:
242 return "doors_driver";
243 break;
244 case 1:
245 return "doors_codriver";
246 break;
247 case 2:
248 return "doors_cargo1";
249 break;
250 case 3:
251 return "doors_cargo2";
252 break;
253 }
254
255 return super.GetDoorSelectionNameFromSeatPos(posIdx);
256 }

◆ GetDoorSelectionNameFromSeatPos() [6/6]

override string CarScript::GetDoorSelectionNameFromSeatPos ( int posIdx)
inlineprotected

Definition at line 154 of file Truck_01_Base.c.

155 {
156 switch (posIdx)
157 {
158 case 0:
159 return "doors_driver";
160 break;
161 case 1:
162 return "doors_codriver";
163 break;
164 }
165
166 return super.GetDoorSelectionNameFromSeatPos(posIdx);
167 }

◆ GetPushForceCoefficientMultiplier()

override float CarScript::GetPushForceCoefficientMultiplier ( )
inlineprotected

Definition at line 402 of file CivilianSedan.c.

403 {
404 return 1.5;
405 }

◆ GetSeatAnimationType() [1/8]

override int CarScript::GetSeatAnimationType ( int posIdx)
inlineprotected

Definition at line 80 of file CivilianSedan.c.

81 {
82 switch (posIdx)
83 {
84 case 0:
85 return DayZPlayerConstants.VEHICLESEAT_DRIVER;
86 case 1:
87 return DayZPlayerConstants.VEHICLESEAT_CODRIVER;
88 case 2:
89 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_L;
90 case 3:
91 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_R;
92 }
93
94 return 0;
95 }
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

◆ GetSeatAnimationType() [2/8]

override int CarScript::GetSeatAnimationType ( int posIdx)
inlineprotected

Definition at line 75 of file Hatchback_02.c.

76 {
77 switch (posIdx)
78 {
79 case 0:
80 return DayZPlayerConstants.VEHICLESEAT_DRIVER;
81 case 1:
82 return DayZPlayerConstants.VEHICLESEAT_CODRIVER;
83 case 2:
84 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_L;
85 case 3:
86 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_R;
87 }
88
89 return 0;
90 }

◆ GetSeatAnimationType() [3/8]

override int CarScript::GetSeatAnimationType ( int posIdx)
inlineprotected

Definition at line 80 of file Offroad_02.c.

81 {
82 switch (posIdx)
83 {
84 case 0:
85 return DayZPlayerConstants.VEHICLESEAT_DRIVER;
86 case 1:
87 return DayZPlayerConstants.VEHICLESEAT_CODRIVER;
88 case 2:
89 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_L;
90 case 3:
91 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_R;
92 }
93
94 return 0;
95 }

◆ GetSeatAnimationType() [4/8]

override int CarScript::GetSeatAnimationType ( int posIdx)
inlineprotected

Definition at line 82 of file OffroadHatchback.c.

83 {
84 switch (posIdx)
85 {
86 case 0:
87 return DayZPlayerConstants.VEHICLESEAT_DRIVER;
88 case 1:
89 return DayZPlayerConstants.VEHICLESEAT_CODRIVER;
90 case 2:
91 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_L;
92 case 3:
93 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_R;
94 }
95
96 return 0;
97
98 }

◆ GetSeatAnimationType() [5/8]

override int CarScript::GetSeatAnimationType ( int posIdx)
inlineprotected

Definition at line 75 of file Sedan_02.c.

76 {
77 switch (posIdx)
78 {
79 case 0:
80 return DayZPlayerConstants.VEHICLESEAT_DRIVER;
81 case 1:
82 return DayZPlayerConstants.VEHICLESEAT_CODRIVER;
83 case 2:
84 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_L;
85 case 3:
86 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_R;
87 }
88
89 return 0;
90 }

◆ GetSeatAnimationType() [6/8]

override int CarScript::GetSeatAnimationType ( int posIdx)
inlineprotected

Definition at line 86 of file Truck_01_Base.c.

87 {
88 switch (posIdx)
89 {
90 case 0:
91 return DayZPlayerConstants.VEHICLESEAT_DRIVER;
92 case 1:
93 return DayZPlayerConstants.VEHICLESEAT_CODRIVER;
94 }
95
96 return 0;
97 }

◆ GetSeatAnimationType() [7/8]

override int CarScript::GetSeatAnimationType ( int posIdx)
inlineprotected

Definition at line 62 of file Truck_02.c.

63 {
64 switch (posIdx)
65 {
66 case 0:
67 return DayZPlayerConstants.VEHICLESEAT_DRIVER;
68 case 1:
69 return DayZPlayerConstants.VEHICLESEAT_CODRIVER;
70 }
71
72 return 0;
73 }

◆ GetSeatAnimationType() [8/8]

override int CarScript::GetSeatAnimationType ( int posIdx)
inlineprotected

Definition at line 63 of file Van_01.c.

64 {
65 switch (posIdx)
66 {
67 case 0:
68 return DayZPlayerConstants.VEHICLESEAT_DRIVER;
69 case 1:
70 return DayZPlayerConstants.VEHICLESEAT_CODRIVER;
71 case 2:
72 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_L;
73 case 3:
74 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_L;
75 case 4:
76 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_L;
77 }
78
79 return 0;
80 }

◆ GetSeatIndexFromDoor() [1/3]

override int CarScript::GetSeatIndexFromDoor ( string pDoorSelection)
inlineprotected

Definition at line 396 of file OffroadHatchback.c.

397 {
398 switch (pDoorSelection)
399 {
400 case "DoorsDriver":
401 return 0;
402 case "DoorsCoDriver":
403 return 1;
404 }
405
406 return -1;
407 }

◆ GetSeatIndexFromDoor() [2/3]

override int CarScript::GetSeatIndexFromDoor ( string pDoorSelection)
inlineprotected

Definition at line 295 of file Truck_01_Base.c.

296 {
297 switch (pDoorSelection)
298 {
299 case "DoorsDriver":
300 return 0;
301
302 case "DoorsCoDriver":
303 return 1;
304 }
305
306 return -1;
307 }

◆ GetSeatIndexFromDoor() [3/3]

override int CarScript::GetSeatIndexFromDoor ( string pDoorSelection)
inlineprotected

Definition at line 240 of file Truck_02.c.

241 {
242 switch (pDoorSelection)
243 {
244 case "DoorsDriver":
245 return 0;
246 break;
247 case "DoorsCoDriver":
248 return 1;
249 break;
250 }
251 return -1;
252 }

◆ GetTransportCameraDistance() [1/4]

override float CarScript::GetTransportCameraDistance ( )
inlineprotected

Definition at line 75 of file CivilianSedan.c.

76 {
77 return 4.5;
78 }

◆ GetTransportCameraDistance() [2/4]

override float CarScript::GetTransportCameraDistance ( )
inlineprotected

Definition at line 75 of file Offroad_02.c.

76 {
77 return 5.1;
78 }

◆ GetTransportCameraDistance() [3/4]

override float CarScript::GetTransportCameraDistance ( )
inlineprotected

Definition at line 77 of file OffroadHatchback.c.

78 {
79 return 3.5;
80 }

◆ GetTransportCameraDistance() [4/4]

override float CarScript::GetTransportCameraDistance ( )
inlineprotected

Definition at line 71 of file Truck_01_Base.c.

72 {
73 return 6.5;
74 }

◆ GetTransportCameraOffset()

override vector CarScript::GetTransportCameraOffset ( )
inlineprotected

Definition at line 76 of file Truck_01_Base.c.

77 {
78 return "0 3.2 0";
79 }

◆ Hatchback_02()

void CarScript::Hatchback_02 ( )
inlineprotected

Definition at line 7 of file Hatchback_02.c.

8 {
9 //m_dmgContactCoef = 0.070;
10
11 m_EngineStartOK = "Hatchback_02_engine_start_SoundSet";
12 m_EngineStartBattery = "Hatchback_02_engine_failed_start_battery_SoundSet";
13 m_EngineStartPlug = "Hatchback_02_engine_failed_start_sparkplugs_SoundSet";
14 m_EngineStartFuel = "Hatchback_02_engine_failed_start_fuel_SoundSet";
15 m_EngineStopFuel = "offroad_engine_stop_fuel_SoundSet";
16
17 m_CarDoorOpenSound = "offroad_door_open_SoundSet";
18 m_CarDoorCloseSound = "offroad_door_close_SoundSet";
19
20 m_CarHornShortSoundName = "Hatchback_02_Horn_Short_SoundSet";
21 m_CarHornLongSoundName = "Hatchback_02_Horn_SoundSet";
22
23 SetEnginePos("0 0.7 1.4");
24 }

References m_CarDoorCloseSound, m_CarDoorOpenSound, m_CarHornLongSoundName, m_CarHornShortSoundName, m_EngineStartBattery, m_EngineStartFuel, m_EngineStartOK, m_EngineStartPlug, and m_EngineStopFuel.

◆ IsVitalCarBattery() [1/2]

override bool CarScript::IsVitalCarBattery ( )
inlineprotected

Definition at line 310 of file Truck_01_Base.c.

311 {
312 return false;
313 }

Referenced by EOnPostSimulate(), GetBattery(), OnBeforeEngineStart(), and SpawnUniversalParts().

◆ IsVitalCarBattery() [2/2]

override bool CarScript::IsVitalCarBattery ( )
inlineprotected

Definition at line 179 of file Truck_02.c.

180 {
181 return false;
182 }

◆ IsVitalEngineBelt() [1/2]

override bool CarScript::IsVitalEngineBelt ( )
inlineprotected

Definition at line 325 of file Truck_01_Base.c.

326 {
327 return false;
328 }

◆ IsVitalEngineBelt() [2/2]

override bool CarScript::IsVitalEngineBelt ( )
inlineprotected

Definition at line 194 of file Truck_02.c.

195 {
196 return false;
197 }

◆ IsVitalGlowPlug() [1/7]

override bool CarScript::IsVitalGlowPlug ( )
inlineprotected

Definition at line 334 of file CivilianSedan.c.

335 {
336 return false;
337 }

Referenced by EOnPostSimulate(), OnBeforeEngineStart(), and SpawnUniversalParts().

◆ IsVitalGlowPlug() [2/7]

override bool CarScript::IsVitalGlowPlug ( )
inlineprotected

Definition at line 311 of file Hatchback_02.c.

312 {
313 return false;
314 }

◆ IsVitalGlowPlug() [3/7]

override bool CarScript::IsVitalGlowPlug ( )
inlineprotected

Definition at line 345 of file OffroadHatchback.c.

346 {
347 return false;
348 }

◆ IsVitalGlowPlug() [4/7]

override bool CarScript::IsVitalGlowPlug ( )
inlineprotected

Definition at line 331 of file Sedan_02.c.

332 {
333 return false;
334 }

◆ IsVitalGlowPlug() [5/7]

override bool CarScript::IsVitalGlowPlug ( )
inlineprotected

Definition at line 320 of file Truck_01_Base.c.

321 {
322 return false;
323 }

◆ IsVitalGlowPlug() [6/7]

override bool CarScript::IsVitalGlowPlug ( )
inlineprotected

Definition at line 189 of file Truck_02.c.

190 {
191 return false;
192 }

◆ IsVitalGlowPlug() [7/7]

override bool CarScript::IsVitalGlowPlug ( )
inlineprotected

Definition at line 265 of file Van_01.c.

266 {
267 return false;
268 }

◆ IsVitalRadiator() [1/3]

override bool CarScript::IsVitalRadiator ( )
inlineprotected

Definition at line 359 of file Offroad_02.c.

360 {
361 return false;
362 }

Referenced by EOnPostSimulate(), Hud::RefreshVehicleHud(), and SpawnUniversalParts().

◆ IsVitalRadiator() [2/3]

override bool CarScript::IsVitalRadiator ( )
inlineprotected

Definition at line 330 of file Truck_01_Base.c.

331 {
332 return false;
333 }

◆ IsVitalRadiator() [3/3]

override bool CarScript::IsVitalRadiator ( )
inlineprotected

Definition at line 199 of file Truck_02.c.

200 {
201 return false;
202 }

◆ IsVitalSparkPlug() [1/3]

override bool CarScript::IsVitalSparkPlug ( )
inlineprotected

Definition at line 354 of file Offroad_02.c.

355 {
356 return false;
357 }

Referenced by EOnPostSimulate(), OnBeforeEngineStart(), and SpawnUniversalParts().

◆ IsVitalSparkPlug() [2/3]

override bool CarScript::IsVitalSparkPlug ( )
inlineprotected

Definition at line 315 of file Truck_01_Base.c.

316 {
317 return false;
318 }

◆ IsVitalSparkPlug() [3/3]

override bool CarScript::IsVitalSparkPlug ( )
inlineprotected

Definition at line 184 of file Truck_02.c.

185 {
186 return false;
187 }

◆ IsVitalTruckBattery() [1/6]

override bool CarScript::IsVitalTruckBattery ( )
inlineprotected

Definition at line 329 of file CivilianSedan.c.

330 {
331 return false;
332 }

Referenced by EOnPostSimulate(), GetBattery(), OnBeforeEngineStart(), and SpawnUniversalParts().

◆ IsVitalTruckBattery() [2/6]

override bool CarScript::IsVitalTruckBattery ( )
inlineprotected

Definition at line 306 of file Hatchback_02.c.

307 {
308 return false;
309 }

◆ IsVitalTruckBattery() [3/6]

override bool CarScript::IsVitalTruckBattery ( )
inlineprotected

Definition at line 349 of file Offroad_02.c.

350 {
351 return false;
352 }

◆ IsVitalTruckBattery() [4/6]

override bool CarScript::IsVitalTruckBattery ( )
inlineprotected

Definition at line 340 of file OffroadHatchback.c.

341 {
342 return false;
343 }

◆ IsVitalTruckBattery() [5/6]

override bool CarScript::IsVitalTruckBattery ( )
inlineprotected

Definition at line 326 of file Sedan_02.c.

327 {
328 return false;
329 }

◆ IsVitalTruckBattery() [6/6]

override bool CarScript::IsVitalTruckBattery ( )
inlineprotected

Definition at line 259 of file Van_01.c.

260 {
261 return false;
262 }

◆ Offroad_02()

void CarScript::Offroad_02 ( )
inlineprotected

Definition at line 7 of file Offroad_02.c.

8 {
9 //m_dmgContactCoef = 0.0365;
10
11 m_EngineStartOK = "Offroad_02_engine_start_SoundSet";
12 m_EngineStartBattery = "Offroad_02_engine_failed_start_battery_SoundSet";
13 m_EngineStartPlug = "Offroad_02_engine_failed_start_sparkplugs_SoundSet";
14 m_EngineStartFuel = "Offroad_02_engine_failed_start_fuel_SoundSet";
15 m_EngineStopFuel = "offroad_engine_stop_fuel_SoundSet";
16
17 m_CarDoorOpenSound = "offroad_02_door_open_SoundSet";
18 m_CarDoorCloseSound = "offroad_02_door_close_SoundSet";
19
20 m_CarHornShortSoundName = "Offroad_02_Horn_Short_SoundSet";
21 m_CarHornLongSoundName = "Offroad_02_Horn_SoundSet";
22
23 SetEnginePos("0 0.7 1.7");
24 }

References m_CarDoorCloseSound, m_CarDoorOpenSound, m_CarHornLongSoundName, m_CarHornShortSoundName, m_EngineStartBattery, m_EngineStartFuel, m_EngineStartOK, m_EngineStartPlug, and m_EngineStopFuel.

◆ OffroadHatchback()

void CarScript::OffroadHatchback ( )
inlineprotected

Definition at line 7 of file OffroadHatchback.c.

8 {
9 //m_dmgContactCoef = 0.075;
10
11 m_EngineStartOK = "offroad_engine_start_SoundSet";
12 m_EngineStartBattery = "offroad_engine_failed_start_battery_SoundSet";
13 m_EngineStartPlug = "offroad_engine_failed_start_sparkplugs_SoundSet";
14 m_EngineStartFuel = "offroad_engine_failed_start_fuel_SoundSet";
15 m_EngineStopFuel = "offroad_engine_stop_fuel_SoundSet";
16
17 m_CarDoorOpenSound = "offroad_door_open_SoundSet";
18 m_CarDoorCloseSound = "offroad_door_close_SoundSet";
19 m_CarSeatShiftInSound = "Offroad_SeatShiftIn_SoundSet";
20 m_CarSeatShiftOutSound = "Offroad_SeatShiftOut_SoundSet";
21
22 m_CarHornShortSoundName = "Offroad_Horn_Short_SoundSet";
23 m_CarHornLongSoundName = "Offroad_Horn_SoundSet";
24
25 SetEnginePos("0 0.7 1.2");
26 }
string m_CarSeatShiftInSound
Definition CarScript.c:215
string m_CarSeatShiftOutSound
Definition CarScript.c:216

References m_CarDoorCloseSound, m_CarDoorOpenSound, m_CarHornLongSoundName, m_CarHornShortSoundName, m_CarSeatShiftInSound, m_CarSeatShiftOutSound, m_EngineStartBattery, m_EngineStartFuel, m_EngineStartOK, m_EngineStartPlug, and m_EngineStopFuel.

◆ OnAnimationPhaseStarted()

override void CarScript::OnAnimationPhaseStarted ( string animSource,
float phase )
inlineprotected

Definition at line 205 of file Truck_01_Base.c.

206 {
207 super.OnAnimationPhaseStarted(animSource, phase);
208
209#ifndef SERVER
210 switch (animSource)
211 {
212 case "wheelsideplate1":
213 case "wheelsideplate2":
215 if (phase == 0)
216 sound = SEffectManager.PlaySound("Truck_01_Gear_Open_Side_Plate_SoundSet", GetPosition(), 0.1, 0.1);
217 else
218 sound = SEffectManager.PlaySound("Truck_01_Gear_Close_Side_Plate_SoundSet", GetPosition(), 0.1, 0.1);
219
220 if (sound)
221 sound.SetAutodestroy(true);
222 break;
223 }
224#endif
225 }
class JsonUndergroundAreaTriggerData GetPosition
Wrapper class for managing sound through SEffectManager.
Definition EffectSound.c:5
Manager class for managing Effect (EffectParticle, EffectSound)
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.

References GetPosition, and SEffectManager::PlaySound().

◆ OnDebugSpawn() [1/7]

override void CarScript::OnDebugSpawn ( )
inlineprotected

Definition at line 379 of file CivilianSedan.c.

380 {
384
385 GetInventory().CreateInInventory("CivSedanWheel");
386 GetInventory().CreateInInventory("CivSedanWheel");
387 GetInventory().CreateInInventory("CivSedanWheel");
388 GetInventory().CreateInInventory("CivSedanWheel");
389
390 GetInventory().CreateInInventory("CivSedanDoors_Driver");
391 GetInventory().CreateInInventory("CivSedanDoors_CoDriver");
392 GetInventory().CreateInInventory("CivSedanDoors_BackLeft");
393 GetInventory().CreateInInventory("CivSedanDoors_BackRight");
394 GetInventory().CreateInInventory("CivSedanHood");
395 GetInventory().CreateInInventory("CivSedanTrunk");
396
397 //-----IN CAR CARGO
398 GetInventory().CreateInInventory("CivSedanWheel");
399 GetInventory().CreateInInventory("CivSedanWheel");
400 }
void SpawnUniversalParts()
Definition CarScript.c:2516
void SpawnAdditionalItems()
Definition CarScript.c:2554
void FillUpCarFluids()
Definition CarScript.c:2578

References FillUpCarFluids(), SpawnAdditionalItems(), and SpawnUniversalParts().

◆ OnDebugSpawn() [2/7]

override void CarScript::OnDebugSpawn ( )
inlineprotected

Definition at line 350 of file Hatchback_02.c.

351 {
355
356 GetInventory().CreateInInventory("Hatchback_02_Wheel");
357 GetInventory().CreateInInventory("Hatchback_02_Wheel");
358 GetInventory().CreateInInventory("Hatchback_02_Wheel");
359 GetInventory().CreateInInventory("Hatchback_02_Wheel");
360
361 GetInventory().CreateInInventory("Hatchback_02_Door_1_1");
362 GetInventory().CreateInInventory("Hatchback_02_Door_1_2");
363 GetInventory().CreateInInventory("Hatchback_02_Door_2_1");
364 GetInventory().CreateInInventory("Hatchback_02_Door_2_2");
365 GetInventory().CreateInInventory("Hatchback_02_Hood");
366 GetInventory().CreateInInventory("Hatchback_02_Trunk");
367
368 //-----IN CAR CARGO
369 GetInventory().CreateInInventory("Hatchback_02_Wheel");
370 GetInventory().CreateInInventory("Hatchback_02_Wheel");
371 }

References FillUpCarFluids(), SpawnAdditionalItems(), and SpawnUniversalParts().

◆ OnDebugSpawn() [3/7]

override void CarScript::OnDebugSpawn ( )
inlineprotected

Definition at line 364 of file Offroad_02.c.

365 {
369
370 GetInventory().CreateInInventory("Offroad_02_Wheel");
371 GetInventory().CreateInInventory("Offroad_02_Wheel");
372 GetInventory().CreateInInventory("Offroad_02_Wheel");
373 GetInventory().CreateInInventory("Offroad_02_Wheel");
374
375 GetInventory().CreateInInventory("Offroad_02_Door_1_1");
376 GetInventory().CreateInInventory("Offroad_02_Door_1_2");
377 GetInventory().CreateInInventory("Offroad_02_Door_2_1");
378 GetInventory().CreateInInventory("Offroad_02_Door_2_2");
379 GetInventory().CreateInInventory("Offroad_02_Hood");
380 GetInventory().CreateInInventory("Offroad_02_Trunk");
381
382 //-----IN CAR CARGO
383 GetInventory().CreateInInventory("Offroad_02_Wheel");
384 GetInventory().CreateInInventory("Offroad_02_Wheel");
385 }

References FillUpCarFluids(), SpawnAdditionalItems(), and SpawnUniversalParts().

◆ OnDebugSpawn() [4/7]

override void CarScript::OnDebugSpawn ( )
inlineprotected

Definition at line 416 of file OffroadHatchback.c.

417 {
421
422 GetInventory().CreateInInventory("HatchbackWheel");
423 GetInventory().CreateInInventory("HatchbackWheel");
424 GetInventory().CreateInInventory("HatchbackWheel");
425 GetInventory().CreateInInventory("HatchbackWheel");
426
427 GetInventory().CreateInInventory("HatchbackDoors_Driver");
428 GetInventory().CreateInInventory("HatchbackDoors_CoDriver");
429 GetInventory().CreateInInventory("HatchbackHood");
430 GetInventory().CreateInInventory("HatchbackTrunk");
431
432 //-----IN CAR CARGO
433 GetInventory().CreateInInventory("HatchbackWheel");
434 GetInventory().CreateInInventory("HatchbackWheel");
435 }

References FillUpCarFluids(), SpawnAdditionalItems(), and SpawnUniversalParts().

◆ OnDebugSpawn() [5/7]

override void CarScript::OnDebugSpawn ( )
inlineprotected

Definition at line 376 of file Sedan_02.c.

377 {
381
382 GetInventory().CreateInInventory("Sedan_02_Wheel");
383 GetInventory().CreateInInventory("Sedan_02_Wheel");
384 GetInventory().CreateInInventory("Sedan_02_Wheel");
385 GetInventory().CreateInInventory("Sedan_02_Wheel");
386 GetInventory().CreateInInventory("Sedan_02_Wheel");
387
388 GetInventory().CreateInInventory("Sedan_02_Door_1_1");
389 GetInventory().CreateInInventory("Sedan_02_Door_1_2");
390 GetInventory().CreateInInventory("Sedan_02_Door_2_1");
391 GetInventory().CreateInInventory("Sedan_02_Door_2_2");
392 GetInventory().CreateInInventory("Sedan_02_Hood");
393 GetInventory().CreateInInventory("Sedan_02_Trunk");
394
395 //-----IN CAR CARGO
396 GetInventory().CreateInInventory("Sedan_02_Wheel");
397 GetInventory().CreateInInventory("Sedan_02_Wheel");
398 }

References FillUpCarFluids(), SpawnAdditionalItems(), and SpawnUniversalParts().

◆ OnDebugSpawn() [6/7]

override void CarScript::OnDebugSpawn ( )
inlineprotected

Definition at line 347 of file Truck_01_Base.c.

348 {
352
353 GetInventory().CreateInInventory("Truck_01_Wheel");
354 GetInventory().CreateInInventory("Truck_01_Wheel");
355
356 GetInventory().CreateInInventory("Truck_01_WheelDouble");
357 GetInventory().CreateInInventory("Truck_01_WheelDouble");
358 GetInventory().CreateInInventory("Truck_01_WheelDouble");
359 GetInventory().CreateInInventory("Truck_01_WheelDouble");
360
361 GetInventory().CreateInInventory("Truck_01_Door_1_1");
362 GetInventory().CreateInInventory("Truck_01_Door_2_1");
363 GetInventory().CreateInInventory("Truck_01_Hood");
364
365 //-----IN CAR CARGO
366 GetInventory().CreateInInventory("Truck_01_Wheel");
367 GetInventory().CreateInInventory("Truck_01_Wheel");
368 GetInventory().CreateInInventory("Truck_01_WheelDouble");
369 GetInventory().CreateInInventory("Truck_01_WheelDouble");
370 }

References FillUpCarFluids(), SpawnAdditionalItems(), and SpawnUniversalParts().

◆ OnDebugSpawn() [7/7]

override void CarScript::OnDebugSpawn ( )
inlineprotected

Definition at line 254 of file Truck_02.c.

255 {
257
258 if (Class.CastTo(entity, this))
259 {
260 entity.GetInventory().CreateInInventory("Truck_02_Wheel");
261 entity.GetInventory().CreateInInventory("Truck_02_Wheel");
262 entity.GetInventory().CreateInInventory("Truck_02_Wheel");
263 entity.GetInventory().CreateInInventory("Truck_02_Wheel");
264
265 entity.GetInventory().CreateInInventory("TruckBattery");
266 entity.GetInventory().CreateInInventory("SparkPlug");
267
268 entity.GetInventory().CreateInInventory("Truck_02_Door_1_1");
269 entity.GetInventory().CreateInInventory("Truck_02_Door_2_1");
270
271 entity.GetInventory().CreateInInventory("HeadlightH7");
272 entity.GetInventory().CreateInInventory("HeadlightH7");
273 }
274
275 Fill(CarFluid.FUEL, 50);
276 Fill(CarFluid.OIL, 4.0);
277 };
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
Definition Car.c:18

References Class::CastTo().

◆ OnEngineStart() [1/8]

override void CarScript::OnEngineStart ( )
inlineprotected

Definition at line 45 of file CivilianSedan.c.

46 {
47 super.OnEngineStart();
48
49 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
50 m_UTSource.SetDefferedActive(true, 20.0);
51 }

References GetGame(), and m_UTSource.

◆ OnEngineStart() [2/8]

override void CarScript::OnEngineStart ( )
inlineprotected

Definition at line 45 of file Hatchback_02.c.

46 {
47 super.OnEngineStart();
48
49 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
50 m_UTSource.SetDefferedActive(true, 20.0);
51 }

References GetGame(), and m_UTSource.

◆ OnEngineStart() [3/8]

override void CarScript::OnEngineStart ( )
inlineprotected

Definition at line 45 of file Offroad_02.c.

46 {
47 super.OnEngineStart();
48
49 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
50 m_UTSource.SetDefferedActive(true, 20.0);
51 }

References GetGame(), and m_UTSource.

◆ OnEngineStart() [4/8]

override void CarScript::OnEngineStart ( )
inlineprotected

Definition at line 47 of file OffroadHatchback.c.

48 {
49 super.OnEngineStart();
50
51 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
52 m_UTSource.SetDefferedActive(true, 20.0);
53 }

References GetGame(), and m_UTSource.

◆ OnEngineStart() [5/8]

override void CarScript::OnEngineStart ( )
inlineprotected

Definition at line 45 of file Sedan_02.c.

46 {
47 super.OnEngineStart();
48
49 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
50 m_UTSource.SetDefferedActive(true, 20.0);
51 }

References GetGame(), and m_UTSource.

◆ OnEngineStart() [6/8]

override void CarScript::OnEngineStart ( )
inlineprotected

Definition at line 46 of file Truck_01_Base.c.

47 {
48 super.OnEngineStart();
49
50 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
51 m_UTSource.SetDefferedActive(true, 20.0);
52 }

References GetGame(), and m_UTSource.

◆ OnEngineStart() [7/8]

override void CarScript::OnEngineStart ( )
inlineprotected

Definition at line 32 of file Truck_02.c.

33 {
34 super.OnEngineStart();
35
36 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
37 m_UTSource.SetDefferedActive(true, 20.0);
38 }

References GetGame(), and m_UTSource.

◆ OnEngineStart() [8/8]

override void CarScript::OnEngineStart ( )
inlineprotected

Definition at line 31 of file Van_01.c.

32 {
33 super.OnEngineStart();
34
35 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
36 m_UTSource.SetDefferedActive(true, 20.0);
37 }

References GetGame(), and m_UTSource.

◆ OnEngineStop() [1/8]

override void CarScript::OnEngineStop ( )
inlineprotected

Definition at line 53 of file CivilianSedan.c.

54 {
55 super.OnEngineStop();
56
57 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
58 m_UTSource.SetDefferedActive(false, 10.0);
59 }

References GetGame(), and m_UTSource.

◆ OnEngineStop() [2/8]

override void CarScript::OnEngineStop ( )
inlineprotected

Definition at line 53 of file Hatchback_02.c.

54 {
55 super.OnEngineStop();
56
57 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
58 m_UTSource.SetDefferedActive(false, 10.0);
59 }

References GetGame(), and m_UTSource.

◆ OnEngineStop() [3/8]

override void CarScript::OnEngineStop ( )
inlineprotected

Definition at line 53 of file Offroad_02.c.

54 {
55 super.OnEngineStop();
56
57 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
58 m_UTSource.SetDefferedActive(false, 10.0);
59 }

References GetGame(), and m_UTSource.

◆ OnEngineStop() [4/8]

override void CarScript::OnEngineStop ( )
inlineprotected

Definition at line 55 of file OffroadHatchback.c.

56 {
57 super.OnEngineStop();
58
59 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
60 m_UTSource.SetDefferedActive(false, 10.0);
61 }

References GetGame(), and m_UTSource.

◆ OnEngineStop() [5/8]

override void CarScript::OnEngineStop ( )
inlineprotected

Definition at line 53 of file Sedan_02.c.

54 {
55 super.OnEngineStop();
56
57 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
58 m_UTSource.SetDefferedActive(false, 10.0);
59 }

References GetGame(), and m_UTSource.

◆ OnEngineStop() [6/8]

override void CarScript::OnEngineStop ( )
inlineprotected

Definition at line 54 of file Truck_01_Base.c.

55 {
56 super.OnEngineStop();
57
58 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
59 m_UTSource.SetDefferedActive(false, 10.0);
60 }

References GetGame(), and m_UTSource.

◆ OnEngineStop() [7/8]

override void CarScript::OnEngineStop ( )
inlineprotected

Definition at line 40 of file Truck_02.c.

41 {
42 super.OnEngineStop();
43
44 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
45 m_UTSource.SetDefferedActive(false, 10.0);
46 }

References GetGame(), and m_UTSource.

◆ OnEngineStop() [8/8]

override void CarScript::OnEngineStop ( )
inlineprotected

Definition at line 39 of file Van_01.c.

40 {
41 super.OnEngineStop();
42
43 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
44 m_UTSource.SetDefferedActive(false, 10.0);
45 }

References GetGame(), and m_UTSource.

◆ OnSound() [1/8]

override float CarScript::OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected

Definition at line 277 of file CivilianSedan.c.

278 {
279 switch (ctrl)
280 {
281 case CarSoundCtrl.DOORS:
282 float newValue = 0;
283 if (GetCarDoorsState("CivSedanDriverDoors") == CarDoorState.DOORS_CLOSED)
284 newValue += 0.25;
285
286 if (GetCarDoorsState("CivSedanCoDriverDoors") == CarDoorState.DOORS_CLOSED)
287 newValue += 0.25;
288
289 if (GetCarDoorsState("CivSedanCargo1Doors") == CarDoorState.DOORS_CLOSED)
290 newValue += 0.25;
291
292 if (GetCarDoorsState("CivSedanCargo2Doors") == CarDoorState.DOORS_CLOSED)
293 newValue += 0.25;
294
295 if (GetHealthLevel("WindowFront") == GameConstants.STATE_RUINED)
296 newValue -= 0.6;
297
298 if (GetHealthLevel("WindowBack") == GameConstants.STATE_RUINED)
299 newValue -= 0.6;
300
301 return Math.Clamp(newValue, 0, 1);
302 break;
303 }
304
305 return super.OnSound(ctrl, oldValue);
306 }
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
Definition Car.c:4
Definition EnMath.c:7
const int STATE_RUINED
Definition constants.c:757
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.

References Math::Clamp(), GetCarDoorsState(), and GameConstants::STATE_RUINED.

◆ OnSound() [2/8]

override float CarScript::OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected

Definition at line 259 of file Hatchback_02.c.

260 {
261 switch (ctrl)
262 {
263 case CarSoundCtrl.DOORS:
264 float newValue = 0;
265 if (GetCarDoorsState("Hatchback_02_Door_1_1") == CarDoorState.DOORS_CLOSED)
266 newValue += 0.25;
267
268 if (GetCarDoorsState("Hatchback_02_Door_2_1") == CarDoorState.DOORS_CLOSED)
269 newValue += 0.25;
270
271 if (GetCarDoorsState("Hatchback_02_Door_1_2") == CarDoorState.DOORS_CLOSED)
272 newValue += 0.25;
273
274 if (GetCarDoorsState("Hatchback_02_Door_2_2") == CarDoorState.DOORS_CLOSED)
275 newValue += 0.25;
276
277 return Math.Clamp(newValue, 0, 1);
278 break;
279 }
280
281 return super.OnSound(ctrl, oldValue);
282 }

References Math::Clamp(), and GetCarDoorsState().

◆ OnSound() [3/8]

override float CarScript::OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected

Definition at line 269 of file Offroad_02.c.

270 {
271 switch (ctrl)
272 {
273 case CarSoundCtrl.DOORS:
274 float newValue = 0;
275 if (GetCarDoorsState("Offroad_02_Door_1_1") == CarDoorState.DOORS_CLOSED)
276 newValue += 0.25;
277
278 if (GetCarDoorsState("Offroad_02_Door_2_1") == CarDoorState.DOORS_CLOSED)
279 newValue += 0.25;
280
281 if (GetCarDoorsState("Offroad_02_Door_1_2") == CarDoorState.DOORS_CLOSED)
282 newValue += 0.25;
283
284 if (GetCarDoorsState("Offroad_02_Door_2_2") == CarDoorState.DOORS_CLOSED)
285 newValue += 0.25;
286
287 return Math.Clamp(newValue, 0, 1);
288 break;
289 }
290
291 return super.OnSound(ctrl, oldValue);
292 }

References Math::Clamp(), and GetCarDoorsState().

◆ OnSound() [4/8]

override float CarScript::OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected

Definition at line 256 of file OffroadHatchback.c.

257 {
258 float tempCap = 0.0;
259
260 switch (ctrl)
261 {
262 case CarSoundCtrl.DOORS:
263 float newValue = 0;
264 if (GetCarDoorsState("NivaDriverDoors") == CarDoorState.DOORS_CLOSED)
265 newValue += 0.5;
266
267 if (GetCarDoorsState("NivaCoDriverDoors") == CarDoorState.DOORS_CLOSED)
268 newValue += 0.5;
269
270 if (GetCarDoorsState("NivaTrunk") == CarDoorState.DOORS_CLOSED)
271 newValue += 0.3;
272
273 if (GetHealthLevel("WindowFront") == GameConstants.STATE_RUINED)
274 newValue -= 0.6;
275
276 if (GetHealthLevel("WindowLR") == GameConstants.STATE_RUINED)
277 newValue -= 0.2;
278
279 if (GetHealthLevel("WindowRR") == GameConstants.STATE_RUINED)
280 newValue -= 0.2;
281
282 return Math.Clamp(newValue, 0, 1);
283 break;
284 }
285
286 return super.OnSound(ctrl, oldValue);
287 }

References Math::Clamp(), GetCarDoorsState(), and GameConstants::STATE_RUINED.

◆ OnSound() [5/8]

override float CarScript::OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected

Definition at line 279 of file Sedan_02.c.

280 {
281 switch (ctrl)
282 {
283 case CarSoundCtrl.DOORS:
284 float newValue = 0;
285 if (GetCarDoorsState("Sedan_02_Door_1_1") == CarDoorState.DOORS_CLOSED)
286 newValue += 0.25;
287
288 if (GetCarDoorsState("Sedan_02_Door_2_1") == CarDoorState.DOORS_CLOSED)
289 newValue += 0.25;
290
291 if (GetCarDoorsState("Sedan_02_Door_1_2") == CarDoorState.DOORS_CLOSED)
292 newValue += 0.25;
293
294 if (GetCarDoorsState("Sedan_02_Door_2_2") == CarDoorState.DOORS_CLOSED)
295 newValue += 0.25;
296
297 return Math.Clamp(newValue, 0, 1);
298 break;
299 }
300
301 return super.OnSound(ctrl, oldValue);
302 }

References Math::Clamp(), and GetCarDoorsState().

◆ OnSound() [6/8]

override float CarScript::OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected

Definition at line 184 of file Truck_01_Base.c.

185 {
186 switch (ctrl)
187 {
188 case CarSoundCtrl.DOORS:
189 float newValue = 0;
190
191 //-----
192 if (GetCarDoorsState("Truck_01_Door_1_1") == CarDoorState.DOORS_CLOSED)
193 newValue += 0.4;
194
195 if (GetCarDoorsState("Truck_01_Door_2_1") == CarDoorState.DOORS_CLOSED)
196 newValue += 0.4;
197
198 return Math.Clamp(newValue, 0, 1);
199 break;
200 }
201
202 return super.OnSound(ctrl, oldValue);
203 }

References Math::Clamp(), and GetCarDoorsState().

◆ OnSound() [7/8]

override float CarScript::OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected

Definition at line 134 of file Truck_02.c.

135 {
136 switch (ctrl)
137 {
138 case CarSoundCtrl.DOORS:
139 float newValue = 0;
140
141 //-----
142 if (GetCarDoorsState("Truck_02_Door_1_1") == CarDoorState.DOORS_CLOSED)
143 newValue += 0.4;
144
145 if (GetCarDoorsState("Truck_02_Door_2_1") == CarDoorState.DOORS_CLOSED)
146 newValue += 0.4;
147
148 if (newValue > 1)
149 newValue = 1;
150
151 return newValue;
152 break;
153 }
154
155 return oldValue;
156 }

References GetCarDoorsState().

◆ OnSound() [8/8]

override float CarScript::OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected

Definition at line 178 of file Van_01.c.

179 {
180 switch (ctrl)
181 {
182 case CarSoundCtrl.DOORS:
183 float newValue = 0;
184
185 //-----
186 if (GetCarDoorsState("Van_01_Door_1_1") == CarDoorState.DOORS_CLOSED)
187 newValue += 0.25;
188
189 //-----
190 if (GetCarDoorsState("Van_01_Door_2_1") == CarDoorState.DOORS_CLOSED)
191 newValue += 0.25;
192
193 //-----
194 if (GetCarDoorsState("Van_01_Door_2_2") == CarDoorState.DOORS_CLOSED)
195 newValue += 0.25;
196
197 //-----
198 if (GetCarDoorsState("Van_01_Trunk_1") == CarDoorState.DOORS_CLOSED)
199 newValue += 0.125;
200
201 //-----
202 if (GetCarDoorsState("Van_01_Trunk_2") == CarDoorState.DOORS_CLOSED)
203 newValue += 0.125;
204
205 if (newValue > 1)
206 newValue = 1;
207
208 return newValue;
209 break;
210 }
211
212 return oldValue;
213 }

References GetCarDoorsState().

◆ Sedan_02()

void CarScript::Sedan_02 ( )
inlineprotected

Definition at line 7 of file Sedan_02.c.

8 {
9 m_dmgContactCoef = 0.0790;
10
11 m_EngineStartOK = "Sedan_02_engine_start_SoundSet";
12 m_EngineStartBattery = "Sedan_02_engine_failed_start_battery_SoundSet";
13 m_EngineStartPlug = "Sedan_02_engine_failed_start_sparkplugs_SoundSet";
14 m_EngineStartFuel = "Sedan_02_engine_failed_start_fuel_SoundSet";
15 m_EngineStopFuel = "offroad_engine_stop_fuel_SoundSet";
16
17 m_CarDoorOpenSound = "offroad_door_open_SoundSet";
18 m_CarDoorCloseSound = "offroad_door_close_SoundSet";
19
20 m_CarHornShortSoundName = "Sedan_02_Horn_Short_SoundSet";
21 m_CarHornLongSoundName = "Sedan_02_Horn_SoundSet";
22
23 SetEnginePos("0 0.7 -1.7");
24 }
float m_dmgContactCoef
Definition CarScript.c:159

References m_CarDoorCloseSound, m_CarDoorOpenSound, m_CarHornLongSoundName, m_CarHornShortSoundName, m_dmgContactCoef, m_EngineStartBattery, m_EngineStartFuel, m_EngineStartOK, m_EngineStartPlug, and m_EngineStopFuel.

◆ SetActions() [1/2]

override void CarScript::SetActions ( )
inlineprotected

Definition at line 409 of file OffroadHatchback.c.

410 {
411 super.SetActions();
412
414 }
void AddAction(typename actionName)

References AddAction().

Referenced by InitializeActions().

◆ SetActions() [2/2]

override void CarScript::SetActions ( )
inlineprotected

Definition at line 335 of file Truck_01_Base.c.

336 {
337 super.SetActions();
338
345 }
ActionDetachFromTarget_SpecificSlot_WoodenPlanks ActionDetachFromTarget_SpecificSlot ActionDetachFromTarget_SpecificSlot_MetalSheets()
ActionDetachFromTarget_SpecificSlotsCategory_Barrel ActionDetachFromTarget_SpecificSlotsCategory ActionDetachFromTarget_SpecificSlotsCategory_WoodenCrate()
ActionDetachFromTarget_SpecificSlotsCategory ActionDetachFromTarget ActionDetachFromTarget_SpecificSlot_WoodenLogs()

References ActionDetachFromTarget_SpecificSlot_MetalSheets(), ActionDetachFromTarget_SpecificSlot_WoodenLogs(), ActionDetachFromTarget_SpecificSlotsCategory_WoodenCrate(), and AddAction().

◆ Truck_01_Base()

void CarScript::Truck_01_Base ( )
inlineprotected

Definition at line 7 of file Truck_01_Base.c.

8 {
9 //m_dmgContactCoef = 0.018;
10 m_enginePtcPos = "0 1.346 2.205";
11
12 m_EngineStartOK = "Truck_01_engine_start_SoundSet";
13 m_EngineStartBattery = "Truck_01_engine_failed_start_battery_SoundSet";
14 m_EngineStartPlug = "Truck_01_engine_failed_start_sparkplugs_SoundSet";
15 m_EngineStartFuel = "Truck_01_engine_failed_start_fuel_SoundSet";
16 m_EngineStopFuel = "Truck_01_engine_stop_fuel_SoundSet";
17
18 m_CarDoorOpenSound = "Truck_01_door_open_SoundSet";
19 m_CarDoorCloseSound = "Truck_01_door_close_SoundSet";
20
21 m_CarHornShortSoundName = "Truck_01_Horn_Short_SoundSet";
22 m_CarHornLongSoundName = "Truck_01_Horn_SoundSet";
23
24 SetEnginePos("0 1.4 2.25");
25 }
vector m_enginePtcPos
Definition CarScript.c:193

References m_CarDoorCloseSound, m_CarDoorOpenSound, m_CarHornLongSoundName, m_CarHornShortSoundName, m_enginePtcPos, m_EngineStartBattery, m_EngineStartFuel, m_EngineStartOK, m_EngineStartPlug, and m_EngineStopFuel.

◆ Truck_02()

void CarScript::Truck_02 ( )
inlineprotected

Definition at line 7 of file Truck_02.c.

8 {
9 //m_dmgContactCoef = 0.018;
10 m_enginePtcPos = "0 1.346 2.205";
11 }

References m_enginePtcPos.

◆ Van_01()

void CarScript::Van_01 ( )
inlineprotected

Definition at line 7 of file Van_01.c.

8 {
9 //m_dmgContactCoef = 0.070; //TODO::Set proper value
10 }

Member Data Documentation

◆ m_UTSLEngine

ref UniversalTemperatureSourceLambdaEngine CarScript::m_UTSLEngine
protected

Definition at line 5 of file CivilianSedan.c.

◆ m_UTSource

ref UniversalTemperatureSource CarScript::m_UTSource
protected

Definition at line 3 of file CivilianSedan.c.

◆ m_UTSSettings

ref UniversalTemperatureSourceSettings CarScript::m_UTSSettings
protected

Definition at line 4 of file CivilianSedan.c.


The documentation for this class was generated from the following files: