24 SetEnginePos(
"0 1.4 2.25");
48 super.OnEngineStart();
119 if (!super.CanReleaseAttachment(attachment))
124 if (EngineIsOn() && attachment.GetType() ==
"TruckBattery")
134 if (slotSelectionName ==
"wheel_spare_1")
136 return GetAnimationPhase(
"wheelSidePlate1") == 1.0);
139 if (slotSelectionName ==
"wheel_spare_2")
141 return GetAnimationPhase(
"wheelSidePlate2") == 1.0);
144 return super.CanManipulateSpareWheel(slotSelectionName);
173 return "doors_driver";
176 return "doors_codriver";
180 return super.GetDoorSelectionNameFromSeatPos(posIdx);
188 return "Truck_01_Door_1_1";
191 return "Truck_01_Door_2_1";
195 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
220 return super.OnSound(ctrl, oldValue);
225 super.OnAnimationPhaseStarted(animSource, phase);
230 case "wheelsideplate1":
231 case "wheelsideplate2":
254 Class.
CastTo(carDoor, FindAttachmentBySlotName(slotType));
262 case "Truck_01_Door_1_1":
264 case "Truck_01_Door_2_1":
266 case "Truck_01_Hood":
278 return "DoorsDriver";
279 case "doors_codriver":
280 return "DoorsCoDriver";
285 case "wheelsideplate1":
286 return "WheelSidePlate1";
287 case "wheelsideplate2":
288 return "WheelSidePlate2";
299 return nextSeat == 1;
301 return nextSeat == 0;
309 switch (pCurrentSeat)
312 return pDoorsSelection ==
"DoorsDriver";
315 return pDoorsSelection ==
"DoorsCoDriver";
323 switch (pDoorSelection)
328 case "DoorsCoDriver":
379 GetInventory().CreateInInventory(
"Truck_01_Wheel");
380 GetInventory().CreateInInventory(
"Truck_01_Wheel");
382 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
383 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
384 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
385 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
387 GetInventory().CreateInInventory(
"Truck_01_Door_1_1");
388 GetInventory().CreateInInventory(
"Truck_01_Door_2_1");
389 GetInventory().CreateInInventory(
"Truck_01_Hood");
392 GetInventory().CreateInInventory(
"Truck_01_Wheel");
393 GetInventory().CreateInInventory(
"Truck_01_Wheel");
394 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
395 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
ActionDetachFromTarget_SpecificSlot_WoodenPlanks ActionDetachFromTarget_SpecificSlot ActionDetachFromTarget_SpecificSlot_MetalSheets()
ActionDetachFromTarget_SpecificSlotsCategory_Barrel ActionDetachFromTarget_SpecificSlotsCategory ActionDetachFromTarget_SpecificSlotsCategory_WoodenCrate()
ActionDetachFromTarget_SpecificSlotsCategory ActionDetachFromTarget ActionDetachFromTarget_SpecificSlot_WoodenLogs()
void AddAction(typename actionName)
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 vector m_enginePtcPos
protected void SpawnAdditionalItems()
string m_CarHornShortSoundName
int GetCarDoorsState(string slotType)
string m_CarHornLongSoundName
string m_CarDoorOpenSound
protected ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
protected ref UniversalTemperatureSourceSettings m_UTSSettings
protected ref UniversalTemperatureSource m_UTSource
class JsonUndergroundAreaTriggerData GetPosition
override int GetCarDoorsState(string slotType)
override void OnDebugSpawn()
override void EOnPostSimulate(IEntity other, float timeSlice)
override vector GetTransportCameraOffset()
override bool IsVitalCarBattery()
override float GetTransportCameraDistance()
override bool IsVitalGlowPlug()
override bool IsVitalRadiator()
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
override int GetAnimInstance()
override bool CrewCanGetThrough(int posIdx)
override CarLightBase CreateFrontLight()
override int GetSeatIndexFromDoor(string pDoorSelection)
override CarRearLightBase CreateRearLight()
override float OnSound(CarSoundCtrl ctrl, float oldValue)
override bool CanReleaseAttachment(EntityAI attachment)
override void OnEngineStart()
override string GetAnimSourceFromSelection(string selection)
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
override protected bool CanManipulateSpareWheel(string slotSelectionName)
override bool IsVitalSparkPlug()
override string GetDoorSelectionNameFromSeatPos(int posIdx)
override int GetSeatAnimationType(int posIdx)
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
override bool IsVitalEngineBelt()
override void OnAnimationPhaseStarted(string animSource, float phase)
override void SetActions()
override void OnEngineStop()
Super root of all classes in Enforce script.
Wrapper class for managing sound through SEffectManager.
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Manager class for managing Effect (EffectParticle, EffectSound)
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
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'.