Dayz Explorer CPP 1.28.160049
Loading...
Searching...
No Matches
config.cpp
Go to the documentation of this file.
1class CfgPatches
2{
3 class DZ_Pistols_mkii
4 {
5 units[]=
6 {
7 "mkii"
8 };
9 weapons[]={};
10 requiredVersion=0.1;
11 requiredAddons[]=
12 {
13 "DZ_Data",
14 "DZ_Pistols"
15 };
16 };
17};
18class Mode_Safe;
19class Mode_SemiAuto;
20class Mode_Burst;
21class Mode_FullAuto;
23class cfgWeapons
24{
25 class Pistol_Base;
26 class MKII_Base: Pistol_Base
27 {
28 scope=0;
29 weight=1300;
30 absorbency=0;
31 repairableWithKits[]={1};
32 repairCosts[]={25};
33 PPDOFProperties[]={1,0.5,10,280,4,10};
34 WeaponLength=0.33000001;
35 ShoulderDistance=0.40000001;
36 ObstructionDistance=0.54000002;
37 barrelArmor=3.2049999;
38 initSpeedMultiplier=0.85000002;
39 chamberSize=1;
40 chamberedRound="";
41 magazines[]=
42 {
43 "Mag_MKII_10Rnd"
44 };
45 chamberableFrom[]=
46 {
47 "Ammo_22"
48 };
49 ejectType=1;
50 recoilModifier[]={1,1,1};
51 swayModifier[]={1,1,0.44999999};
52 class NoiseShoot
53 {
54 strength=5;
55 type="sound";
56 };
57 modes[]=
58 {
59 "SemiAuto"
60 };
61 class SemiAuto: Mode_SemiAuto
62 {
63 soundSetShot[]=
64 {
65 "AmphibianS_Shot_SoundSet",
66 "AmphibianS_Tail_SoundSet",
67 "AmphibianS_InteriorTail_SoundSet"
68 };
69 soundSetShotExt[]=
70 {
71
72 {
73 "AmphibianS_silencerHomeMade_SoundSet",
74 "AmphibianS_silencerHomeMadeTail_SoundSet",
75 "AmphibianS_InteriorTail_SoundSet"
76 }
77 };
78 envShootingDecrease=0.050000001;
79 envShootingDecreaseExt[]={0.050000001,0.050000001};
80 reloadTime=0.13;
81 recoil="recoil_mkii";
82 recoilProne="recoil_mkii_prone";
83 dispersion=0.0060000001;
84 magazineSlot="magazine";
85 };
86 class OpticsInfo: OpticsInfoPistol
87 {
88 memoryPointCamera="eye";
89 discreteDistance[]={25};
90 discreteDistanceInitIndex=0;
91 modelOptics="-";
92 distanceZoomMin=100;
93 distanceZoomMax=100;
94 };
95 weaponStateAnim="dz\anims\anm\player\reloads\RugerMK2\w_MK2_states.anm";
96 };
97 class MKII: MKII_Base
98 {
99 scope=2;
100 displayName="$STR_cfgWeapons_MKII0";
101 descriptionShort="$STR_cfgWeapons_MKII1";
102 model="\dz\weapons\pistols\mkii\rugerMKII.p3d";
103 attachments[]={};
104 itemSize[]={4,2};
105 class DamageSystem
106 {
107 class GlobalHealth
108 {
109 class Health
110 {
111 hitpoints=120;
112 healthLevels[]=
113 {
114
115 {
116 1,
117
118 {
119 "DZ\weapons\pistols\mkii\data\ruger_metal_1.rvmat"
120 }
121 },
122
123 {
124 0.69999999,
125
126 {
127 "DZ\weapons\pistols\mkii\data\ruger_metal_1.rvmat"
128 }
129 },
130
131 {
132 0.5,
133
134 {
135 "DZ\weapons\pistols\mkii\data\ruger_metal_1_damage.rvmat"
136 }
137 },
138
139 {
140 0.30000001,
141
142 {
143 "DZ\weapons\pistols\mkii\data\ruger_metal_1_damage.rvmat"
144 }
145 },
146
147 {
148 0,
149
150 {
151 "DZ\weapons\pistols\mkii\data\ruger_metal_1_destruct.rvmat"
152 }
153 }
154 };
155 };
156 };
157 };
158 class Particles
159 {
160 class OnFire
161 {
162 class SmokeCloud
163 {
164 overrideParticle="weapon_shot_winded_smoke";
165 };
166 class MuzzleFlash
167 {
168 overrideParticle="weapon_shot_fnx_02";
169 ignoreIfSuppressed=1;
170 illuminateWorld=0;
171 positionOffset[]={0,0,0};
172 };
173 };
174 class OnOverheating
175 {
176 maxOverheatingValue=8;
177 shotsToStartOverheating=8;
178 overheatingDecayInterval=1;
179 class SmokingBarrel1
180 {
181 overrideParticle="smoking_barrel_small";
182 onlyWithinOverheatLimits[]={0,1};
183 positionOffset[]={0,0,0};
184 onlyWithinRainLimits[]={0,1};
185 };
186 class OpenChamberSmoke
187 {
188 onlyIfBoltIsOpen=1;
189 overrideParticle="smoking_barrel_small";
190 overridePoint="Nabojnicestart";
191 };
192 };
193 class OnBulletCasingEject
194 {
195 class ChamberSmokeRaise
196 {
197 overrideParticle="weapon_shot_chamber_smoke";
198 overridePoint="Nabojnicestart";
199 };
200 };
201 };
202 };
203};
205{
206 class ProxyAttachment;
207 class Proxymkii: ProxyAttachment
208 {
209 scope=2;
210 inventorySlot="pistol";
211 model="\dz\weapons\pistols\mkii\rugerMKII.p3d";
212 };
213};