559{
563
565 {
567
573
576
579
580 SetEnginePos("0 0.7 -1.7");
581 }
582
584 {
586
588 {
596
599 }
600 }
601
603 {
604 super.OnEngineStart();
605
608 }
609
611 {
612 super.OnEngineStop();
613
616 }
617
619 {
621 {
624 }
625 }
626
628 {
630 }
631
633 {
635 {
636 case 0:
638 case 1:
640 case 2:
642 case 3:
644 }
645
646 return 0;
647 }
648
649
651 {
653 }
654
655
657 {
659 }
660
662 {
664 return false;
665
668 {
669 case "CarBattery":
671 return false;
672 break;
673
674 case "SparkPlug":
676 return false;
677 break;
678
679 case "CarRadiator":
681 return false;
682 break;
683 }
684
685 return true;
686 }
687
689 {
691 }
692
694 {
696 return false;
697
700 {
702 return false;
703 }
704
706 {
708 return false;
709 }
710
711 return true;
712 }
713
715 {
716 if (!
super.CanDisplayCargo())
717 return false;
718
720 return false;
721
722 return true;
723 }
724
726 {
728
732
734 {
735 case "Sedan_02_Door_1_1":
737
738 case "Sedan_02_Door_2_1":
740
741 case "Sedan_02_Door_1_2":
743
744 case "Sedan_02_Door_2_2":
746
747 case "Sedan_02_Hood":
749
750 case "Sedan_02_Trunk":
752 }
753
755 }
756
757
759 {
761 {
762 case 0:
764 return false;
765
766 return true;
767 break;
768
769 case 1:
771 return false;
772
773 return true;
774 break;
775
776 case 2:
778 return false;
779
780 return true;
781 break;
782
783 case 3:
785 return false;
786
787 return true;
788 break;
789 }
790
791 return false;
792 }
793
795 {
797 {
798 case 0:
799 return "doors_driver";
800 break;
801 case 1:
802 return "doors_codriver";
803 break;
804 case 2:
805 return "doors_cargo1";
806 break;
807 case 3:
808 return "doors_cargo2";
809 break;
810 }
811
812 return super.GetDoorSelectionNameFromSeatPos(
posIdx);
813 }
814
816 {
818 {
819 case 0:
820 return "Sedan_02_Door_1_1";
821 break;
822 case 1:
823 return "Sedan_02_Door_2_1";
824 break;
825 case 2:
826 return "Sedan_02_Door_1_2";
827 break;
828 case 3:
829 return "Sedan_02_Door_2_2";
830 break;
831 }
832
833 return super.GetDoorInvSlotNameFromSeatPos(
posIdx);
834 }
835
837 {
839 {
844
847
850
853
855 break;
856 }
857
859 }
860
862 {
863 switch (selection)
864 {
865 case "doors_driver":
866 return "DoorsDriver";
867 case "doors_codriver":
868 return "DoorsCoDriver";
869 case "doors_cargo1":
870 return "DoorsCargo1";
871 case "doors_cargo2":
872 return "DoorsCargo2";
873 case "doors_hood":
874 return "DoorsHood";
875 case "doors_trunk":
876 return "DoorsTrunk";
877 }
878
879 return "";
880 }
881
882
884 {
885 return false;
886 }
887
889 {
890 return false;
891 }
892
894 {
896 {
897 case 0:
899
900 case 1:
902
903 case 2:
905
906 case 3:
908 }
909
910 return false;
911 }
912
914 {
916 {
917 case 0:
919
920 case 1:
922
923 case 2:
925
926 case 3:
928 }
929
930 return false;
931 }
932
934 {
938
939 GetInventory().CreateInInventory("Sedan_02_Wheel");
940 GetInventory().CreateInInventory("Sedan_02_Wheel");
941 GetInventory().CreateInInventory("Sedan_02_Wheel");
942 GetInventory().CreateInInventory("Sedan_02_Wheel");
943 GetInventory().CreateInInventory("Sedan_02_Wheel");
944
945 GetInventory().CreateInInventory("Sedan_02_Door_1_1");
946 GetInventory().CreateInInventory("Sedan_02_Door_1_2");
947 GetInventory().CreateInInventory("Sedan_02_Door_2_1");
948 GetInventory().CreateInInventory("Sedan_02_Door_2_2");
949 GetInventory().CreateInInventory("Sedan_02_Hood");
950 GetInventory().CreateInInventory("Sedan_02_Trunk");
951
952
953 GetInventory().CreateInInventory("Sedan_02_Wheel");
954 GetInventory().CreateInInventory("Sedan_02_Wheel");
955 }
956}
957
959{
961 {
965
966 GetInventory().CreateInInventory("Sedan_02_Wheel");
967 GetInventory().CreateInInventory("Sedan_02_Wheel");
968 GetInventory().CreateInInventory("Sedan_02_Wheel");
969 GetInventory().CreateInInventory("Sedan_02_Wheel");
970
971 GetInventory().CreateInInventory("Sedan_02_Door_1_1_Red");
972 GetInventory().CreateInInventory("Sedan_02_Door_1_2_Red");
973 GetInventory().CreateInInventory("Sedan_02_Door_2_1_Red");
974 GetInventory().CreateInInventory("Sedan_02_Door_2_2_Red");
975 GetInventory().CreateInInventory("Sedan_02_Hood_Red");
976 GetInventory().CreateInInventory("Sedan_02_Trunk_Red");
977
978
979 GetInventory().CreateInInventory("Sedan_02_Wheel");
980 GetInventory().CreateInInventory("Sedan_02_Wheel");
981 }
982}
983
985{
987 {
991
992 GetInventory().CreateInInventory("Sedan_02_Wheel");
993 GetInventory().CreateInInventory("Sedan_02_Wheel");
994 GetInventory().CreateInInventory("Sedan_02_Wheel");
995 GetInventory().CreateInInventory("Sedan_02_Wheel");
996
997 GetInventory().CreateInInventory("Sedan_02_Door_1_1_Grey");
998 GetInventory().CreateInInventory("Sedan_02_Door_1_2_Grey");
999 GetInventory().CreateInInventory("Sedan_02_Door_2_1_Grey");
1000 GetInventory().CreateInInventory("Sedan_02_Door_2_2_Grey");
1001 GetInventory().CreateInInventory("Sedan_02_Hood_Grey");
1002 GetInventory().CreateInInventory("Sedan_02_Trunk_Grey");
1003
1004
1005 GetInventory().CreateInInventory("Sedan_02_Wheel");
1006 GetInventory().CreateInInventory("Sedan_02_Wheel");
1007 }
1008}
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
class Hatchback_02_Blue extends Hatchback_02 OnDebugSpawn
ref UniversalTemperatureSourceSettings m_UTSSettings
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
class Sedan_02 extends CarScript OnDebugSpawn()
override string GetAnimSourceFromSelection(string selection)
override int GetSeatAnimationType(int posIdx)
override float OnSound(CarSoundCtrl ctrl, float oldValue)
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
override void EOnPostSimulate(IEntity other, float timeSlice)
override void OnEngineStop()
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
override bool CanReleaseAttachment(EntityAI attachment)
override bool CanDisplayCargo()
override void OnEngineStart()
override CarLightBase CreateFrontLight()
override int GetAnimInstance()
override bool CrewCanGetThrough(int posIdx)
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
bool CanManipulateSpareWheel(string slotSelectionName)
override bool IsVitalGlowPlug()
ref UniversalTemperatureSource m_UTSource
override CarRearLightBase CreateRearLight()
override bool IsVitalTruckBattery()
override string GetDoorSelectionNameFromSeatPos(int posIdx)
override int GetCarDoorsState(string slotType)
override bool CanDisplayAttachmentCategory(string category_name)
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 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'.