556{
560
562 {
563
564
570
573
576
577 SetEnginePos("0 0.7 1.6");
578 }
579
581 {
583
585 {
593
596 }
597 }
598
600 {
601 super.OnEngineStart();
602
605 }
606
608 {
609 super.OnEngineStop();
610
613 }
614
616 {
618 {
621 }
622 }
623
625 {
627 }
628
630 {
631 return 4.5;
632 }
633
635 {
637 {
638 case 0:
640 case 1:
642 case 2:
644 case 3:
646 }
647
648 return 0;
649 }
650
651
653 {
655 }
656
657
659 {
661 }
662
664 {
666 return false;
667
669
671 {
673 return false;
674 }
675
676 return true;
677 }
678
680 {
682 }
683
685 {
686
688 return false;
689
690
693 {
695 return false;
696 }
697
698 return true;
699 }
700
702 {
703 if (!
super.CanDisplayCargo())
704 return false;
705
707 return false;
708
709 return true;
710 }
711
713 {
715
719
721 {
722 case "CivSedanDriverDoors":
724 break;
725
726 case "CivSedanCoDriverDoors":
728 break;
729
730 case "CivSedanCargo1Doors":
732 break;
733
734 case "CivSedanCargo2Doors":
736 break;
737
738 case "CivSedanTrunk":
740 break;
741
742 case "CivSedanHood":
744 break;
745 }
746
748 }
749
750
752 {
754 {
755 case 0:
757 return false;
758
759 return true;
760 break;
761
762 case 1:
764 return false;
765
766 return true;
767 break;
768
769 case 2:
771 return false;
772
773 return true;
774 break;
775
776 case 3:
778 return false;
779
780 return true;
781 break;
782 }
783
784 return false;
785 }
786
788 {
790 {
791 case 0:
792 return "doors_driver";
793 break;
794 case 1:
795 return "doors_codriver";
796 break;
797 case 2:
798 return "doors_cargo1";
799 break;
800 case 3:
801 return "doors_cargo2";
802 break;
803 }
804
805 return super.GetDoorSelectionNameFromSeatPos(
posIdx);
806 }
807
809 {
811 {
812 case 0:
813 return "CivSedanDriverDoors";
814 break;
815 case 1:
816 return "CivSedanCoDriverDoors";
817 break;
818 case 2:
819 return "CivSedanCargo1Doors";
820 break;
821 case 3:
822 return "CivSedanCargo2Doors";
823 break;
824 }
825
826 return super.GetDoorInvSlotNameFromSeatPos(
posIdx);
827 }
828
829
830
832 {
834 {
839
842
845
848
851
854
856 break;
857 }
858
860 }
861
863 {
864 switch (selection)
865 {
866 case "doors_driver":
867 return "DoorsDriver";
868 case "doors_codriver":
869 return "DoorsCoDriver";
870 case "doors_cargo1":
871 return "DoorsCargo1";
872 case "doors_cargo2":
873 return "DoorsCargo2";
874 case "doors_hood":
875 return "DoorsHood";
876 case "doors_trunk":
877 return "DoorsTrunk";
878 }
879
880 return "";
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("CivSedanWheel");
940 GetInventory().CreateInInventory("CivSedanWheel");
941 GetInventory().CreateInInventory("CivSedanWheel");
942 GetInventory().CreateInInventory("CivSedanWheel");
943
944 GetInventory().CreateInInventory("CivSedanDoors_Driver");
945 GetInventory().CreateInInventory("CivSedanDoors_CoDriver");
946 GetInventory().CreateInInventory("CivSedanDoors_BackLeft");
947 GetInventory().CreateInInventory("CivSedanDoors_BackRight");
948 GetInventory().CreateInInventory("CivSedanHood");
949 GetInventory().CreateInInventory("CivSedanTrunk");
950
951
952 GetInventory().CreateInInventory("CivSedanWheel");
953 GetInventory().CreateInInventory("CivSedanWheel");
954 }
955
957 {
958 return 1.5;
959 }
960}
961
963{
965 {
969
970 GetInventory().CreateInInventory("CivSedanWheel");
971 GetInventory().CreateInInventory("CivSedanWheel");
972 GetInventory().CreateInInventory("CivSedanWheel");
973 GetInventory().CreateInInventory("CivSedanWheel");
974
975 GetInventory().CreateInInventory("CivSedanDoors_Driver_Wine");
976 GetInventory().CreateInInventory("CivSedanDoors_CoDriver_Wine");
977 GetInventory().CreateInInventory("CivSedanDoors_BackLeft_Wine");
978 GetInventory().CreateInInventory("CivSedanDoors_BackRight_Wine");
979 GetInventory().CreateInInventory("CivSedanHood_Wine");
980 GetInventory().CreateInInventory("CivSedanTrunk_Wine");
981
982
983 GetInventory().CreateInInventory("CivSedanWheel");
984 GetInventory().CreateInInventory("CivSedanWheel");
985 }
986}
987
989{
991 {
995
996 GetInventory().CreateInInventory("CivSedanWheel");
997 GetInventory().CreateInInventory("CivSedanWheel");
998 GetInventory().CreateInInventory("CivSedanWheel");
999 GetInventory().CreateInInventory("CivSedanWheel");
1000
1001 GetInventory().CreateInInventory("CivSedanDoors_Driver_Black");
1002 GetInventory().CreateInInventory("CivSedanDoors_CoDriver_Black");
1003 GetInventory().CreateInInventory("CivSedanDoors_BackLeft_Black");
1004 GetInventory().CreateInInventory("CivSedanDoors_BackRight_Black");
1005 GetInventory().CreateInInventory("CivSedanHood_Black");
1006 GetInventory().CreateInInventory("CivSedanTrunk_Black");
1007
1008
1009 GetInventory().CreateInInventory("CivSedanWheel");
1010 GetInventory().CreateInInventory("CivSedanWheel");
1011 }
1012}
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
ref UniversalTemperatureSourceSettings m_UTSSettings
override float GetPushForceCoefficientMultiplier()
class CivilianSedan extends CarScript OnDebugSpawn()
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
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 float GetTransportCameraDistance()
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)
class Hatchback_02_Blue extends Hatchback_02 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 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'.