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

Защищенные члены

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)
 

Защищенные данные

ref UniversalTemperatureSource m_UTSource
 
ref UniversalTemperatureSourceSettings m_UTSSettings
 
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
 

Подробное описание

Методы

◆ CanDisplayAttachmentCategory() [1/5]

override bool CanDisplayAttachmentCategory ( string category_name)
inlineprotected
138 {
139 //super
140 if (!super.CanDisplayAttachmentCategory(category_name))
141 return false;
142 //
143
144 category_name.ToLower();
145 if (category_name.Contains("engine"))
146 {
147 if (GetCarDoorsState("CivSedanHood") == CarDoorState.DOORS_CLOSED)
148 return false;
149 }
150
151 return true;
152 }
CarDoorState
Definition CarScript.c:2
override int GetCarDoorsState(string slotType)
Definition CivilianSedan.c:165
Definition EntityAI.c:95

Перекрестные ссылки GetCarDoorsState().

◆ CanDisplayAttachmentCategory() [2/5]

override bool CanDisplayAttachmentCategory ( string category_name)
inlineprotected
136 {
137 //super
138 if ( !super.CanDisplayAttachmentCategory( category_name ) )
139 return false;
140 //
141
142 category_name.ToLower();
143 if ( category_name.Contains("engine") )
144 {
145 if ( GetCarDoorsState("Hatchback_02_Hood") == CarDoorState.DOORS_CLOSED )
146 return false;
147 }
148
149 return true;
150 }

Перекрестные ссылки GetCarDoorsState().

◆ CanDisplayAttachmentCategory() [3/5]

override bool CanDisplayAttachmentCategory ( string category_name)
inlineprotected
150 {
151 if ( !super.CanDisplayAttachmentCategory(category_name))
152 {
153 return false;
154 }
155
156 category_name.ToLower();
157 if (category_name.Contains("engine"))
158 {
159 if (GetCarDoorsState("Offroad_02_Hood") == CarDoorState.DOORS_CLOSED)
160 {
161 return false;
162 }
163 }
164
165 return true;
166 }

Перекрестные ссылки GetCarDoorsState().

◆ CanDisplayAttachmentCategory() [4/5]

override bool CanDisplayAttachmentCategory ( string category_name)
inlineprotected
143 {
144 if (!super.CanDisplayAttachmentCategory(category_name))
145 {
146 return false;
147 }
148
149 category_name.ToLower();
150 if (category_name.Contains("engine"))
151 {
152 if (GetCarDoorsState("NivaHood") == CarDoorState.DOORS_CLOSED)
153 {
154 return false;
155 }
156 }
157
158 return true;
159 }

Перекрестные ссылки GetCarDoorsState().

◆ CanDisplayAttachmentCategory() [5/5]

override bool CanDisplayAttachmentCategory ( string category_name)
inlineprotected
152 {
153 if ( !super.CanDisplayAttachmentCategory(category_name))
154 {
155 return false;
156 }
157
158 category_name.ToLower();
159 if (category_name.Contains("engine"))
160 {
161 if (GetCarDoorsState("Sedan_02_Trunk") == CarDoorState.DOORS_CLOSED)
162 {
163 return false;
164 }
165 }
166
167 if (category_name.Contains("trunk"))
168 {
169 if (GetCarDoorsState("Sedan_02_Hood") == CarDoorState.DOORS_CLOSED)
170 {
171 return false;
172 }
173 }
174
175 return true;
176 }

Перекрестные ссылки GetCarDoorsState().

◆ CanDisplayCargo() [1/5]

override bool CanDisplayCargo ( )
inlineprotected
155 {
156 if ( !super.CanDisplayCargo() )
157 return false;
158
159 if ( GetCarDoorsState("CivSedanTrunk") == CarDoorState.DOORS_CLOSED )
160 return false;
161
162 return true;
163 }

Перекрестные ссылки GetCarDoorsState().

◆ CanDisplayCargo() [2/5]

override bool CanDisplayCargo ( )
inlineprotected
153 {
154 if ( !super.CanDisplayCargo() )
155 return false;
156
157 if ( GetCarDoorsState("Hatchback_02_Trunk") == CarDoorState.DOORS_CLOSED )
158 return false;
159
160 return true;
161 }

Перекрестные ссылки GetCarDoorsState().

◆ CanDisplayCargo() [3/5]

override bool CanDisplayCargo ( )
inlineprotected
169 {
170 if ( !super.CanDisplayCargo() )
171 return false;
172
173 if ( GetCarDoorsState("Offroad_02_Trunk") == CarDoorState.DOORS_CLOSED )
174 return false;
175
176 return true;
177 }

Перекрестные ссылки GetCarDoorsState().

◆ CanDisplayCargo() [4/5]

override bool CanDisplayCargo ( )
inlineprotected
162 {
163 if (!super.CanDisplayCargo())
164 {
165 return false;
166 }
167
168 if (GetCarDoorsState("NivaTrunk") == CarDoorState.DOORS_CLOSED)
169 {
170 return false;
171 }
172
173 return true;
174 }

Перекрестные ссылки GetCarDoorsState().

◆ CanDisplayCargo() [5/5]

override bool CanDisplayCargo ( )
inlineprotected
179 {
180 if ( !super.CanDisplayCargo() )
181 return false;
182
183 if ( GetCarDoorsState("Sedan_02_Hood") == CarDoorState.DOORS_CLOSED )
184 return false;
185
186 return true;
187 }

Перекрестные ссылки GetCarDoorsState().

◆ CanManipulateSpareWheel() [1/6]

bool CanManipulateSpareWheel ( string slotSelectionName)
inlineprotected
133 {
134 return GetCarDoorsState("CivSedanTrunk") != CarDoorState.DOORS_CLOSED;
135 }

Перекрестные ссылки GetCarDoorsState().

Используется в CanReceiveAttachment() и CanReleaseAttachment().

◆ CanManipulateSpareWheel() [2/6]

bool CanManipulateSpareWheel ( string slotSelectionName)
inlineprotected
131 {
132 return GetCarDoorsState("Hatchback_02_Trunk") != CarDoorState.DOORS_CLOSED;
133 }

Перекрестные ссылки GetCarDoorsState().

◆ CanManipulateSpareWheel() [3/6]

bool CanManipulateSpareWheel ( string slotSelectionName)
inlineprotected
145 {
146 return GetCarDoorsState("Offroad_02_Trunk") != CarDoorState.DOORS_CLOSED;
147 }

Перекрестные ссылки GetCarDoorsState().

◆ CanManipulateSpareWheel() [4/6]

bool CanManipulateSpareWheel ( string slotSelectionName)
inlineprotected
138 {
139 return GetCarDoorsState("NivaHood") != CarDoorState.DOORS_CLOSED;
140 }

Перекрестные ссылки GetCarDoorsState().

◆ CanManipulateSpareWheel() [5/6]

bool CanManipulateSpareWheel ( string slotSelectionName)
inlineprotected
147 {
148 return GetCarDoorsState("Sedan_02_Hood") != CarDoorState.DOORS_CLOSED;
149 }

Перекрестные ссылки GetCarDoorsState().

◆ CanManipulateSpareWheel() [6/6]

bool CanManipulateSpareWheel ( string slotSelectionName)
inlineprotected
134 {
135 if (slotSelectionName == "wheel_spare_1")
136 {
137 return GetAnimationPhase("wheelSidePlate1") == 1.0);
138 }
139
140 if (slotSelectionName == "wheel_spare_2")
141 {
142 return GetAnimationPhase("wheelSidePlate2") == 1.0);
143 }
144
145 return super.CanManipulateSpareWheel(slotSelectionName);
146 }

◆ CanReachDoorsFromSeat() [1/8]

override bool CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected
381 {
382 switch (pCurrentSeat)
383 {
384 case 0:
385 return pDoorsSelection == "DoorsDriver";
386
387 case 1:
388 return pDoorsSelection == "DoorsCoDriver";
389
390 case 2:
391 return pDoorsSelection == "DoorsCargo1";
392
393 case 3:
394 return pDoorsSelection == "DoorsCargo2";
395 }
396
397 return false;
398 }

◆ CanReachDoorsFromSeat() [2/8]

override bool CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected
363 {
364 switch (pCurrentSeat)
365 {
366 case 0:
367 return pDoorsSelection == "DoorsDriver";
368 case 1:
369 return pDoorsSelection == "DoorsCoDriver";
370 case 2:
371 return pDoorsSelection == "DoorsCargo1";
372 case 3:
373 return pDoorsSelection == "DoorsCargo2";
374 }
375
376 return false;
377 }

◆ CanReachDoorsFromSeat() [3/8]

override bool CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected
360 {
361 switch (pCurrentSeat)
362 {
363 case 0:
364 return pDoorsSelection == "DoorsDriver";
365 case 1:
366 return pDoorsSelection == "DoorsCoDriver";
367 case 2:
368 return pDoorsSelection == "DoorsCargo1";
369 case 3:
370 return pDoorsSelection == "DoorsCargo2";
371 }
372
373 return false;
374 }

◆ CanReachDoorsFromSeat() [4/8]

override bool CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected
410 {
411 switch (pCurrentSeat)
412 {
413 case 0:
414 return pDoorsSelection == "DoorsDriver";
415
416 case 1:
417 return pDoorsSelection == "DoorsCoDriver";
418
419 case 2:
420 return pDoorsSelection == "DoorsDriver";
421
422 case 3:
423 return pDoorsSelection == "DoorsCoDriver";
424 }
425
426 return false;
427 }

◆ CanReachDoorsFromSeat() [5/8]

override bool CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected
388 {
389 switch (pCurrentSeat)
390 {
391 case 0:
392 return pDoorsSelection == "DoorsDriver";
393
394 case 1:
395 return pDoorsSelection == "DoorsCoDriver";
396
397 case 2:
398 return pDoorsSelection == "DoorsCargo1";
399
400 case 3:
401 return pDoorsSelection == "DoorsCargo2";
402 }
403
404 return false;
405 }

◆ CanReachDoorsFromSeat() [6/8]

override bool CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected
309 {
310 switch (pCurrentSeat)
311 {
312 case 0:
313 return pDoorsSelection == "DoorsDriver";
314
315 case 1:
316 return pDoorsSelection == "DoorsCoDriver";
317 }
318
319 return false;
320 }

◆ CanReachDoorsFromSeat() [7/8]

override bool CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected
246 {
247 switch( pCurrentSeat )
248 {
249 case 0:
250 if (pDoorsSelection == "DoorsDriver")
251 {
252 return true;
253 }
254 break;
255
256 case 1:
257 if (pDoorsSelection == "DoorsCoDriver")
258 {
259 return true;
260 }
261 break;
262 }
263
264 return false;
265 }

◆ CanReachDoorsFromSeat() [8/8]

override bool CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
inlineprotected
305 {
306 switch( pCurrentSeat )
307 {
308 case 0:
309 if (pDoorsSelection == "DoorsDriver")
310 {
311 return true;
312 }
313 break;
314 case 1:
315 if (pDoorsSelection == "DoorsCoDriver")
316 {
317 return true;
318 }
319 break;
320 case 2:
321 if (pDoorsSelection == "DoorsCargo1")
322 {
323 return true;
324 }
325 break;
326 case 3:
327 if (pDoorsSelection == "DoorsCargo2")
328 {
329 return true;
330 }
331 break;
332 }
333
334 return false;
335 }

◆ CanReachSeatFromSeat() [1/8]

override bool CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected
361 {
362 switch (currentSeat)
363 {
364 case 0:
365 return nextSeat == 1;
366
367 case 1:
368 return nextSeat == 0;
369
370 case 2:
371 return nextSeat == 3;
372
373 case 3:
374 return nextSeat == 2;
375 }
376
377 return false;
378 }

◆ CanReachSeatFromSeat() [2/8]

override bool CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected
346 {
347 switch (currentSeat)
348 {
349 case 0:
350 return nextSeat == 1;
351 case 1:
352 return nextSeat == 0;
353 case 2:
354 return nextSeat == 3;
355 case 3:
356 return nextSeat == 2;
357 }
358
359 return false;
360 }

◆ CanReachSeatFromSeat() [3/8]

override bool CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected
343 {
344 switch (currentSeat)
345 {
346 case 0:
347 return nextSeat == 1;
348 case 1:
349 return nextSeat == 0;
350 case 2:
351 return nextSeat == 3;
352 case 3:
353 return nextSeat == 2;
354 }
355
356 return false;
357 }

◆ CanReachSeatFromSeat() [4/8]

override bool CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected
384 {
385 if (nextSeat == 0 && GetAnimationPhase("SeatDriver") > 0.5)
386 return false;
387
388 if (nextSeat == 1 && GetAnimationPhase("SeatCoDriver") > 0.5)
389 return false;
390
391 switch (currentSeat)
392 {
393 case 0:
394 return nextSeat == 1;
395
396 case 1:
397 return nextSeat == 0;
398
399 case 2:
400 return nextSeat == 3;
401
402 case 3:
403 return nextSeat == 2;
404 }
405
406 return false;
407 }

◆ CanReachSeatFromSeat() [5/8]

override bool CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected
368 {
369 switch (currentSeat)
370 {
371 case 0:
372 return nextSeat == 1;
373
374 case 1:
375 return nextSeat == 0;
376
377 case 2:
378 return nextSeat == 3;
379
380 case 3:
381 return nextSeat == 2;
382 }
383
384 return false;
385 }

◆ CanReachSeatFromSeat() [6/8]

override bool CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected
296 {
297 switch (currentSeat)
298 {
299 case 0:
300 return nextSeat == 1;
301 case 1:
302 return nextSeat == 0;
303 }
304
305 return false;
306 }

◆ CanReachSeatFromSeat() [7/8]

override bool CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected
228 {
229 switch( currentSeat )
230 {
231 case 0:
232 if ( nextSeat == 1 )
233 return true;
234 break;
235
236 case 1:
237 if ( nextSeat == 0 )
238 return true;
239 break;
240 }
241
242 return false;
243 }

◆ CanReachSeatFromSeat() [8/8]

override bool CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected
279 {
280 switch( currentSeat )
281 {
282 case 0:
283 if ( nextSeat == 1 )
284 return true;
285 break;
286 case 1:
287 if ( nextSeat == 0 )
288 return true;
289 break;
290 case 2:
291 if ( nextSeat == 3 )
292 return true;
293 break;
294 case 3:
295 if ( nextSeat == 2 )
296 return true;
297 break;
298 }
299
300 return false;
301 }

◆ CanReleaseAttachment() [1/6]

override bool CanReleaseAttachment ( EntityAI attachment)
inlineprotected
117 {
118 if( !super.CanReleaseAttachment( attachment ) )
119 return false;
120
121 string attType = attachment.GetType();
122
123 if ( EngineIsOn() || GetCarDoorsState("CivSedanHood") == CarDoorState.DOORS_CLOSED )
124 {
125 if ( attType == "CarRadiator" || attType == "CarBattery" || attType == "SparkPlug")
126 return false;
127 }
128
129 return true;
130 }

Перекрестные ссылки GetCarDoorsState().

◆ CanReleaseAttachment() [2/6]

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

Перекрестные ссылки GetCarDoorsState().

◆ CanReleaseAttachment() [3/6]

override bool CanReleaseAttachment ( EntityAI attachment)
inlineprotected
117 {
118 if (!super.CanReleaseAttachment(attachment))
119 {
120 return false;
121 }
122
123 string attType = attachment.GetType();
124 switch (attType)
125 {
126 case "CarBattery":
127 if (GetCarDoorsState("Offroad_02_Hood") == CarDoorState.DOORS_CLOSED || EngineIsOn())
128 {
129 return false;
130 }
131 break;
132
133 case "GlowPlug":
134 if (GetCarDoorsState("Offroad_02_Hood") == CarDoorState.DOORS_CLOSED || EngineIsOn())
135 {
136 return false;
137 }
138 break;
139 }
140
141 return true;
142 }

Перекрестные ссылки GetCarDoorsState().

◆ CanReleaseAttachment() [4/6]

override bool CanReleaseAttachment ( EntityAI attachment)
inlineprotected
119 {
120 if (!super.CanReleaseAttachment(attachment))
121 {
122 return false;
123 }
124
125 if (EngineIsOn() || GetCarDoorsState("NivaHood") == CarDoorState.DOORS_CLOSED)
126 {
127 string attType = attachment.GetType();
128 if (attType == "CarRadiator" || attType == "CarBattery" || attType == "SparkPlug")
129 {
130 return false;
131 }
132 }
133
134 return true;
135 }

Перекрестные ссылки GetCarDoorsState().

◆ CanReleaseAttachment() [5/6]

override bool CanReleaseAttachment ( EntityAI attachment)
inlineprotected
112 {
113 if (!super.CanReleaseAttachment(attachment))
114 {
115 return false;
116 }
117
118 string attType = attachment.GetType();
119 switch (attType)
120 {
121 case "CarBattery":
122 if (GetCarDoorsState("Sedan_02_Trunk") == CarDoorState.DOORS_CLOSED || EngineIsOn())
123 {
124 return false;
125 }
126 break;
127
128 case "SparkPlug":
129 if (GetCarDoorsState("Sedan_02_Trunk") == CarDoorState.DOORS_CLOSED || EngineIsOn())
130 {
131 return false;
132 }
133 break;
134
135 case "CarRadiator":
136 if (GetCarDoorsState("Sedan_02_Hood") == CarDoorState.DOORS_CLOSED || EngineIsOn())
137 {
138 return false;
139 }
140 break;
141 }
142
143 return true;
144 }

Перекрестные ссылки GetCarDoorsState().

◆ CanReleaseAttachment() [6/6]

override bool CanReleaseAttachment ( EntityAI attachment)
inlineprotected
119 {
120 if (!super.CanReleaseAttachment(attachment))
121 {
122 return false;
123 }
124
125 if (EngineIsOn() && attachment.GetType() == "TruckBattery")
126 {
127 return false;
128 }
129
130 return true;
131 }

◆ CivilianSedan()

void CivilianSedan ( )
inlineprotected
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

Перекрестные ссылки m_CarDoorCloseSound, m_CarDoorOpenSound, m_CarHornLongSoundName, m_CarHornShortSoundName, m_EngineStartBattery, m_EngineStartFuel, m_EngineStartOK, m_EngineStartPlug и m_EngineStopFuel.

◆ CreateFrontLight() [1/6]

override CarLightBase CreateFrontLight ( )
inlineprotected
106 {
107 return CarLightBase.Cast( ScriptedLightBase.CreateLight(CivilianSedanFrontLight) );
108 }
Definition CarRearLightBase.c:2
Definition PointLightBase.c:2

Используется в UpdateLightsClient().

◆ CreateFrontLight() [2/6]

override CarLightBase CreateFrontLight ( )
inlineprotected
107 {
108 return CarLightBase.Cast(ScriptedLightBase.CreateLight(Hatchback_02FrontLight));
109 }

◆ CreateFrontLight() [3/6]

override CarLightBase CreateFrontLight ( )
inlineprotected
106 {
107 return CarLightBase.Cast(ScriptedLightBase.CreateLight(Offroad_02FrontLight));
108 }

◆ CreateFrontLight() [4/6]

override CarLightBase CreateFrontLight ( )
inlineprotected
114 {
115 return CarLightBase.Cast( ScriptedLightBase.CreateLight(OffroadHatchbackFrontLight) );
116 }

◆ CreateFrontLight() [5/6]

override CarLightBase CreateFrontLight ( )
inlineprotected
101 {
102 return CarLightBase.Cast(ScriptedLightBase.CreateLight(Sedan_02FrontLight));
103 }

◆ CreateFrontLight() [6/6]

override CarLightBase CreateFrontLight ( )
inlineprotected
108 {
109 return CarLightBase.Cast(ScriptedLightBase.CreateLight(Truck_01FrontLight));
110 }

◆ CreateRearLight() [1/6]

override CarRearLightBase CreateRearLight ( )
inlineprotected
112 {
113 return CarRearLightBase.Cast( ScriptedLightBase.CreateLight(CivilianSedanRearLight) );
114 }
Definition CivilianSedanRearLight.c:2

Используется в UpdateLightsClient().

◆ CreateRearLight() [2/6]

override CarRearLightBase CreateRearLight ( )
inlineprotected
101 {
102 return CarRearLightBase.Cast(ScriptedLightBase.CreateLight(Hatchback_02RearLight));
103 }

◆ CreateRearLight() [3/6]

override CarRearLightBase CreateRearLight ( )
inlineprotected
112 {
113 return CarRearLightBase.Cast(ScriptedLightBase.CreateLight(Offroad_02RearLight));
114 }

◆ CreateRearLight() [4/6]

override CarRearLightBase CreateRearLight ( )
inlineprotected
109 {
110 return CarRearLightBase.Cast( ScriptedLightBase.CreateLight(OffroadHatchbackRearLight) );
111 }

◆ CreateRearLight() [5/6]

override CarRearLightBase CreateRearLight ( )
inlineprotected
107 {
108 return CarRearLightBase.Cast(ScriptedLightBase.CreateLight(Sedan_02RearLight));
109 }

◆ CreateRearLight() [6/6]

override CarRearLightBase CreateRearLight ( )
inlineprotected
114 {
115 return CarRearLightBase.Cast(ScriptedLightBase.CreateLight(Truck_01RearLight));
116 }

◆ CrewCanGetThrough() [1/8]

override bool CrewCanGetThrough ( int posIdx)
inlineprotected
207 {
208 switch( posIdx )
209 {
210 case 0:
211 if ( GetCarDoorsState("CivSedanDriverDoors") == CarDoorState.DOORS_CLOSED )
212 return false;
213
214 return true;
215 break;
216
217 case 1:
218 if ( GetCarDoorsState("CivSedanCoDriverDoors") == CarDoorState.DOORS_CLOSED )
219 return false;
220
221 return true;
222 break;
223
224 case 2:
225 if ( GetCarDoorsState("CivSedanCargo1Doors") == CarDoorState.DOORS_CLOSED )
226 return false;
227
228 return true;
229 break;
230
231 case 3:
232 if ( GetCarDoorsState("CivSedanCargo2Doors") == CarDoorState.DOORS_CLOSED )
233 return false;
234
235 return true;
236 break;
237 }
238
239 return false;
240 }

Перекрестные ссылки GetCarDoorsState().

◆ CrewCanGetThrough() [2/8]

override bool CrewCanGetThrough ( int posIdx)
inlineprotected
199 {
200 switch (posIdx)
201 {
202 case 0:
203 if (GetCarDoorsState("Hatchback_02_Door_1_1") == CarDoorState.DOORS_CLOSED)
204 {
205 return false;
206 }
207
208 return true;
209
210 case 1:
211 if (GetCarDoorsState("Hatchback_02_Door_2_1") == CarDoorState.DOORS_CLOSED)
212 {
213 return false;
214 }
215
216 return true;
217
218 case 2:
219 if (GetCarDoorsState("Hatchback_02_Door_1_2") == CarDoorState.DOORS_CLOSED)
220 {
221 return false;
222 }
223
224 return true;
225
226 case 3:
227 if (GetCarDoorsState("Hatchback_02_Door_2_2") == CarDoorState.DOORS_CLOSED)
228 {
229 return false;
230 }
231
232 return true;
233 }
234
235 return false;
236 }

Перекрестные ссылки GetCarDoorsState().

◆ CrewCanGetThrough() [3/8]

override bool CrewCanGetThrough ( int posIdx)
inlineprotected
215 {
216 switch( posIdx )
217 {
218 case 0:
219 if ( GetCarDoorsState("Offroad_02_Door_1_1") == CarDoorState.DOORS_CLOSED )
220 return false;
221
222 return true;
223 break;
224
225 case 1:
226 if ( GetCarDoorsState("Offroad_02_Door_2_1") == CarDoorState.DOORS_CLOSED )
227 return false;
228
229 return true;
230 break;
231
232 case 2:
233 if ( GetCarDoorsState("Offroad_02_Door_1_2") == CarDoorState.DOORS_CLOSED )
234 return false;
235
236 return true;
237 break;
238
239 case 3:
240 if ( GetCarDoorsState("Offroad_02_Door_2_2") == CarDoorState.DOORS_CLOSED )
241 return false;
242
243 return true;
244 break;
245 }
246
247 return false;
248 }

Перекрестные ссылки GetCarDoorsState().

◆ CrewCanGetThrough() [4/8]

override bool CrewCanGetThrough ( int posIdx)
inlineprotected
205 {
207 switch (posIdx)
208 {
209 case 0:
210 if (GetCarDoorsState("NivaDriverDoors") == CarDoorState.DOORS_CLOSED)
211 return false;
212 else if (GetAnimationPhase("SeatDriver") > 0.5)
213 return false;
214
215 return true;
216
217 case 1:
218 if (GetCarDoorsState("NivaCoDriverDoors") == CarDoorState.DOORS_CLOSED)
219 return false;
220 else if (GetAnimationPhase("SeatCoDriver") > 0.5)
221 return false;
222
223 return true;
224
225 case 2:
226 if (GetCarDoorsState("NivaDriverDoors") == CarDoorState.DOORS_CLOSED)
227 return false;
228 else if (GetAnimationPhase("SeatDriver") <= 0.5)
229 return false;
230
231 return true;
232
233 case 3:
234 if (GetCarDoorsState("NivaCoDriverDoors") == CarDoorState.DOORS_CLOSED)
235 return false;
236 else if (GetAnimationPhase("SeatCoDriver") <= 0.5)
237 return false;
238
239 return true;
240 }
241
242 return false;
243 }
Definition InventoryItem.c:496

Перекрестные ссылки GetCarDoorsState().

◆ CrewCanGetThrough() [5/8]

override bool CrewCanGetThrough ( int posIdx)
inlineprotected
225 {
226 switch( posIdx )
227 {
228 case 0:
229 if ( GetCarDoorsState("Sedan_02_Door_1_1") == CarDoorState.DOORS_CLOSED )
230 return false;
231
232 return true;
233 break;
234
235 case 1:
236 if ( GetCarDoorsState("Sedan_02_Door_2_1") == CarDoorState.DOORS_CLOSED )
237 return false;
238
239 return true;
240 break;
241
242 case 2:
243 if ( GetCarDoorsState("Sedan_02_Door_1_2") == CarDoorState.DOORS_CLOSED )
244 return false;
245
246 return true;
247 break;
248
249 case 3:
250 if ( GetCarDoorsState("Sedan_02_Door_2_2") == CarDoorState.DOORS_CLOSED )
251 return false;
252
253 return true;
254 break;
255 }
256
257 return false;
258 }

Перекрестные ссылки GetCarDoorsState().

◆ CrewCanGetThrough() [6/8]

override bool CrewCanGetThrough ( int posIdx)
inlineprotected
149 {
151 switch( posIdx )
152 {
153 case 0:
154 if ( GetCarDoorsState("Truck_01_Door_1_1") == CarDoorState.DOORS_CLOSED )
155 return false;
156
157 return true;
158
159 case 1:
160 if ( GetCarDoorsState("Truck_01_Door_2_1") == CarDoorState.DOORS_CLOSED )
161 return false;
162
163 return true;
164 }
165
166 return false;
167 }

Перекрестные ссылки GetCarDoorsState().

◆ CrewCanGetThrough() [7/8]

override bool CrewCanGetThrough ( int posIdx)
inlineprotected
127 {
129 switch( posIdx )
130 {
131 case 0:
132 if ( GetCarDoorsState( "Truck_02_Door_1_1" ) == CarDoorState.DOORS_CLOSED )
133 {
134 return false;
135 }
136
137 return true;
138 break;
139
140 case 1:
141 if ( GetCarDoorsState( "Truck_02_Door_2_1" ) == CarDoorState.DOORS_CLOSED )
142 {
143 return false;
144 }
145
146 return true;
147 break;
148 }
149
150 return false;
151 }

Перекрестные ссылки GetCarDoorsState().

◆ CrewCanGetThrough() [8/8]

override bool CrewCanGetThrough ( int posIdx)
inlineprotected
145 {
146 switch( posIdx )
147 {
148 case 0:
149 if ( GetCarDoorsState( "Van_01_Door_1_1" ) == CarDoorState.DOORS_CLOSED )
150 return false;
151
152 return true;
153 break;
154
155 case 1:
156 if ( GetCarDoorsState( "Van_01_Door_2_1" ) == CarDoorState.DOORS_CLOSED )
157 return false;
158
159 return true;
160 break;
161
162 case 2:
163 if ( GetCarDoorsState( "Van_01_Door_2_2" ) == CarDoorState.DOORS_CLOSED )
164 return false;
165
166 return true;
167 break;
168
169 case 3:
170 if ( GetCarDoorsState( "Van_01_Door_2_2" ) == CarDoorState.DOORS_CLOSED )
171 return false;
172
173 case 4:
174 if ( GetCarDoorsState( "Van_01_Door_2_2" ) == CarDoorState.DOORS_CLOSED )
175 return false;
176
177 return true;
178 break;
179 }
180
181 return false;
182 }

Перекрестные ссылки GetCarDoorsState().

◆ EEInit() [1/8]

override void EEInit ( )
inlineprotected
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;
37 m_UTSSettings.m_TemperatureCap = 0;
38 m_UTSSettings.m_RangeFull = 0.5;
39 m_UTSSettings.m_RangeMax = 2;
40
43 }
44 }
UniversalTemperatureSourceLambdaBaseImpl UniversalTemperatureSourceLambdaBase UniversalTemperatureSourceLambdaEngine()
Definition UniversalTemperatureSourceLambdaBaseImpl.c:175
ref UniversalTemperatureSourceSettings m_UTSSettings
Definition CivilianSedan.c:4
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
Definition CivilianSedan.c:5
ref UniversalTemperatureSource m_UTSource
Definition CivilianSedan.c:3
Definition constants.c:638
original Timer deletes m_params which is unwanted
Definition UniversalTemperatureSource.c:28
Definition UniversalTemperatureSource.c:2
proto native CGame GetGame()
static const float ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE
Definition constants.c:777

Перекрестные ссылки GetGame(), GameConstants::ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE, m_UTSLEngine, m_UTSource, m_UTSSettings и UniversalTemperatureSourceLambdaEngine().

◆ EEInit() [2/8]

override void EEInit ( )
inlineprotected
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;
37 m_UTSSettings.m_TemperatureCap = 0;
38 m_UTSSettings.m_RangeFull = 0.5;
39 m_UTSSettings.m_RangeMax = 2;
40
43 }
44 }

Перекрестные ссылки GetGame(), GameConstants::ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE, m_UTSLEngine, m_UTSource, m_UTSSettings и UniversalTemperatureSourceLambdaEngine().

◆ EEInit() [3/8]

override void EEInit ( )
inlineprotected
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;
37 m_UTSSettings.m_TemperatureCap = 0;
38 m_UTSSettings.m_RangeFull = 0.5;
39 m_UTSSettings.m_RangeMax = 2;
40
43 }
44 }

Перекрестные ссылки GetGame(), GameConstants::ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE, m_UTSLEngine, m_UTSource, m_UTSSettings и UniversalTemperatureSourceLambdaEngine().

◆ EEInit() [4/8]

override void EEInit ( )
inlineprotected
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;
39 m_UTSSettings.m_TemperatureCap = 0;
40 m_UTSSettings.m_RangeFull = 0.5;
41 m_UTSSettings.m_RangeMax = 2;
42
45 }
46 }

Перекрестные ссылки GetGame(), GameConstants::ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE, m_UTSLEngine, m_UTSource, m_UTSSettings и UniversalTemperatureSourceLambdaEngine().

◆ EEInit() [5/8]

override void EEInit ( )
inlineprotected
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;
37 m_UTSSettings.m_TemperatureCap = 0;
38 m_UTSSettings.m_RangeFull = 0.5;
39 m_UTSSettings.m_RangeMax = 2;
40
43 }
44 }

Перекрестные ссылки GetGame(), GameConstants::ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE, m_UTSLEngine, m_UTSource, m_UTSSettings и UniversalTemperatureSourceLambdaEngine().

◆ EEInit() [6/8]

override void EEInit ( )
inlineprotected
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;
38 m_UTSSettings.m_TemperatureCap = 0;
39 m_UTSSettings.m_RangeFull = 0.5;
40 m_UTSSettings.m_RangeMax = 2;
41
44 }
45 }

Перекрестные ссылки GetGame(), GameConstants::ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE, m_UTSLEngine, m_UTSource, m_UTSSettings и UniversalTemperatureSourceLambdaEngine().

◆ EEInit() [7/8]

override void EEInit ( )
inlineprotected
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;
24 m_UTSSettings.m_TemperatureCap = 0;
25 m_UTSSettings.m_RangeFull = 0.5;
26 m_UTSSettings.m_RangeMax = 2;
27
30 }
31 }

Перекрестные ссылки GetGame(), GameConstants::ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE, m_UTSLEngine, m_UTSource, m_UTSSettings и UniversalTemperatureSourceLambdaEngine().

◆ EEInit() [8/8]

override void EEInit ( )
inlineprotected
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;
23 m_UTSSettings.m_TemperatureCap = 0;
24 m_UTSSettings.m_RangeFull = 0.5;
25 m_UTSSettings.m_RangeMax = 2;
26
29 }
30 }

Перекрестные ссылки GetGame(), GameConstants::ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE, m_UTSLEngine, m_UTSource, m_UTSSettings и UniversalTemperatureSourceLambdaEngine().

◆ EOnPostSimulate() [1/8]

override void EOnPostSimulate ( IEntity other,
float timeSlice )
inlineprotected
67 {
68 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
69 {
70 if (m_UTSource.IsActive())
71 {
73 }
74 }
75 }

Перекрестные ссылки GetGame(), m_UTSLEngine, m_UTSource и m_UTSSettings.

◆ EOnPostSimulate() [2/8]

override void EOnPostSimulate ( IEntity other,
float timeSlice )
inlineprotected
67 {
68 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
69 {
70 if (m_UTSource.IsActive())
71 {
73 }
74 }
75 }

Перекрестные ссылки GetGame(), m_UTSLEngine, m_UTSource и m_UTSSettings.

◆ EOnPostSimulate() [3/8]

override void EOnPostSimulate ( IEntity other,
float timeSlice )
inlineprotected
67 {
68 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
69 {
70 if (m_UTSource.IsActive())
71 {
73 }
74 }
75 }

Перекрестные ссылки GetGame(), m_UTSLEngine, m_UTSource и m_UTSSettings.

◆ EOnPostSimulate() [4/8]

override void EOnPostSimulate ( IEntity other,
float timeSlice )
inlineprotected
69 {
70 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
71 {
72 if (m_UTSource.IsActive())
73 {
75 }
76 }
77 }

Перекрестные ссылки GetGame(), m_UTSLEngine, m_UTSource и m_UTSSettings.

◆ EOnPostSimulate() [5/8]

override void EOnPostSimulate ( IEntity other,
float timeSlice )
inlineprotected
67 {
68 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
69 {
70 if (m_UTSource.IsActive())
71 {
73 }
74 }
75 }

Перекрестные ссылки GetGame(), m_UTSLEngine, m_UTSource и m_UTSSettings.

◆ EOnPostSimulate() [6/8]

override void EOnPostSimulate ( IEntity other,
float timeSlice )
inlineprotected
68 {
69 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
70 {
71 if (m_UTSource.IsActive())
72 {
74 }
75 }
76 }

Перекрестные ссылки GetGame(), m_UTSLEngine, m_UTSource и m_UTSSettings.

◆ EOnPostSimulate() [7/8]

override void EOnPostSimulate ( IEntity other,
float timeSlice )
inlineprotected
54 {
55 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
56 {
57 if (m_UTSource.IsActive())
58 {
60 }
61 }
62 }

Перекрестные ссылки GetGame(), m_UTSLEngine, m_UTSource и m_UTSSettings.

◆ EOnPostSimulate() [8/8]

override void EOnPostSimulate ( IEntity other,
float timeSlice )
inlineprotected
53 {
54 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
55 {
56 if (m_UTSource.IsActive())
57 {
59 }
60 }
61 }

Перекрестные ссылки GetGame(), m_UTSLEngine, m_UTSource и m_UTSSettings.

◆ GetAnimInstance() [1/8]

override int GetAnimInstance ( )
inlineprotected
78 {
79 return VehicleAnimInstances.SEDAN;
80 }
VehicleAnimInstances
Definition VehicleAnimInstances.c:2

◆ GetAnimInstance() [2/8]

override int GetAnimInstance ( )
inlineprotected
78 {
79 return VehicleAnimInstances.GOLF;
80 }

◆ GetAnimInstance() [3/8]

override int GetAnimInstance ( )
inlineprotected
78 {
79 return VehicleAnimInstances.HMMWV;
80 }

◆ GetAnimInstance() [4/8]

override int GetAnimInstance ( )
inlineprotected
80 {
81 return VehicleAnimInstances.HATCHBACK;
82 }

◆ GetAnimInstance() [5/8]

override int GetAnimInstance ( )
inlineprotected
78 {
79 return VehicleAnimInstances.S120;
80 }

◆ GetAnimInstance() [6/8]

override int GetAnimInstance ( )
inlineprotected
89 {
90 return VehicleAnimInstances.V3S;
91 }

◆ GetAnimInstance() [7/8]

override int GetAnimInstance ( )
inlineprotected
65 {
66 return VehicleAnimInstances.MULTICAR;
67 }

◆ GetAnimInstance() [8/8]

override int GetAnimInstance ( )
inlineprotected
65 {
66 return VehicleAnimInstances.CIVVAN;
67 }

◆ GetAnimSourceFromSelection() [1/8]

override string GetAnimSourceFromSelection ( string selection)
inlineprotected
330 {
331 switch (selection)
332 {
333 case "doors_driver":
334 return "DoorsDriver";
335 case "doors_codriver":
336 return "DoorsCoDriver";
337 case "doors_cargo1":
338 return "DoorsCargo1";
339 case "doors_cargo2":
340 return "DoorsCargo2";
341 case "doors_hood":
342 return "DoorsHood";
343 case "doors_trunk":
344 return "DoorsTrunk";
345 }
346
347 return "";
348 }

◆ GetAnimSourceFromSelection() [2/8]

override string GetAnimSourceFromSelection ( string selection)
inlineprotected
314 {
315 switch( selection )
316 {
317 case "doors_driver":
318 return "DoorsDriver";
319 case "doors_codriver":
320 return "DoorsCoDriver";
321 case "doors_cargo1":
322 return "DoorsCargo1";
323 case "doors_cargo2":
324 return "DoorsCargo2";
325 case "doors_hood":
326 return "DoorsHood";
327 case "doors_trunk":
328 return "DoorsTrunk";
329 }
330
331 return "";
332 }

◆ GetAnimSourceFromSelection() [3/8]

override string GetAnimSourceFromSelection ( string selection)
inlineprotected
322 {
323 switch (selection)
324 {
325 case "doors_driver":
326 return "DoorsDriver";
327 case "doors_codriver":
328 return "DoorsCoDriver";
329 case "doors_cargo1":
330 return "DoorsCargo1";
331 case "doors_cargo2":
332 return "DoorsCargo2";
333 case "doors_hood":
334 return "DoorsHood";
335 case "doors_trunk":
336 return "DoorsTrunk";
337 }
338
339 return "";
340 }

◆ GetAnimSourceFromSelection() [4/8]

override string GetAnimSourceFromSelection ( string selection)
inlineprotected
323 {
324 switch (selection)
325 {
326 case "doors_driver":
327 return "DoorsDriver";
328 case "doors_codriver":
329 return "DoorsCoDriver";
330 case "doors_hood":
331 return "DoorsHood";
332 case "doors_trunk":
333 return "DoorsTrunk";
334 case "seatback_driver":
335 return "SeatDriver";
336 case "seatback_codriver":
337 return "SeatCoDriver";
338 }
339
340 return "";
341 }

◆ GetAnimSourceFromSelection() [5/8]

override string GetAnimSourceFromSelection ( string selection)
inlineprotected
336 {
337 switch( selection )
338 {
339 case "doors_driver":
340 return "DoorsDriver";
341 case "doors_codriver":
342 return "DoorsCoDriver";
343 case "doors_cargo1":
344 return "DoorsCargo1";
345 case "doors_cargo2":
346 return "DoorsCargo2";
347 case "doors_hood":
348 return "DoorsHood";
349 case "doors_trunk":
350 return "DoorsTrunk";
351 }
352
353 return "";
354 }

◆ GetAnimSourceFromSelection() [6/8]

override string GetAnimSourceFromSelection ( string selection)
inlineprotected
275 {
276 switch( selection )
277 {
278 case "doors_driver":
279 return "DoorsDriver";
280 case "doors_codriver":
281 return "DoorsCoDriver";
282 case "doors_hood":
283 return "DoorsHood";
284 case "doors_trunk":
285 return "DoorsTrunk";
286 case "wheelsideplate1":
287 return "WheelSidePlate1";
288 case "wheelsideplate2":
289 return "WheelSidePlate2";
290 }
291
292 return "";
293 }

◆ GetAnimSourceFromSelection() [7/8]

override string GetAnimSourceFromSelection ( string selection)
inlineprotected
182 {
183 switch( selection )
184 {
185 case "doors_driver":
186 return "DoorsDriver";
187 case "doors_codriver":
188 return "DoorsCoDriver";
189 case "doors_hood":
190 return "DoorsHood";
191 case "doors_trunk":
192 return "DoorsTrunk";
193 case "wheelsideplate1":
194 return "WheelSidePlate1";
195 case "wheelsideplate2":
196 return "WheelSidePlate2";
197 }
198
199 return "";
200 }

◆ GetAnimSourceFromSelection() [8/8]

override string GetAnimSourceFromSelection ( string selection)
inlineprotected
224 {
225 switch( selection )
226 {
227 case "doors_driver":
228 return "DoorsDriver";
229 case "doors_codriver":
230 return "DoorsCoDriver";
231 case "doors_cargo1":
232 return "DoorsCargo1";
233 case "doors_cargo2":
234 return "DoorsCargo2";
235 case "doors_cargo3":
236 return "DoorsCargo3";
237 case "doors_hood":
238 return "DoorsHood";
239 }
240
241 return "";
242 }

◆ GetCarDoorsState() [1/8]

override int GetCarDoorsState ( string slotType)
inlineprotected
166 {
168
169 Class.CastTo( carDoor, FindAttachmentBySlotName( slotType ) );
170 if (!carDoor)
171 {
172 return CarDoorState.DOORS_MISSING;
173 }
174
175 switch (slotType)
176 {
177 case "CivSedanDriverDoors":
178 return TranslateAnimationPhaseToCarDoorState("DoorsDriver");
179 break;
180
181 case "CivSedanCoDriverDoors":
182 return TranslateAnimationPhaseToCarDoorState("DoorsCoDriver");
183 break;
184
185 case "CivSedanCargo1Doors":
186 return TranslateAnimationPhaseToCarDoorState("DoorsCargo1");
187 break;
188
189 case "CivSedanCargo2Doors":
190 return TranslateAnimationPhaseToCarDoorState("DoorsCargo2");
191 break;
192
193 case "CivSedanTrunk":
194 return TranslateAnimationPhaseToCarDoorState("DoorsTrunk");
195 break;
196
197 case "CivSedanHood":
198 return TranslateAnimationPhaseToCarDoorState("DoorsHood");
199 break;
200 }
201
202 return CarDoorState.DOORS_MISSING;
203 }
CarDoorState TranslateAnimationPhaseToCarDoorState(string animation)
Definition CarScript.c:2474
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.

Перекрестные ссылки Class::CastTo() и TranslateAnimationPhaseToCarDoorState().

Используется в ActionLockAttachment::ActionCondition(), ActionRepairCarPart::ActionCondition(), InventoryItemSuper::CanDetachAttachment(), CanDisplayAttachmentCategory(), CanDisplayCargo(), CanManipulateSpareWheel(), CanReleaseAttachment(), CrewCanGetThrough() и OnSound().

◆ GetCarDoorsState() [2/8]

override int GetCarDoorsState ( string slotType)
inlineprotected
164 {
166
167 Class.CastTo(carDoor, FindAttachmentBySlotName(slotType));
168 if (!carDoor)
169 {
170 return CarDoorState.DOORS_MISSING;
171 }
172
173 switch (slotType)
174 {
175 case "Hatchback_02_Door_1_1":
176 return TranslateAnimationPhaseToCarDoorState("DoorsDriver");
177
178 case "Hatchback_02_Door_2_1":
179 return TranslateAnimationPhaseToCarDoorState("DoorsCoDriver");
180
181 case "Hatchback_02_Door_1_2":
182 return TranslateAnimationPhaseToCarDoorState("DoorsCargo1");
183
184 case "Hatchback_02_Door_2_2":
185 return TranslateAnimationPhaseToCarDoorState("DoorsCargo2");
186
187 case "Hatchback_02_Hood":
188 return TranslateAnimationPhaseToCarDoorState("DoorsHood");
189
190 case "Hatchback_02_Trunk":
191 return TranslateAnimationPhaseToCarDoorState("DoorsTrunk");
192 }
193
194 return CarDoorState.DOORS_MISSING;
195 }

Перекрестные ссылки Class::CastTo() и TranslateAnimationPhaseToCarDoorState().

◆ GetCarDoorsState() [3/8]

override int GetCarDoorsState ( string slotType)
inlineprotected
180 {
182
183 Class.CastTo( carDoor, FindAttachmentBySlotName( slotType ) );
184 if (!carDoor)
185 {
186 return CarDoorState.DOORS_MISSING;
187 }
188
189 switch (slotType)
190 {
191 case "Offroad_02_Door_1_1":
192 return TranslateAnimationPhaseToCarDoorState("DoorsDriver");
193
194 case "Offroad_02_Door_2_1":
195 return TranslateAnimationPhaseToCarDoorState("DoorsCoDriver");
196
197 case "Offroad_02_Door_1_2":
198 return TranslateAnimationPhaseToCarDoorState("DoorsCargo1");
199
200 case "Offroad_02_Door_2_2":
201 return TranslateAnimationPhaseToCarDoorState("DoorsCargo2");
202
203 case "Offroad_02_Hood":
204 return TranslateAnimationPhaseToCarDoorState("DoorsHood");
205
206 case "Offroad_02_Trunk":
207 return TranslateAnimationPhaseToCarDoorState("DoorsTrunk");
208 }
209
210 return CarDoorState.DOORS_MISSING;
211 }

Перекрестные ссылки Class::CastTo() и TranslateAnimationPhaseToCarDoorState().

◆ GetCarDoorsState() [4/8]

override int GetCarDoorsState ( string slotType)
inlineprotected
177 {
179
180 Class.CastTo(carDoor, FindAttachmentBySlotName(slotType));
181 if (!carDoor)
182 {
183 return CarDoorState.DOORS_MISSING;
184 }
185
186 switch (slotType)
187 {
188 case "NivaDriverDoors":
189 return TranslateAnimationPhaseToCarDoorState("DoorsDriver");
190
191 case "NivaCoDriverDoors":
192 return TranslateAnimationPhaseToCarDoorState("DoorsCoDriver");
193
194 case "NivaHood":
195 return TranslateAnimationPhaseToCarDoorState("DoorsHood");
196
197 case "NivaTrunk":
198 return TranslateAnimationPhaseToCarDoorState("DoorsTrunk");
199 }
200
201 return CarDoorState.DOORS_MISSING;
202 }

Перекрестные ссылки Class::CastTo() и TranslateAnimationPhaseToCarDoorState().

◆ GetCarDoorsState() [5/8]

override int GetCarDoorsState ( string slotType)
inlineprotected
190 {
192
193 Class.CastTo( carDoor, FindAttachmentBySlotName( slotType ) );
194 if (!carDoor)
195 {
196 return CarDoorState.DOORS_MISSING;
197 }
198
199 switch (slotType)
200 {
201 case "Sedan_02_Door_1_1":
202 return TranslateAnimationPhaseToCarDoorState("DoorsDriver");
203
204 case "Sedan_02_Door_2_1":
205 return TranslateAnimationPhaseToCarDoorState("DoorsCoDriver");
206
207 case "Sedan_02_Door_1_2":
208 return TranslateAnimationPhaseToCarDoorState("DoorsCargo1");
209
210 case "Sedan_02_Door_2_2":
211 return TranslateAnimationPhaseToCarDoorState("DoorsCargo2");
212
213 case "Sedan_02_Hood":
214 return TranslateAnimationPhaseToCarDoorState("DoorsHood");
215
216 case "Sedan_02_Trunk":
217 return TranslateAnimationPhaseToCarDoorState("DoorsTrunk");
218 }
219
220 return CarDoorState.DOORS_MISSING;
221 }

Перекрестные ссылки Class::CastTo() и TranslateAnimationPhaseToCarDoorState().

◆ GetCarDoorsState() [6/8]

override int GetCarDoorsState ( string slotType)
inlineprotected
253 {
255 Class.CastTo(carDoor, FindAttachmentBySlotName(slotType));
256 if (!carDoor)
257 {
258 return CarDoorState.DOORS_MISSING;
259 }
260
261 switch (slotType)
262 {
263 case "Truck_01_Door_1_1":
264 return TranslateAnimationPhaseToCarDoorState("DoorsDriver");
265 case "Truck_01_Door_2_1":
266 return TranslateAnimationPhaseToCarDoorState("DoorsCoDriver");
267 case "Truck_01_Hood":
268 return TranslateAnimationPhaseToCarDoorState("DoorsHood");
269 }
270
271 return CarDoorState.DOORS_MISSING;
272 }

Перекрестные ссылки Class::CastTo() и TranslateAnimationPhaseToCarDoorState().

◆ GetCarDoorsState() [7/8]

override int GetCarDoorsState ( string slotType)
inlineprotected
83 {
85
86 switch( slotType )
87 {
88 case "Truck_02_Door_1_1":
89 Class.CastTo( carDoor, FindAttachmentBySlotName( slotType ) );
90 if ( carDoor )
91 {
92 if ( GetAnimationPhase("DoorsDriver") > 0.5 )
93 {
94 return CarDoorState.DOORS_OPEN;
95 }
96 else
97 {
98 return CarDoorState.DOORS_CLOSED;
99 }
100 }
101
102 return CarDoorState.DOORS_MISSING;
103 break;
104
105 case "Truck_02_Door_2_1":
106 Class.CastTo( carDoor, FindAttachmentBySlotName( slotType ) );
107 if ( carDoor )
108 {
109 if ( GetAnimationPhase("DoorsCoDriver") > 0.5 )
110 {
111 return CarDoorState.DOORS_OPEN;
112 }
113 else
114 {
115 return CarDoorState.DOORS_CLOSED;
116 }
117 }
118
119 return CarDoorState.DOORS_MISSING;
120 break;
121 }
122
123 return CarDoorState.DOORS_MISSING;
124 }

Перекрестные ссылки Class::CastTo().

◆ GetCarDoorsState() [8/8]

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

Перекрестные ссылки Class::CastTo().

◆ GetCrewIndex()

override int GetCrewIndex ( string selection)
inlineprotected
361 {
362 switch (selection)
363 {
364 case "seatback_driver":
365 return 0;
366 case "seatback_codriver":
367 return 1;
368 }
369
370 return -1;
371 }

◆ GetDoorConditionPointFromSelection() [1/2]

override string GetDoorConditionPointFromSelection ( string selection)
inlineprotected
344 {
345 switch (selection)
346 {
347 case "seat_driver":
348 case "seatback_driver":
349 case "seat_cargo1":
350 return "seat_con_1_1";
351 case "seat_codriver":
352 case "seatback_codriver":
353 case "seat_cargo2":
354 return "seat_con_2_1";
355 }
356
357 return "";
358 }

Используется в CanReachSeatFromDoors().

◆ GetDoorConditionPointFromSelection() [2/2]

override string GetDoorConditionPointFromSelection ( string selection)
inlineprotected
246 {
247 switch( selection )
248 {
249 case "seat_driver":
250 return "seat_con_1_1";
251 break;
252 case "seat_codriver":
253 return "seat_con_2_1";
254 break;
255 case "seat_cargo1":
256 case "seat_cargo2":
257 case "seat_cargo3":
258 return "seat_con_1_2";
259 break;
260 }
261
262 return "";
263 };

◆ GetDoorInvSlotNameFromSeatPos() [1/6]

override string GetDoorInvSlotNameFromSeatPos ( int posIdx)
inlineprotected
264 {
265 switch( posIdx )
266 {
267 case 0:
268 return "CivSedanDriverDoors";
269 break;
270 case 1:
271 return "CivSedanCoDriverDoors";
272 break;
273 case 2:
274 return "CivSedanCargo1Doors";
275 break;
276 case 3:
277 return "CivSedanCargo2Doors";
278 break;
279 }
280
281 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
282 }

◆ GetDoorInvSlotNameFromSeatPos() [2/6]

override string GetDoorInvSlotNameFromSeatPos ( int posIdx)
inlineprotected
260 {
261 switch( posIdx )
262 {
263 case 0:
264 return "Hatchback_02_Door_1_1";
265 break;
266 case 1:
267 return "Hatchback_02_Door_2_1";
268 break;
269 case 2:
270 return "Hatchback_02_Door_1_2";
271 break;
272 case 3:
273 return "Hatchback_02_Door_2_2";
274 break;
275 }
276
277 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
278 }

◆ GetDoorInvSlotNameFromSeatPos() [3/6]

override string GetDoorInvSlotNameFromSeatPos ( int posIdx)
inlineprotected
272 {
273 switch (posIdx)
274 {
275 case 0:
276 return "Offroad_02_Door_1_1";
277 case 1:
278 return "Offroad_02_Door_2_1";
279 case 2:
280 return "Offroad_02_Door_1_2";
281 case 3:
282 return "Offroad_02_Door_2_2";
283 }
284
285 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
286 }

◆ GetDoorInvSlotNameFromSeatPos() [4/6]

override string GetDoorInvSlotNameFromSeatPos ( int posIdx)
inlineprotected
261 {
262 switch (posIdx)
263 {
264 case 0:
265 case 2:
266 return "NivaDriverDoors";
267 case 1:
268 case 3:
269 return "NivaCoDriverDoors";
270 }
271
272 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
273 }

◆ GetDoorInvSlotNameFromSeatPos() [5/6]

override string GetDoorInvSlotNameFromSeatPos ( int posIdx)
inlineprotected
282 {
283 switch( posIdx )
284 {
285 case 0:
286 return "Sedan_02_Door_1_1";
287 break;
288 case 1:
289 return "Sedan_02_Door_2_1";
290 break;
291 case 2:
292 return "Sedan_02_Door_1_2";
293 break;
294 case 3:
295 return "Sedan_02_Door_2_2";
296 break;
297 }
298
299 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
300 }

◆ GetDoorInvSlotNameFromSeatPos() [6/6]

override string GetDoorInvSlotNameFromSeatPos ( int posIdx)
inlineprotected
185 {
186 switch( posIdx )
187 {
188 case 0:
189 return "Truck_01_Door_1_1";
190 break;
191 case 1:
192 return "Truck_01_Door_2_1";
193 break;
194 }
195
196 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
197 }

◆ GetDoorSelectionNameFromSeatPos() [1/6]

override string GetDoorSelectionNameFromSeatPos ( int posIdx)
inlineprotected
243 {
244 switch( posIdx )
245 {
246 case 0:
247 return "doors_driver";
248 break;
249 case 1:
250 return "doors_codriver";
251 break;
252 case 2:
253 return "doors_cargo1";
254 break;
255 case 3:
256 return "doors_cargo2";
257 break;
258 }
259
260 return super.GetDoorSelectionNameFromSeatPos(posIdx);
261 }

◆ GetDoorSelectionNameFromSeatPos() [2/6]

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

◆ GetDoorSelectionNameFromSeatPos() [3/6]

override string GetDoorSelectionNameFromSeatPos ( int posIdx)
inlineprotected
251 {
252 switch( posIdx )
253 {
254 case 0:
255 return "doors_driver";
256 break;
257 case 1:
258 return "doors_codriver";
259 break;
260 case 2:
261 return "doors_cargo1";
262 break;
263 case 3:
264 return "doors_cargo2";
265 break;
266 }
267
268 return super.GetDoorSelectionNameFromSeatPos(posIdx);
269 }

◆ GetDoorSelectionNameFromSeatPos() [4/6]

override string GetDoorSelectionNameFromSeatPos ( int posIdx)
inlineprotected
246 {
247 switch (posIdx)
248 {
249 case 0:
250 case 2:
251 return "doors_driver";
252 case 1:
253 case 3:
254 return "doors_codriver";
255 }
256
257 return super.GetDoorSelectionNameFromSeatPos(posIdx);
258 }

◆ GetDoorSelectionNameFromSeatPos() [5/6]

override string GetDoorSelectionNameFromSeatPos ( int posIdx)
inlineprotected
261 {
262 switch( posIdx )
263 {
264 case 0:
265 return "doors_driver";
266 break;
267 case 1:
268 return "doors_codriver";
269 break;
270 case 2:
271 return "doors_cargo1";
272 break;
273 case 3:
274 return "doors_cargo2";
275 break;
276 }
277
278 return super.GetDoorSelectionNameFromSeatPos(posIdx);
279 }

◆ GetDoorSelectionNameFromSeatPos() [6/6]

override string GetDoorSelectionNameFromSeatPos ( int posIdx)
inlineprotected
170 {
171 switch( posIdx )
172 {
173 case 0:
174 return "doors_driver";
175 break;
176 case 1:
177 return "doors_codriver";
178 break;
179 }
180
181 return super.GetDoorSelectionNameFromSeatPos(posIdx);
182 }

◆ GetPushForceCoefficientMultiplier()

override float GetPushForceCoefficientMultiplier ( )
inlineprotected
424 {
425 return 1.5;
426 }

◆ GetSeatAnimationType() [1/8]

override int GetSeatAnimationType ( int posIdx)
inlineprotected
88 {
89 switch (posIdx)
90 {
91 case 0:
92 return DayZPlayerConstants.VEHICLESEAT_DRIVER;
93 case 1:
94 return DayZPlayerConstants.VEHICLESEAT_CODRIVER;
95 case 2:
96 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_L;
97 case 3:
98 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_R;
99 }
100
101 return 0;
102 }
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

◆ GetSeatAnimationType() [2/8]

override int GetSeatAnimationType ( int posIdx)
inlineprotected
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 }

◆ GetSeatAnimationType() [3/8]

override int GetSeatAnimationType ( int posIdx)
inlineprotected
88 {
89 switch (posIdx)
90 {
91 case 0:
92 return DayZPlayerConstants.VEHICLESEAT_DRIVER;
93 case 1:
94 return DayZPlayerConstants.VEHICLESEAT_CODRIVER;
95 case 2:
96 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_L;
97 case 3:
98 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_R;
99 }
100
101 return 0;
102 }

◆ GetSeatAnimationType() [4/8]

override int GetSeatAnimationType ( int posIdx)
inlineprotected
90 {
91 switch (posIdx)
92 {
93 case 0:
94 return DayZPlayerConstants.VEHICLESEAT_DRIVER;
95 case 1:
96 return DayZPlayerConstants.VEHICLESEAT_CODRIVER;
97 case 2:
98 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_L;
99 case 3:
100 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_R;
101 }
102
103 return 0;
104
105 }

◆ GetSeatAnimationType() [5/8]

override int GetSeatAnimationType ( int posIdx)
inlineprotected
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 }

◆ GetSeatAnimationType() [6/8]

override int GetSeatAnimationType ( int posIdx)
inlineprotected
94 {
95 switch (posIdx)
96 {
97 case 0:
98 return DayZPlayerConstants.VEHICLESEAT_DRIVER;
99 case 1:
100 return DayZPlayerConstants.VEHICLESEAT_CODRIVER;
101 }
102
103 return 0;
104 }

◆ GetSeatAnimationType() [7/8]

override int GetSeatAnimationType ( int posIdx)
inlineprotected
70 {
71 switch( posIdx )
72 {
73 case 0:
74 return DayZPlayerConstants.VEHICLESEAT_DRIVER;
75 case 1:
76 return DayZPlayerConstants.VEHICLESEAT_CODRIVER;
77 }
78
79 return 0;
80 }

◆ GetSeatAnimationType() [8/8]

override int GetSeatAnimationType ( int posIdx)
inlineprotected
71 {
72 switch( posIdx )
73 {
74 case 0:
75 return DayZPlayerConstants.VEHICLESEAT_DRIVER;
76 case 1:
77 return DayZPlayerConstants.VEHICLESEAT_CODRIVER;
78 case 2:
79 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_L;
80 case 3:
81 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_L;
82 case 4:
83 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_L;
84 }
85
86 return 0;
87 }

◆ GetSeatIndexFromDoor() [1/3]

override int GetSeatIndexFromDoor ( string pDoorSelection)
inlineprotected
430 {
431 switch (pDoorSelection)
432 {
433 case "DoorsDriver":
434 return 0;
435 case "DoorsCoDriver":
436 return 1;
437 }
438
439 return -1;
440 }

◆ GetSeatIndexFromDoor() [2/3]

override int GetSeatIndexFromDoor ( string pDoorSelection)
inlineprotected
323 {
324 switch (pDoorSelection)
325 {
326 case "DoorsDriver":
327 return 0;
328
329 case "DoorsCoDriver":
330 return 1;
331 }
332
333 return -1;
334 }

◆ GetSeatIndexFromDoor() [3/3]

override int GetSeatIndexFromDoor ( string pDoorSelection)
inlineprotected
268 {
269 switch (pDoorSelection)
270 {
271 case "DoorsDriver":
272 return 0;
273 break;
274 case "DoorsCoDriver":
275 return 1;
276 break;
277 }
278 return -1;
279 }

◆ GetTransportCameraDistance() [1/4]

override float GetTransportCameraDistance ( )
inlineprotected
83 {
84 return 4.5;
85 }

◆ GetTransportCameraDistance() [2/4]

override float GetTransportCameraDistance ( )
inlineprotected
83 {
84 return 5.1;
85 }

◆ GetTransportCameraDistance() [3/4]

override float GetTransportCameraDistance ( )
inlineprotected
85 {
86 return 3.5;
87 }

◆ GetTransportCameraDistance() [4/4]

override float GetTransportCameraDistance ( )
inlineprotected
79 {
80 return 6.5;
81 }

◆ GetTransportCameraOffset()

override vector GetTransportCameraOffset ( )
inlineprotected
84 {
85 return "0 3.2 0";
86 }

◆ Hatchback_02()

void Hatchback_02 ( )
inlineprotected
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 }

Перекрестные ссылки m_CarDoorCloseSound, m_CarDoorOpenSound, m_CarHornLongSoundName, m_CarHornShortSoundName, m_EngineStartBattery, m_EngineStartFuel, m_EngineStartOK, m_EngineStartPlug и m_EngineStopFuel.

◆ IsVitalCarBattery() [1/2]

override bool IsVitalCarBattery ( )
inlineprotected
338 {
339 return false;
340 }

Используется в EOnPostSimulate(), GetBattery(), OnBeforeEngineStart() и SpawnUniversalParts().

◆ IsVitalCarBattery() [2/2]

override bool IsVitalCarBattery ( )
inlineprotected
203 {
204 return false;
205 }

◆ IsVitalEngineBelt() [1/2]

override bool IsVitalEngineBelt ( )
inlineprotected
353 {
354 return false;
355 }

◆ IsVitalEngineBelt() [2/2]

override bool IsVitalEngineBelt ( )
inlineprotected
218 {
219 return false;
220 }

◆ IsVitalGlowPlug() [1/7]

override bool IsVitalGlowPlug ( )
inlineprotected
356 {
357 return false;
358 }

Используется в EOnPostSimulate(), OnBeforeEngineStart() и SpawnUniversalParts().

◆ IsVitalGlowPlug() [2/7]

override bool IsVitalGlowPlug ( )
inlineprotected
341 {
342 return false;
343 }

◆ IsVitalGlowPlug() [3/7]

override bool IsVitalGlowPlug ( )
inlineprotected
379 {
380 return false;
381 }

◆ IsVitalGlowPlug() [4/7]

override bool IsVitalGlowPlug ( )
inlineprotected
363 {
364 return false;
365 }

◆ IsVitalGlowPlug() [5/7]

override bool IsVitalGlowPlug ( )
inlineprotected
348 {
349 return false;
350 }

◆ IsVitalGlowPlug() [6/7]

override bool IsVitalGlowPlug ( )
inlineprotected
213 {
214 return false;
215 }

◆ IsVitalGlowPlug() [7/7]

override bool IsVitalGlowPlug ( )
inlineprotected
273 {
274 return false;
275 }

◆ IsVitalRadiator() [1/3]

override bool IsVitalRadiator ( )
inlineprotected
387 {
388 return false;
389 }

Используется в EOnPostSimulate(), Hud::RefreshVehicleHud(), CarHud::RefreshVehicleHud() и SpawnUniversalParts().

◆ IsVitalRadiator() [2/3]

override bool IsVitalRadiator ( )
inlineprotected
358 {
359 return false;
360 }

◆ IsVitalRadiator() [3/3]

override bool IsVitalRadiator ( )
inlineprotected
223 {
224 return false;
225 }

◆ IsVitalSparkPlug() [1/3]

override bool IsVitalSparkPlug ( )
inlineprotected
382 {
383 return false;
384 }

Используется в EOnPostSimulate(), OnBeforeEngineStart() и SpawnUniversalParts().

◆ IsVitalSparkPlug() [2/3]

override bool IsVitalSparkPlug ( )
inlineprotected
343 {
344 return false;
345 }

◆ IsVitalSparkPlug() [3/3]

override bool IsVitalSparkPlug ( )
inlineprotected
208 {
209 return false;
210 }

◆ IsVitalTruckBattery() [1/6]

override bool IsVitalTruckBattery ( )
inlineprotected
351 {
352 return false;
353 }

Используется в EOnPostSimulate(), GetBattery(), OnBeforeEngineStart() и SpawnUniversalParts().

◆ IsVitalTruckBattery() [2/6]

override bool IsVitalTruckBattery ( )
inlineprotected
336 {
337 return false;
338 }

◆ IsVitalTruckBattery() [3/6]

override bool IsVitalTruckBattery ( )
inlineprotected
377 {
378 return false;
379 }

◆ IsVitalTruckBattery() [4/6]

override bool IsVitalTruckBattery ( )
inlineprotected
374 {
375 return false;
376 }

◆ IsVitalTruckBattery() [5/6]

override bool IsVitalTruckBattery ( )
inlineprotected
358 {
359 return false;
360 }

◆ IsVitalTruckBattery() [6/6]

override bool IsVitalTruckBattery ( )
inlineprotected
267 {
268 return false;
269 }

◆ Offroad_02()

void Offroad_02 ( )
inlineprotected
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 }

Перекрестные ссылки m_CarDoorCloseSound, m_CarDoorOpenSound, m_CarHornLongSoundName, m_CarHornShortSoundName, m_EngineStartBattery, m_EngineStartFuel, m_EngineStartOK, m_EngineStartPlug и m_EngineStopFuel.

◆ OffroadHatchback()

void OffroadHatchback ( )
inlineprotected
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

Перекрестные ссылки m_CarDoorCloseSound, m_CarDoorOpenSound, m_CarHornLongSoundName, m_CarHornShortSoundName, m_CarSeatShiftInSound, m_CarSeatShiftOutSound, m_EngineStartBattery, m_EngineStartFuel, m_EngineStartOK, m_EngineStartPlug и m_EngineStopFuel.

◆ OnAnimationPhaseStarted()

override void OnAnimationPhaseStarted ( string animSource,
float phase )
inlineprotected
225 {
226 super.OnAnimationPhaseStarted(animSource, phase);
227
228 #ifndef SERVER
229 switch (animSource)
230 {
231 case "wheelsideplate1":
232 case "wheelsideplate2":
234 if (phase == 0)
235 {
236 sound = SEffectManager.PlaySound("Truck_01_Gear_Open_Side_Plate_SoundSet", GetPosition(), 0.1, 0.1);
237 }
238 else
239 {
240 sound = SEffectManager.PlaySound("Truck_01_Gear_Close_Side_Plate_SoundSet", GetPosition(), 0.1, 0.1);
241 }
242
243 if (sound)
244 {
245 sound.SetAutodestroy(true);
246 }
247 break;
248 }
249 #endif
250 }
class JsonUndergroundAreaTriggerData GetPosition
Definition UndergroundAreaLoader.c:9
Wrapper class for managing sound through SEffectManager.
Definition EffectSound.c:5
Manager class for managing Effect (EffectParticle, EffectSound)
Definition EffectManager.c:6
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.
Definition EffectManager.c:169

Перекрестные ссылки GetPosition и SEffectManager::PlaySound().

◆ OnDebugSpawn() [1/7]

override void OnDebugSpawn ( )
inlineprotected
401 {
405
406 GetInventory().CreateInInventory("CivSedanWheel");
407 GetInventory().CreateInInventory("CivSedanWheel");
408 GetInventory().CreateInInventory("CivSedanWheel");
409 GetInventory().CreateInInventory("CivSedanWheel");
410
411 GetInventory().CreateInInventory("CivSedanDoors_Driver");
412 GetInventory().CreateInInventory("CivSedanDoors_CoDriver");
413 GetInventory().CreateInInventory("CivSedanDoors_BackLeft");
414 GetInventory().CreateInInventory("CivSedanDoors_BackRight");
415 GetInventory().CreateInInventory("CivSedanHood");
416 GetInventory().CreateInInventory("CivSedanTrunk");
417
418 //-----IN CAR CARGO
419 GetInventory().CreateInInventory("CivSedanWheel");
420 GetInventory().CreateInInventory("CivSedanWheel");
421 }
void SpawnUniversalParts()
Definition CarScript.c:2761
void SpawnAdditionalItems()
Definition CarScript.c:2799
void FillUpCarFluids()
Definition CarScript.c:2829

Перекрестные ссылки FillUpCarFluids(), SpawnAdditionalItems() и SpawnUniversalParts().

◆ OnDebugSpawn() [2/7]

override void OnDebugSpawn ( )
inlineprotected
380 {
384
385 GetInventory().CreateInInventory("Hatchback_02_Wheel");
386 GetInventory().CreateInInventory("Hatchback_02_Wheel");
387 GetInventory().CreateInInventory("Hatchback_02_Wheel");
388 GetInventory().CreateInInventory("Hatchback_02_Wheel");
389
390 GetInventory().CreateInInventory("Hatchback_02_Door_1_1");
391 GetInventory().CreateInInventory("Hatchback_02_Door_1_2");
392 GetInventory().CreateInInventory("Hatchback_02_Door_2_1");
393 GetInventory().CreateInInventory("Hatchback_02_Door_2_2");
394 GetInventory().CreateInInventory("Hatchback_02_Hood");
395 GetInventory().CreateInInventory("Hatchback_02_Trunk");
396
397 //-----IN CAR CARGO
398 GetInventory().CreateInInventory("Hatchback_02_Wheel");
399 GetInventory().CreateInInventory("Hatchback_02_Wheel");
400 }

Перекрестные ссылки FillUpCarFluids(), SpawnAdditionalItems() и SpawnUniversalParts().

◆ OnDebugSpawn() [3/7]

override void OnDebugSpawn ( )
inlineprotected
392 {
396
397 GetInventory().CreateInInventory("Offroad_02_Wheel");
398 GetInventory().CreateInInventory("Offroad_02_Wheel");
399 GetInventory().CreateInInventory("Offroad_02_Wheel");
400 GetInventory().CreateInInventory("Offroad_02_Wheel");
401
402 GetInventory().CreateInInventory("Offroad_02_Door_1_1");
403 GetInventory().CreateInInventory("Offroad_02_Door_1_2");
404 GetInventory().CreateInInventory("Offroad_02_Door_2_1");
405 GetInventory().CreateInInventory("Offroad_02_Door_2_2");
406 GetInventory().CreateInInventory("Offroad_02_Hood");
407 GetInventory().CreateInInventory("Offroad_02_Trunk");
408
409 //-----IN CAR CARGO
410 GetInventory().CreateInInventory("Offroad_02_Wheel");
411 GetInventory().CreateInInventory("Offroad_02_Wheel");
412 }

Перекрестные ссылки FillUpCarFluids(), SpawnAdditionalItems() и SpawnUniversalParts().

◆ OnDebugSpawn() [4/7]

override void OnDebugSpawn ( )
inlineprotected
450 {
454
455 GetInventory().CreateInInventory("HatchbackWheel");
456 GetInventory().CreateInInventory("HatchbackWheel");
457 GetInventory().CreateInInventory("HatchbackWheel" );
458 GetInventory().CreateInInventory("HatchbackWheel");
459
460 GetInventory().CreateInInventory("HatchbackDoors_Driver");
461 GetInventory().CreateInInventory("HatchbackDoors_CoDriver");
462 GetInventory().CreateInInventory("HatchbackHood");
463 GetInventory().CreateInInventory("HatchbackTrunk");
464
465 //-----IN CAR CARGO
466 GetInventory().CreateInInventory("HatchbackWheel");
467 GetInventory().CreateInInventory("HatchbackWheel");
468 }

Перекрестные ссылки FillUpCarFluids(), SpawnAdditionalItems() и SpawnUniversalParts().

◆ OnDebugSpawn() [5/7]

override void OnDebugSpawn ( )
inlineprotected
408 {
412
413 GetInventory().CreateInInventory("Sedan_02_Wheel");
414 GetInventory().CreateInInventory("Sedan_02_Wheel");
415 GetInventory().CreateInInventory("Sedan_02_Wheel");
416 GetInventory().CreateInInventory("Sedan_02_Wheel");
417 GetInventory().CreateInInventory("Sedan_02_Wheel");
418
419 GetInventory().CreateInInventory("Sedan_02_Door_1_1");
420 GetInventory().CreateInInventory("Sedan_02_Door_1_2");
421 GetInventory().CreateInInventory("Sedan_02_Door_2_1");
422 GetInventory().CreateInInventory("Sedan_02_Door_2_2");
423 GetInventory().CreateInInventory("Sedan_02_Hood");
424 GetInventory().CreateInInventory("Sedan_02_Trunk");
425
426 //-----IN CAR CARGO
427 GetInventory().CreateInInventory("Sedan_02_Wheel");
428 GetInventory().CreateInInventory("Sedan_02_Wheel");
429 }

Перекрестные ссылки FillUpCarFluids(), SpawnAdditionalItems() и SpawnUniversalParts().

◆ OnDebugSpawn() [6/7]

override void OnDebugSpawn ( )
inlineprotected
375 {
379
380 GetInventory().CreateInInventory("Truck_01_Wheel");
381 GetInventory().CreateInInventory("Truck_01_Wheel");
382
383 GetInventory().CreateInInventory("Truck_01_WheelDouble");
384 GetInventory().CreateInInventory("Truck_01_WheelDouble");
385 GetInventory().CreateInInventory("Truck_01_WheelDouble");
386 GetInventory().CreateInInventory("Truck_01_WheelDouble");
387
388 GetInventory().CreateInInventory("Truck_01_Door_1_1");
389 GetInventory().CreateInInventory("Truck_01_Door_2_1");
390 GetInventory().CreateInInventory("Truck_01_Hood");
391
392 //-----IN CAR CARGO
393 GetInventory().CreateInInventory("Truck_01_Wheel");
394 GetInventory().CreateInInventory("Truck_01_Wheel");
395 GetInventory().CreateInInventory("Truck_01_WheelDouble");
396 GetInventory().CreateInInventory("Truck_01_WheelDouble");
397 }

Перекрестные ссылки FillUpCarFluids(), SpawnAdditionalItems() и SpawnUniversalParts().

◆ OnDebugSpawn() [7/7]

override void OnDebugSpawn ( )
inlineprotected
282 {
284
285 if ( Class.CastTo(entity, this) )
286 {
287 entity.GetInventory().CreateInInventory( "Truck_02_Wheel" );
288 entity.GetInventory().CreateInInventory( "Truck_02_Wheel" );
289 entity.GetInventory().CreateInInventory( "Truck_02_Wheel" );
290 entity.GetInventory().CreateInInventory( "Truck_02_Wheel" );
291
292 entity.GetInventory().CreateInInventory( "TruckBattery" );
293 entity.GetInventory().CreateInInventory( "SparkPlug" );
294
295 entity.GetInventory().CreateInInventory( "Truck_02_Door_1_1" );
296 entity.GetInventory().CreateInInventory( "Truck_02_Door_2_1" );
297
298 entity.GetInventory().CreateInInventory( "HeadlightH7" );
299 entity.GetInventory().CreateInInventory( "HeadlightH7" );
300 }
301
302 Fill( CarFluid.FUEL, 50 );
303 Fill( CarFluid.OIL, 4.0 );
304 };
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
Definition Car.c:19
Definition Building.c:6

Перекрестные ссылки Class::CastTo().

◆ OnEngineStart() [1/8]

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

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnEngineStart() [2/8]

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

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnEngineStart() [3/8]

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

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnEngineStart() [4/8]

override void OnEngineStart ( )
inlineprotected
49 {
50 super.OnEngineStart();
51
52 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
53 {
54 m_UTSource.SetDefferedActive(true, 20.0);
55 }
56 }

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnEngineStart() [5/8]

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

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnEngineStart() [6/8]

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

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnEngineStart() [7/8]

override void OnEngineStart ( )
inlineprotected
34 {
35 super.OnEngineStart();
36
37 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
38 {
39 m_UTSource.SetDefferedActive(true, 20.0);
40 }
41 }

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnEngineStart() [8/8]

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

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnEngineStop() [1/8]

override void OnEngineStop ( )
inlineprotected
57 {
58 super.OnEngineStop();
59
60 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
61 {
62 m_UTSource.SetDefferedActive(false, 10.0);
63 }
64 }

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnEngineStop() [2/8]

override void OnEngineStop ( )
inlineprotected
57 {
58 super.OnEngineStop();
59
60 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
61 {
62 m_UTSource.SetDefferedActive(false, 10.0);
63 }
64 }

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnEngineStop() [3/8]

override void OnEngineStop ( )
inlineprotected
57 {
58 super.OnEngineStop();
59
60 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
61 {
62 m_UTSource.SetDefferedActive(false, 10.0);
63 }
64 }

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnEngineStop() [4/8]

override void OnEngineStop ( )
inlineprotected
59 {
60 super.OnEngineStop();
61
62 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
63 {
64 m_UTSource.SetDefferedActive(false, 10.0);
65 }
66 }

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnEngineStop() [5/8]

override void OnEngineStop ( )
inlineprotected
57 {
58 super.OnEngineStop();
59
60 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
61 {
62 m_UTSource.SetDefferedActive(false, 10.0);
63 }
64 }

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnEngineStop() [6/8]

override void OnEngineStop ( )
inlineprotected
58 {
59 super.OnEngineStop();
60
61 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
62 {
63 m_UTSource.SetDefferedActive(false, 10.0);
64 }
65 }

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnEngineStop() [7/8]

override void OnEngineStop ( )
inlineprotected
44 {
45 super.OnEngineStop();
46
47 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
48 {
49 m_UTSource.SetDefferedActive(false, 10.0);
50 }
51 }

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnEngineStop() [8/8]

override void OnEngineStop ( )
inlineprotected
43 {
44 super.OnEngineStop();
45
46 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
47 {
48 m_UTSource.SetDefferedActive(false, 10.0);
49 }
50 }

Перекрестные ссылки GetGame() и m_UTSource.

◆ OnSound() [1/8]

override float OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected
287 {
288 switch (ctrl)
289 {
290 case CarSoundCtrl.DOORS:
291 float newValue = 0;
292 if (GetCarDoorsState("CivSedanDriverDoors") == CarDoorState.DOORS_CLOSED)
293 {
294 newValue += 0.25;
295 }
296
297 if (GetCarDoorsState("CivSedanCoDriverDoors") == CarDoorState.DOORS_CLOSED)
298 {
299 newValue += 0.25;
300 }
301
302 if (GetCarDoorsState("CivSedanCargo1Doors") == CarDoorState.DOORS_CLOSED)
303 {
304 newValue += 0.25;
305 }
306
307 if (GetCarDoorsState("CivSedanCargo2Doors") == CarDoorState.DOORS_CLOSED)
308 {
309 newValue += 0.25;
310 }
311
312 if (GetHealthLevel("WindowFront") == GameConstants.STATE_RUINED)
313 {
314 newValue -= 0.6;
315 }
316
317 if (GetHealthLevel("WindowBack") == GameConstants.STATE_RUINED)
318 {
319 newValue -= 0.6;
320 }
321
322 return Math.Clamp(newValue, 0, 1);
323 break;
324 }
325
326 return super.OnSound(ctrl, oldValue);
327 }
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:807
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'.

Перекрестные ссылки Math::Clamp(), GetCarDoorsState() и GameConstants::STATE_RUINED.

◆ OnSound() [2/8]

override float OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected
281 {
282 switch (ctrl)
283 {
284 case CarSoundCtrl.DOORS:
285 float newValue = 0;
286 if (GetCarDoorsState("Hatchback_02_Door_1_1") == CarDoorState.DOORS_CLOSED)
287 {
288 newValue += 0.25;
289 }
290
291 if (GetCarDoorsState("Hatchback_02_Door_2_1") == CarDoorState.DOORS_CLOSED)
292 {
293 newValue += 0.25;
294 }
295
296 if (GetCarDoorsState("Hatchback_02_Door_1_2") == CarDoorState.DOORS_CLOSED)
297 {
298 newValue += 0.25;
299 }
300
301 if (GetCarDoorsState("Hatchback_02_Door_2_2") == CarDoorState.DOORS_CLOSED)
302 {
303 newValue += 0.25;
304 }
305
306 return Math.Clamp(newValue, 0, 1);
307 break;
308 }
309
310 return super.OnSound(ctrl, oldValue);
311 }

Перекрестные ссылки Math::Clamp() и GetCarDoorsState().

◆ OnSound() [3/8]

override float OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected
289 {
290 switch ( ctrl )
291 {
292 case CarSoundCtrl.DOORS:
293 float newValue = 0;
294 if (GetCarDoorsState("Offroad_02_Door_1_1") == CarDoorState.DOORS_CLOSED)
295 {
296 newValue += 0.25;
297 }
298
299 if (GetCarDoorsState("Offroad_02_Door_2_1") == CarDoorState.DOORS_CLOSED)
300 {
301 newValue += 0.25;
302 }
303
304 if (GetCarDoorsState("Offroad_02_Door_1_2") == CarDoorState.DOORS_CLOSED)
305 {
306 newValue += 0.25;
307 }
308
309 if (GetCarDoorsState("Offroad_02_Door_2_2") == CarDoorState.DOORS_CLOSED)
310 {
311 newValue += 0.25;
312 }
313
314 return Math.Clamp(newValue, 0, 1);
315 break;
316 }
317
318 return super.OnSound(ctrl, oldValue);
319 }

Перекрестные ссылки Math::Clamp() и GetCarDoorsState().

◆ OnSound() [4/8]

override float OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected
278 {
279 float tempCap = 0.0;
280
281 switch (ctrl)
282 {
283 case CarSoundCtrl.DOORS:
284 float newValue = 0;
285 if (GetCarDoorsState("NivaDriverDoors") == CarDoorState.DOORS_CLOSED)
286 {
287 newValue += 0.5;
288 }
289
290 if (GetCarDoorsState("NivaCoDriverDoors") == CarDoorState.DOORS_CLOSED)
291 {
292 newValue += 0.5;
293 }
294
295 if (GetCarDoorsState("NivaTrunk") == CarDoorState.DOORS_CLOSED)
296 {
297 newValue += 0.3;
298 }
299
300 if (GetHealthLevel("WindowFront") == GameConstants.STATE_RUINED)
301 {
302 newValue -= 0.6;
303 }
304
305 if (GetHealthLevel("WindowLR") == GameConstants.STATE_RUINED)
306 {
307 newValue -= 0.2;
308 }
309
310 if (GetHealthLevel("WindowRR") == GameConstants.STATE_RUINED)
311 {
312 newValue -= 0.2;
313 }
314
315 return Math.Clamp(newValue, 0, 1);
316 break;
317 }
318
319 return super.OnSound(ctrl, oldValue);
320 }

Перекрестные ссылки Math::Clamp(), GetCarDoorsState() и GameConstants::STATE_RUINED.

◆ OnSound() [5/8]

override float OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected
303 {
304 switch ( ctrl )
305 {
306 case CarSoundCtrl.DOORS:
307 float newValue = 0;
308 if (GetCarDoorsState("Sedan_02_Door_1_1") == CarDoorState.DOORS_CLOSED)
309 {
310 newValue += 0.25;
311 }
312
313 if (GetCarDoorsState("Sedan_02_Door_2_1") == CarDoorState.DOORS_CLOSED)
314 {
315 newValue += 0.25;
316 }
317
318 if (GetCarDoorsState("Sedan_02_Door_1_2") == CarDoorState.DOORS_CLOSED)
319 {
320 newValue += 0.25;
321 }
322
323 if (GetCarDoorsState("Sedan_02_Door_2_2") == CarDoorState.DOORS_CLOSED)
324 {
325 newValue += 0.25;
326 }
327
328 return Math.Clamp(newValue, 0, 1);
329 break;
330 }
331
332 return super.OnSound(ctrl, oldValue);
333 }

Перекрестные ссылки Math::Clamp() и GetCarDoorsState().

◆ OnSound() [6/8]

override float OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected
200 {
201 switch (ctrl)
202 {
203 case CarSoundCtrl.DOORS:
204 float newValue = 0;
205
206 //-----
207 if (GetCarDoorsState("Truck_01_Door_1_1") == CarDoorState.DOORS_CLOSED)
208 {
209 newValue += 0.4;
210 }
211
212 if (GetCarDoorsState("Truck_01_Door_2_1") == CarDoorState.DOORS_CLOSED)
213 {
214 newValue += 0.4;
215 }
216
217 return Math.Clamp(newValue, 0, 1);
218 break;
219 }
220
221 return super.OnSound(ctrl, oldValue);
222 }

Перекрестные ссылки Math::Clamp() и GetCarDoorsState().

◆ OnSound() [7/8]

override float OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected
154 {
155 switch ( ctrl )
156 {
157 case CarSoundCtrl.DOORS:
158 float newValue = 0;
159
160 //-----
161 if ( GetCarDoorsState( "Truck_02_Door_1_1" ) == CarDoorState.DOORS_CLOSED )
162 {
163 newValue += 0.4;
164 }
165
166 if ( GetCarDoorsState( "Truck_02_Door_2_1" ) == CarDoorState.DOORS_CLOSED )
167 {
168 newValue += 0.4;
169 }
170
171 if ( newValue > 1 )
172 newValue = 1;
173
174 return newValue;
175 break;
176 }
177
178 return oldValue;
179 }

Перекрестные ссылки GetCarDoorsState().

◆ OnSound() [8/8]

override float OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected
186 {
187 switch ( ctrl )
188 {
189 case CarSoundCtrl.DOORS:
190 float newValue = 0;
191
192 //-----
193 if ( GetCarDoorsState( "Van_01_Door_1_1" ) == CarDoorState.DOORS_CLOSED )
194 newValue += 0.25;
195
196 //-----
197 if ( GetCarDoorsState( "Van_01_Door_2_1" ) == CarDoorState.DOORS_CLOSED )
198 newValue += 0.25;
199
200 //-----
201 if ( GetCarDoorsState( "Van_01_Door_2_2" ) == CarDoorState.DOORS_CLOSED )
202 newValue += 0.25;
203
204 //-----
205 if ( GetCarDoorsState( "Van_01_Trunk_1" ) == CarDoorState.DOORS_CLOSED )
206 newValue += 0.125;
207
208 //-----
209 if ( GetCarDoorsState( "Van_01_Trunk_2" ) == CarDoorState.DOORS_CLOSED )
210 newValue += 0.125;
211
212 if ( newValue > 1 )
213 newValue = 1;
214
215 return newValue;
216 break;
217 }
218
219 return oldValue;
220 }

Перекрестные ссылки GetCarDoorsState().

◆ Sedan_02()

void Sedan_02 ( )
inlineprotected
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:161

Перекрестные ссылки m_CarDoorCloseSound, m_CarDoorOpenSound, m_CarHornLongSoundName, m_CarHornShortSoundName, m_dmgContactCoef, m_EngineStartBattery, m_EngineStartFuel, m_EngineStartOK, m_EngineStartPlug и m_EngineStopFuel.

◆ SetActions() [1/2]

override void SetActions ( )
inlineprotected
443 {
444 super.SetActions();
445
447 }
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220
Definition ActionAnimateSeats.c:2

Перекрестные ссылки AddAction().

Используется в InitializeActions().

◆ SetActions() [2/2]

override void SetActions ( )
inlineprotected
363 {
364 super.SetActions();
365
372 }
ActionDetachFromTarget_SpecificSlot_WoodenPlanks ActionDetachFromTarget_SpecificSlot ActionDetachFromTarget_SpecificSlot_MetalSheets()
Definition ActionDetachFromTarget.c:223
ActionDetachFromTarget_SpecificSlotsCategory_Barrel ActionDetachFromTarget_SpecificSlotsCategory ActionDetachFromTarget_SpecificSlotsCategory_WoodenCrate()
Definition ActionDetachFromTarget.c:239
ActionDetachFromTarget_SpecificSlotsCategory ActionDetachFromTarget ActionDetachFromTarget_SpecificSlot_WoodenLogs()
Definition ActionDetachFromTarget.c:207
Definition ActionDetachFromTarget.c:214
Definition ActionDetachFromTarget.c:230
Definition ActionSidePlateInteract.c:2

Перекрестные ссылки ActionDetachFromTarget_SpecificSlot_MetalSheets(), ActionDetachFromTarget_SpecificSlot_WoodenLogs(), ActionDetachFromTarget_SpecificSlotsCategory_WoodenCrate() и AddAction().

◆ Truck_01_Base()

void Truck_01_Base ( )
inlineprotected
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:195

Перекрестные ссылки m_CarDoorCloseSound, m_CarDoorOpenSound, m_CarHornLongSoundName, m_CarHornShortSoundName, m_enginePtcPos, m_EngineStartBattery, m_EngineStartFuel, m_EngineStartOK, m_EngineStartPlug и m_EngineStopFuel.

◆ Truck_02()

void Truck_02 ( )
inlineprotected
8 {
9 //m_dmgContactCoef = 0.018;
10 m_enginePtcPos = "0 1.346 2.205";
11 }

Перекрестные ссылки m_enginePtcPos.

◆ Van_01()

void Van_01 ( )
inlineprotected
8 {
9 //m_dmgContactCoef = 0.070; //TODO::Set proper value
10 }

Поля

◆ m_UTSLEngine

◆ m_UTSource

ref UniversalTemperatureSource m_UTSource
protected

◆ m_UTSSettings

ref UniversalTemperatureSourceSettings m_UTSSettings
protected

Объявления и описания членов классов находятся в файлах: