584{
588
590 {
591
592
598
601
604
605 SetEnginePos("0 0.7 1.6");
606 }
607
609 {
611
613 {
622
625 }
626 }
627
629 {
630 super.OnEngineStart();
631
633 {
635 }
636 }
637
639 {
640 super.OnEngineStop();
641
643 {
645 }
646 }
647
649 {
651 {
653 {
655 }
656 }
657 }
658
660 {
662 }
663
665 {
666 return 4.5;
667 }
668
670 {
672 {
673 case 0:
675 case 1:
677 case 2:
679 case 3:
681 }
682
683 return 0;
684 }
685
686
688 {
690 }
691
692
694 {
696 }
697
699 {
701 return false;
702
704
706 {
708 return false;
709 }
710
711 return true;
712 }
713
715 {
717 }
718
720 {
721
723 return false;
724
725
728 {
730 return false;
731 }
732
733 return true;
734 }
735
737 {
738 if ( !
super.CanDisplayCargo() )
739 return false;
740
742 return false;
743
744 return true;
745 }
746
748 {
750
753 {
755 }
756
758 {
759 case "CivSedanDriverDoors":
761 break;
762
763 case "CivSedanCoDriverDoors":
765 break;
766
767 case "CivSedanCargo1Doors":
769 break;
770
771 case "CivSedanCargo2Doors":
773 break;
774
775 case "CivSedanTrunk":
777 break;
778
779 case "CivSedanHood":
781 break;
782 }
783
785 }
786
787
789 {
791 {
792 case 0:
794 return false;
795
796 return true;
797 break;
798
799 case 1:
801 return false;
802
803 return true;
804 break;
805
806 case 2:
808 return false;
809
810 return true;
811 break;
812
813 case 3:
815 return false;
816
817 return true;
818 break;
819 }
820
821 return false;
822 }
823
825 {
827 {
828 case 0:
829 return "doors_driver";
830 break;
831 case 1:
832 return "doors_codriver";
833 break;
834 case 2:
835 return "doors_cargo1";
836 break;
837 case 3:
838 return "doors_cargo2";
839 break;
840 }
841
842 return super.GetDoorSelectionNameFromSeatPos(
posIdx);
843 }
844
846 {
848 {
849 case 0:
850 return "CivSedanDriverDoors";
851 break;
852 case 1:
853 return "CivSedanCoDriverDoors";
854 break;
855 case 2:
856 return "CivSedanCargo1Doors";
857 break;
858 case 3:
859 return "CivSedanCargo2Doors";
860 break;
861 }
862
863 return super.GetDoorInvSlotNameFromSeatPos(
posIdx);
864 }
865
866
867
869 {
871 {
875 {
877 }
878
880 {
882 }
883
885 {
887 }
888
890 {
892 }
893
895 {
897 }
898
900 {
902 }
903
905 break;
906 }
907
909 }
910
912 {
913 switch (selection)
914 {
915 case "doors_driver":
916 return "DoorsDriver";
917 case "doors_codriver":
918 return "DoorsCoDriver";
919 case "doors_cargo1":
920 return "DoorsCargo1";
921 case "doors_cargo2":
922 return "DoorsCargo2";
923 case "doors_hood":
924 return "DoorsHood";
925 case "doors_trunk":
926 return "DoorsTrunk";
927 }
928
929 return "";
930 }
931
933 {
934 return false;
935 }
936
938 {
939 return false;
940 }
941
943 {
945 {
946 case 0:
948
949 case 1:
951
952 case 2:
954
955 case 3:
957 }
958
959 return false;
960 }
961
963 {
965 {
966 case 0:
968
969 case 1:
971
972 case 2:
974
975 case 3:
977 }
978
979 return false;
980 }
981
983 {
987
988 GetInventory().CreateInInventory("CivSedanWheel");
989 GetInventory().CreateInInventory("CivSedanWheel");
990 GetInventory().CreateInInventory("CivSedanWheel");
991 GetInventory().CreateInInventory("CivSedanWheel");
992
993 GetInventory().CreateInInventory("CivSedanDoors_Driver");
994 GetInventory().CreateInInventory("CivSedanDoors_CoDriver");
995 GetInventory().CreateInInventory("CivSedanDoors_BackLeft");
996 GetInventory().CreateInInventory("CivSedanDoors_BackRight");
997 GetInventory().CreateInInventory("CivSedanHood");
998 GetInventory().CreateInInventory("CivSedanTrunk");
999
1000
1001 GetInventory().CreateInInventory("CivSedanWheel");
1002 GetInventory().CreateInInventory("CivSedanWheel");
1003 }
1004
1006 {
1007 return 1.5;
1008 }
1009}
1010
1012{
1014 {
1018
1019 GetInventory().CreateInInventory("CivSedanWheel");
1020 GetInventory().CreateInInventory("CivSedanWheel");
1021 GetInventory().CreateInInventory("CivSedanWheel");
1022 GetInventory().CreateInInventory("CivSedanWheel");
1023
1024 GetInventory().CreateInInventory("CivSedanDoors_Driver_Wine");
1025 GetInventory().CreateInInventory("CivSedanDoors_CoDriver_Wine");
1026 GetInventory().CreateInInventory("CivSedanDoors_BackLeft_Wine");
1027 GetInventory().CreateInInventory("CivSedanDoors_BackRight_Wine");
1028 GetInventory().CreateInInventory("CivSedanHood_Wine");
1029 GetInventory().CreateInInventory("CivSedanTrunk_Wine");
1030
1031
1032 GetInventory().CreateInInventory("CivSedanWheel");
1033 GetInventory().CreateInInventory("CivSedanWheel");
1034 }
1035}
1036
1038{
1040 {
1044
1045 GetInventory().CreateInInventory("CivSedanWheel");
1046 GetInventory().CreateInInventory("CivSedanWheel");
1047 GetInventory().CreateInInventory("CivSedanWheel");
1048 GetInventory().CreateInInventory("CivSedanWheel");
1049
1050 GetInventory().CreateInInventory("CivSedanDoors_Driver_Black");
1051 GetInventory().CreateInInventory("CivSedanDoors_CoDriver_Black");
1052 GetInventory().CreateInInventory("CivSedanDoors_BackLeft_Black");
1053 GetInventory().CreateInInventory("CivSedanDoors_BackRight_Black");
1054 GetInventory().CreateInInventory("CivSedanHood_Black");
1055 GetInventory().CreateInInventory("CivSedanTrunk_Black");
1056
1057
1058 GetInventory().CreateInInventory("CivSedanWheel");
1059 GetInventory().CreateInInventory("CivSedanWheel");
1060 }
1061}
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
string m_CarDoorOpenSound
Definition CarScript.c:213
override int GetCarDoorsState(string slotType)
Definition CivilianSedan.c:594
override bool CanDisplayAttachmentCategory(string category_name)
Definition CivilianSedan.c:566
override void EOnPostSimulate(IEntity other, float timeSlice)
Definition CivilianSedan.c:495
ref UniversalTemperatureSourceSettings m_UTSSettings
Definition CivilianSedan.c:433
class CivilianSedan extends CarScript OnDebugSpawn()
Definition CivilianSedan.c:431
override float GetTransportCameraDistance()
Definition CivilianSedan.c:511
override bool IsVitalGlowPlug()
Definition CivilianSedan.c:784
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
Definition CivilianSedan.c:809
override bool CanDisplayCargo()
Definition CivilianSedan.c:583
override int GetAnimInstance()
Definition CivilianSedan.c:506
override bool CrewCanGetThrough(int posIdx)
Definition CivilianSedan.c:635
override CarLightBase CreateFrontLight()
Definition CivilianSedan.c:534
override CarRearLightBase CreateRearLight()
Definition CivilianSedan.c:540
override void EEInit()
Definition CivilianSedan.c:455
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
Definition CivilianSedan.c:434
override float OnSound(CarSoundCtrl ctrl, float oldValue)
Definition CivilianSedan.c:715
override bool IsVitalTruckBattery()
Definition CivilianSedan.c:779
override bool CanReleaseAttachment(EntityAI attachment)
Definition CivilianSedan.c:545
override void OnEngineStart()
Definition CivilianSedan.c:475
override string GetAnimSourceFromSelection(string selection)
Definition CivilianSedan.c:758
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
Definition CivilianSedan.c:789
override float GetPushForceCoefficientMultiplier()
Definition CivilianSedan.c:852
override string GetDoorSelectionNameFromSeatPos(int posIdx)
Definition CivilianSedan.c:671
override int GetSeatAnimationType(int posIdx)
Definition CivilianSedan.c:516
ref UniversalTemperatureSource m_UTSource
Definition CivilianSedan.c:432
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
Definition CivilianSedan.c:692
bool CanManipulateSpareWheel(string slotSelectionName)
Definition CivilianSedan.c:561
override void OnEngineStop()
Definition CivilianSedan.c:485
void CivilianSedan()
Definition CivilianSedan.c:436
class Hatchback_02_Blue extends Hatchback_02 OnDebugSpawn
Definition Hatchback_02.c:405
UniversalTemperatureSourceLambdaBaseImpl UniversalTemperatureSourceLambdaBase UniversalTemperatureSourceLambdaEngine()
Definition UniversalTemperatureSourceLambdaBaseImpl.c:175
VehicleAnimInstances
Definition VehicleAnimInstances.c:2
Definition InventoryItem.c:496
Definition CarRearLightBase.c:2
Definition CivilianSedanRearLight.c:2
Definition CivilianSedan.c:456
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition constants.c:638
Definition EnEntity.c:165
Definition PointLightBase.c:2
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
const int STATE_RUINED
Definition constants.c:807
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'.