23 SetEnginePos(
"0 0.7 1.6");
46 super.OnEngineStart();
116 if( !super.CanReleaseAttachment( attachment ) )
119 string attType = attachment.GetType();
123 if ( attType ==
"CarRadiator" || attType ==
"CarBattery" || attType ==
"SparkPlug")
138 if (!super.CanDisplayAttachmentCategory(category_name))
143 if (category_name.
Contains(
"engine"))
154 if ( !super.CanDisplayCargo() )
167 Class.
CastTo( carDoor, FindAttachmentBySlotName( slotType ) );
175 case "CivSedanDriverDoors":
179 case "CivSedanCoDriverDoors":
183 case "CivSedanCargo1Doors":
187 case "CivSedanCargo2Doors":
191 case "CivSedanTrunk":
245 return "doors_driver";
248 return "doors_codriver";
251 return "doors_cargo1";
254 return "doors_cargo2";
258 return super.GetDoorSelectionNameFromSeatPos(posIdx);
266 return "CivSedanDriverDoors";
269 return "CivSedanCoDriverDoors";
272 return "CivSedanCargo1Doors";
275 return "CivSedanCargo2Doors";
279 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
324 return super.OnSound(ctrl, oldValue);
332 return "DoorsDriver";
333 case "doors_codriver":
334 return "DoorsCoDriver";
336 return "DoorsCargo1";
338 return "DoorsCargo2";
363 return nextSeat == 1;
366 return nextSeat == 0;
369 return nextSeat == 3;
372 return nextSeat == 2;
380 switch (pCurrentSeat)
383 return pDoorsSelection ==
"DoorsDriver";
386 return pDoorsSelection ==
"DoorsCoDriver";
389 return pDoorsSelection ==
"DoorsCargo1";
392 return pDoorsSelection ==
"DoorsCargo2";
404 GetInventory().CreateInInventory(
"CivSedanWheel");
405 GetInventory().CreateInInventory(
"CivSedanWheel");
406 GetInventory().CreateInInventory(
"CivSedanWheel");
407 GetInventory().CreateInInventory(
"CivSedanWheel");
409 GetInventory().CreateInInventory(
"CivSedanDoors_Driver");
410 GetInventory().CreateInInventory(
"CivSedanDoors_CoDriver");
411 GetInventory().CreateInInventory(
"CivSedanDoors_BackLeft");
412 GetInventory().CreateInInventory(
"CivSedanDoors_BackRight");
413 GetInventory().CreateInInventory(
"CivSedanHood");
414 GetInventory().CreateInInventory(
"CivSedanTrunk");
417 GetInventory().CreateInInventory(
"CivSedanWheel");
418 GetInventory().CreateInInventory(
"CivSedanWheel");
435 GetInventory().CreateInInventory(
"CivSedanWheel");
436 GetInventory().CreateInInventory(
"CivSedanWheel");
437 GetInventory().CreateInInventory(
"CivSedanWheel");
438 GetInventory().CreateInInventory(
"CivSedanWheel");
440 GetInventory().CreateInInventory(
"CivSedanDoors_Driver_Wine");
441 GetInventory().CreateInInventory(
"CivSedanDoors_CoDriver_Wine");
442 GetInventory().CreateInInventory(
"CivSedanDoors_BackLeft_Wine");
443 GetInventory().CreateInInventory(
"CivSedanDoors_BackRight_Wine");
444 GetInventory().CreateInInventory(
"CivSedanHood_Wine");
445 GetInventory().CreateInInventory(
"CivSedanTrunk_Wine");
448 GetInventory().CreateInInventory(
"CivSedanWheel");
449 GetInventory().CreateInInventory(
"CivSedanWheel");
461 GetInventory().CreateInInventory(
"CivSedanWheel");
462 GetInventory().CreateInInventory(
"CivSedanWheel");
463 GetInventory().CreateInInventory(
"CivSedanWheel");
464 GetInventory().CreateInInventory(
"CivSedanWheel");
466 GetInventory().CreateInInventory(
"CivSedanDoors_Driver_Black");
467 GetInventory().CreateInInventory(
"CivSedanDoors_CoDriver_Black");
468 GetInventory().CreateInInventory(
"CivSedanDoors_BackLeft_Black");
469 GetInventory().CreateInInventory(
"CivSedanDoors_BackRight_Black");
470 GetInventory().CreateInInventory(
"CivSedanHood_Black");
471 GetInventory().CreateInInventory(
"CivSedanTrunk_Black");
474 GetInventory().CreateInInventory(
"CivSedanWheel");
475 GetInventory().CreateInInventory(
"CivSedanWheel");
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
void SpawnUniversalParts()
CarDoorState TranslateAnimationPhaseToCarDoorState(string animation)
void SpawnAdditionalItems()
string m_EngineStartOK
Sounds.
string m_CarDoorCloseSound
string m_EngineStartBattery
string m_CarHornShortSoundName
string m_CarHornLongSoundName
string m_CarDoorOpenSound
override int GetCarDoorsState(string slotType)
UniversalTemperatureSourceLambdaBaseImpl UniversalTemperatureSourceLambdaBase UniversalTemperatureSourceLambdaEngine()
override float OnSound(CarSoundCtrl ctrl, float oldValue)
override float GetTransportCameraDistance()
override string GetDoorSelectionNameFromSeatPos(int posIdx)
override int GetAnimInstance()
override CarRearLightBase CreateRearLight()
override void OnDebugSpawn()
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
override CarLightBase CreateFrontLight()
override bool IsVitalGlowPlug()
override int GetCarDoorsState(string slotType)
override bool IsVitalTruckBattery()
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
override string GetAnimSourceFromSelection(string selection)
override bool CanDisplayCargo()
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
override void EOnPostSimulate(IEntity other, float timeSlice)
override void OnEngineStart()
override bool CanReleaseAttachment(EntityAI attachment)
override bool CrewCanGetThrough(int posIdx)
ref UniversalTemperatureSource m_UTSource
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
bool CanManipulateSpareWheel(string slotSelectionName)
override float GetPushForceCoefficientMultiplier()
override void OnEngineStop()
override bool CanDisplayAttachmentCategory(string category_name)
override int GetSeatAnimationType(int posIdx)
ref UniversalTemperatureSourceSettings m_UTSSettings
override void OnDebugSpawn()
Super root of all classes in Enforce script.
original Timer deletes m_params which is unwanted
DayZPlayerConstants
defined in C++
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static const float ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE
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'.
bool Contains(string sample)
Returns true if sample is substring of string.
proto int ToLower()
Changes string to lowercase. Returns length.