23 SetEnginePos(
"0 0.7 1.6");
47 super.OnEngineStart();
117 if( !super.CanReleaseAttachment( attachment ) )
120 string attType = attachment.GetType();
124 if ( attType ==
"CarRadiator" || attType ==
"CarBattery" || attType ==
"SparkPlug")
139 if (!super.CanDisplayAttachmentCategory(category_name))
144 if (category_name.
Contains(
"engine"))
155 if ( !super.CanDisplayCargo() )
168 Class.
CastTo( carDoor, FindAttachmentBySlotName( slotType ) );
176 case "CivSedanDriverDoors":
180 case "CivSedanCoDriverDoors":
184 case "CivSedanCargo1Doors":
188 case "CivSedanCargo2Doors":
192 case "CivSedanTrunk":
246 return "doors_driver";
249 return "doors_codriver";
252 return "doors_cargo1";
255 return "doors_cargo2";
259 return super.GetDoorSelectionNameFromSeatPos(posIdx);
267 return "CivSedanDriverDoors";
270 return "CivSedanCoDriverDoors";
273 return "CivSedanCargo1Doors";
276 return "CivSedanCargo2Doors";
280 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
325 return super.OnSound(ctrl, oldValue);
333 return "DoorsDriver";
334 case "doors_codriver":
335 return "DoorsCoDriver";
337 return "DoorsCargo1";
339 return "DoorsCargo2";
364 return nextSeat == 1;
367 return nextSeat == 0;
370 return nextSeat == 3;
373 return nextSeat == 2;
381 switch (pCurrentSeat)
384 return pDoorsSelection ==
"DoorsDriver";
387 return pDoorsSelection ==
"DoorsCoDriver";
390 return pDoorsSelection ==
"DoorsCargo1";
393 return pDoorsSelection ==
"DoorsCargo2";
405 GetInventory().CreateInInventory(
"CivSedanWheel");
406 GetInventory().CreateInInventory(
"CivSedanWheel");
407 GetInventory().CreateInInventory(
"CivSedanWheel");
408 GetInventory().CreateInInventory(
"CivSedanWheel");
410 GetInventory().CreateInInventory(
"CivSedanDoors_Driver");
411 GetInventory().CreateInInventory(
"CivSedanDoors_CoDriver");
412 GetInventory().CreateInInventory(
"CivSedanDoors_BackLeft");
413 GetInventory().CreateInInventory(
"CivSedanDoors_BackRight");
414 GetInventory().CreateInInventory(
"CivSedanHood");
415 GetInventory().CreateInInventory(
"CivSedanTrunk");
418 GetInventory().CreateInInventory(
"CivSedanWheel");
419 GetInventory().CreateInInventory(
"CivSedanWheel");
431 GetInventory().CreateInInventory(
"CivSedanWheel");
432 GetInventory().CreateInInventory(
"CivSedanWheel");
433 GetInventory().CreateInInventory(
"CivSedanWheel");
434 GetInventory().CreateInInventory(
"CivSedanWheel");
436 GetInventory().CreateInInventory(
"CivSedanDoors_Driver_Wine");
437 GetInventory().CreateInInventory(
"CivSedanDoors_CoDriver_Wine");
438 GetInventory().CreateInInventory(
"CivSedanDoors_BackLeft_Wine");
439 GetInventory().CreateInInventory(
"CivSedanDoors_BackRight_Wine");
440 GetInventory().CreateInInventory(
"CivSedanHood_Wine");
441 GetInventory().CreateInInventory(
"CivSedanTrunk_Wine");
444 GetInventory().CreateInInventory(
"CivSedanWheel");
445 GetInventory().CreateInInventory(
"CivSedanWheel");
457 GetInventory().CreateInInventory(
"CivSedanWheel");
458 GetInventory().CreateInInventory(
"CivSedanWheel");
459 GetInventory().CreateInInventory(
"CivSedanWheel");
460 GetInventory().CreateInInventory(
"CivSedanWheel");
462 GetInventory().CreateInInventory(
"CivSedanDoors_Driver_Black");
463 GetInventory().CreateInInventory(
"CivSedanDoors_CoDriver_Black");
464 GetInventory().CreateInInventory(
"CivSedanDoors_BackLeft_Black");
465 GetInventory().CreateInInventory(
"CivSedanDoors_BackRight_Black");
466 GetInventory().CreateInInventory(
"CivSedanHood_Black");
467 GetInventory().CreateInInventory(
"CivSedanTrunk_Black");
470 GetInventory().CreateInInventory(
"CivSedanWheel");
471 GetInventory().CreateInInventory(
"CivSedanWheel");
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
CarDoorState TranslateAnimationPhaseToCarDoorState(string animation)
protected void SpawnUniversalParts()
string m_EngineStartOK
Sounds.
protected void FillUpCarFluids()
string m_CarDoorCloseSound
string m_EngineStartBattery
protected void SpawnAdditionalItems()
string m_CarHornShortSoundName
string m_CarHornLongSoundName
string m_CarDoorOpenSound
protected ref UniversalTemperatureSourceSettings m_UTSSettings
override int GetCarDoorsState(string slotType)
protected ref UniversalTemperatureSource m_UTSource
protected ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
protected ref UniversalTemperatureSourceSettings m_UTSSettings
override int GetCarDoorsState(string slotType)
override void OnDebugSpawn()
override bool CanDisplayAttachmentCategory(string category_name)
override void EOnPostSimulate(IEntity other, float timeSlice)
override float GetTransportCameraDistance()
override bool IsVitalGlowPlug()
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
override bool CanDisplayCargo()
override int GetAnimInstance()
override bool CrewCanGetThrough(int posIdx)
override CarLightBase CreateFrontLight()
override CarRearLightBase CreateRearLight()
override float OnSound(CarSoundCtrl ctrl, float oldValue)
override bool IsVitalTruckBattery()
override bool CanReleaseAttachment(EntityAI attachment)
override void OnEngineStart()
override string GetAnimSourceFromSelection(string selection)
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
protected ref UniversalTemperatureSource m_UTSource
override protected bool CanManipulateSpareWheel(string slotSelectionName)
override string GetDoorSelectionNameFromSeatPos(int posIdx)
override int GetSeatAnimationType(int posIdx)
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
protected ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
override void OnEngineStop()
override void OnDebugSpawn()
Super root of all classes in Enforce script.
original Timer deletes m_params which is unwanted
float m_TemperatureMax
min temperature you can get from the TemperatureSource
float m_RangeFull
temperature cap that will limit the return value from GetTemperature method
bool m_ManualUpdate
if the Update is running periodically
float m_TemperatureMin
how often the Update is ticking
float m_RangeMax
range where the full temperature is given to receiver
float m_TemperatureCap
max temperature you can get from the TemperatureSource
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 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.