611{
615
617 {
619
625
628
631
632 SetEnginePos("0 0.7 -1.7");
633 }
634
636 {
638
640 {
649
652 }
653 }
654
656 {
657 super.OnEngineStart();
658
660 {
662 }
663 }
664
666 {
667 super.OnEngineStop();
668
670 {
672 }
673 }
674
676 {
678 {
680 {
682 }
683 }
684 }
685
687 {
689 }
690
692 {
694 {
695 case 0:
697 case 1:
699 case 2:
701 case 3:
703 }
704
705 return 0;
706 }
707
708
710 {
712 }
713
714
716 {
718 }
719
721 {
723 {
724 return false;
725 }
726
729 {
730 case "CarBattery":
732 {
733 return false;
734 }
735 break;
736
737 case "SparkPlug":
739 {
740 return false;
741 }
742 break;
743
744 case "CarRadiator":
746 {
747 return false;
748 }
749 break;
750 }
751
752 return true;
753 }
754
756 {
758 }
759
761 {
763 {
764 return false;
765 }
766
769 {
771 {
772 return false;
773 }
774 }
775
777 {
779 {
780 return false;
781 }
782 }
783
784 return true;
785 }
786
788 {
789 if ( !
super.CanDisplayCargo() )
790 return false;
791
793 return false;
794
795 return true;
796 }
797
799 {
801
804 {
806 }
807
809 {
810 case "Sedan_02_Door_1_1":
812
813 case "Sedan_02_Door_2_1":
815
816 case "Sedan_02_Door_1_2":
818
819 case "Sedan_02_Door_2_2":
821
822 case "Sedan_02_Hood":
824
825 case "Sedan_02_Trunk":
827 }
828
830 }
831
832
834 {
836 {
837 case 0:
839 return false;
840
841 return true;
842 break;
843
844 case 1:
846 return false;
847
848 return true;
849 break;
850
851 case 2:
853 return false;
854
855 return true;
856 break;
857
858 case 3:
860 return false;
861
862 return true;
863 break;
864 }
865
866 return false;
867 }
868
870 {
872 {
873 case 0:
874 return "doors_driver";
875 break;
876 case 1:
877 return "doors_codriver";
878 break;
879 case 2:
880 return "doors_cargo1";
881 break;
882 case 3:
883 return "doors_cargo2";
884 break;
885 }
886
887 return super.GetDoorSelectionNameFromSeatPos(
posIdx);
888 }
889
891 {
893 {
894 case 0:
895 return "Sedan_02_Door_1_1";
896 break;
897 case 1:
898 return "Sedan_02_Door_2_1";
899 break;
900 case 2:
901 return "Sedan_02_Door_1_2";
902 break;
903 case 3:
904 return "Sedan_02_Door_2_2";
905 break;
906 }
907
908 return super.GetDoorInvSlotNameFromSeatPos(
posIdx);
909 }
910
912 {
914 {
918 {
920 }
921
923 {
925 }
926
928 {
930 }
931
933 {
935 }
936
938 break;
939 }
940
942 }
943
945 {
946 switch( selection )
947 {
948 case "doors_driver":
949 return "DoorsDriver";
950 case "doors_codriver":
951 return "DoorsCoDriver";
952 case "doors_cargo1":
953 return "DoorsCargo1";
954 case "doors_cargo2":
955 return "DoorsCargo2";
956 case "doors_hood":
957 return "DoorsHood";
958 case "doors_trunk":
959 return "DoorsTrunk";
960 }
961
962 return "";
963 }
964
965
967 {
968 return false;
969 }
970
972 {
973 return false;
974 }
975
977 {
979 {
980 case 0:
982
983 case 1:
985
986 case 2:
988
989 case 3:
991 }
992
993 return false;
994 }
995
997 {
999 {
1000 case 0:
1002
1003 case 1:
1005
1006 case 2:
1008
1009 case 3:
1011 }
1012
1013 return false;
1014 }
1015
1017 {
1021
1022 GetInventory().CreateInInventory("Sedan_02_Wheel");
1023 GetInventory().CreateInInventory("Sedan_02_Wheel");
1024 GetInventory().CreateInInventory("Sedan_02_Wheel");
1025 GetInventory().CreateInInventory("Sedan_02_Wheel");
1026 GetInventory().CreateInInventory("Sedan_02_Wheel");
1027
1028 GetInventory().CreateInInventory("Sedan_02_Door_1_1");
1029 GetInventory().CreateInInventory("Sedan_02_Door_1_2");
1030 GetInventory().CreateInInventory("Sedan_02_Door_2_1");
1031 GetInventory().CreateInInventory("Sedan_02_Door_2_2");
1032 GetInventory().CreateInInventory("Sedan_02_Hood");
1033 GetInventory().CreateInInventory("Sedan_02_Trunk");
1034
1035
1036 GetInventory().CreateInInventory("Sedan_02_Wheel");
1037 GetInventory().CreateInInventory("Sedan_02_Wheel");
1038 }
1039}
1040
1042{
1044 {
1048
1049 GetInventory().CreateInInventory("Sedan_02_Wheel");
1050 GetInventory().CreateInInventory("Sedan_02_Wheel");
1051 GetInventory().CreateInInventory("Sedan_02_Wheel");
1052 GetInventory().CreateInInventory("Sedan_02_Wheel");
1053
1054 GetInventory().CreateInInventory("Sedan_02_Door_1_1_Red");
1055 GetInventory().CreateInInventory("Sedan_02_Door_1_2_Red");
1056 GetInventory().CreateInInventory("Sedan_02_Door_2_1_Red");
1057 GetInventory().CreateInInventory("Sedan_02_Door_2_2_Red");
1058 GetInventory().CreateInInventory("Sedan_02_Hood_Red");
1059 GetInventory().CreateInInventory("Sedan_02_Trunk_Red");
1060
1061
1062 GetInventory().CreateInInventory("Sedan_02_Wheel");
1063 GetInventory().CreateInInventory("Sedan_02_Wheel");
1064 }
1065}
1066
1068{
1070 {
1074
1075 GetInventory().CreateInInventory("Sedan_02_Wheel");
1076 GetInventory().CreateInInventory("Sedan_02_Wheel");
1077 GetInventory().CreateInInventory("Sedan_02_Wheel");
1078 GetInventory().CreateInInventory("Sedan_02_Wheel");
1079
1080 GetInventory().CreateInInventory("Sedan_02_Door_1_1_Grey");
1081 GetInventory().CreateInInventory("Sedan_02_Door_1_2_Grey");
1082 GetInventory().CreateInInventory("Sedan_02_Door_2_1_Grey");
1083 GetInventory().CreateInInventory("Sedan_02_Door_2_2_Grey");
1084 GetInventory().CreateInInventory("Sedan_02_Hood_Grey");
1085 GetInventory().CreateInInventory("Sedan_02_Trunk_Grey");
1086
1087
1088 GetInventory().CreateInInventory("Sedan_02_Wheel");
1089 GetInventory().CreateInInventory("Sedan_02_Wheel");
1090 }
1091}
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
Definition Car.c:4
void SpawnUniversalParts()
Definition CarScript.c:2761
CarDoorState TranslateAnimationPhaseToCarDoorState(string animation)
Definition CarScript.c:2474
CarDoorState
Definition CarScript.c:2
void SpawnAdditionalItems()
Definition CarScript.c:2799
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
void FillUpCarFluids()
Definition CarScript.c:2829
string m_CarHornLongSoundName
Definition CarScript.c:219
string m_EngineStopFuel
Definition CarScript.c:211
float m_dmgContactCoef
Definition CarScript.c:161
string m_CarDoorOpenSound
Definition CarScript.c:213
class Hatchback_02_Blue extends Hatchback_02 OnDebugSpawn
Definition Hatchback_02.c:405
override int GetCarDoorsState(string slotType)
Definition Sedan_02.c:621
override bool CanDisplayAttachmentCategory(string category_name)
Definition Sedan_02.c:583
override void EOnPostSimulate(IEntity other, float timeSlice)
Definition Sedan_02.c:498
ref UniversalTemperatureSourceSettings m_UTSSettings
Definition Sedan_02.c:436
override bool IsVitalGlowPlug()
Definition Sedan_02.c:794
class Sedan_02 extends CarScript OnDebugSpawn()
Definition Sedan_02.c:434
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
Definition Sedan_02.c:819
override bool CanDisplayCargo()
Definition Sedan_02.c:610
override int GetAnimInstance()
Definition Sedan_02.c:509
override bool CrewCanGetThrough(int posIdx)
Definition Sedan_02.c:656
override CarLightBase CreateFrontLight()
Definition Sedan_02.c:532
override CarRearLightBase CreateRearLight()
Definition Sedan_02.c:538
override void EEInit()
Definition Sedan_02.c:458
void Sedan_02()
Definition Sedan_02.c:439
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
Definition Sedan_02.c:437
override float OnSound(CarSoundCtrl ctrl, float oldValue)
Definition Sedan_02.c:734
override bool IsVitalTruckBattery()
Definition Sedan_02.c:789
override bool CanReleaseAttachment(EntityAI attachment)
Definition Sedan_02.c:543
override void OnEngineStart()
Definition Sedan_02.c:478
override string GetAnimSourceFromSelection(string selection)
Definition Sedan_02.c:767
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
Definition Sedan_02.c:799
override string GetDoorSelectionNameFromSeatPos(int posIdx)
Definition Sedan_02.c:692
override int GetSeatAnimationType(int posIdx)
Definition Sedan_02.c:514
ref UniversalTemperatureSource m_UTSource
Definition Sedan_02.c:435
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
Definition Sedan_02.c:713
bool CanManipulateSpareWheel(string slotSelectionName)
Definition Sedan_02.c:578
override void OnEngineStop()
Definition Sedan_02.c:488
UniversalTemperatureSourceLambdaBaseImpl UniversalTemperatureSourceLambdaBase UniversalTemperatureSourceLambdaEngine()
Definition UniversalTemperatureSourceLambdaBaseImpl.c:175
VehicleAnimInstances
Definition VehicleAnimInstances.c:2
Definition InventoryItem.c:496
Definition CarRearLightBase.c:2
Definition CivilianSedanRearLight.c:2
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition constants.c:638
Definition EnEntity.c:165
Definition PointLightBase.c:2
Definition Sedan_02.c:459
original Timer deletes m_params which is unwanted
Definition UniversalTemperatureSource.c:28
Definition UniversalTemperatureSource.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602
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
Definition constants.c:777
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'.