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_Weapons_Shotguns_Izh18Shotgun
4 {
5 units[]=
6 {
7 "Izh18Shotgun",
8 "Izh18Shotgun_Sawedoff"
9 };
10 weapons[]={};
11 requiredVersion=0.1;
12 requiredAddons[]=
13 {
14 "DZ_Data",
15 "DZ_Sounds_Weapons"
16 };
17 };
18};
19class Mode_Single;
20class Muzzle_Base;
22class cfgWeapons
23{
24 class Shotgun_Base;
25 class Izh18Shotgun_Base: Shotgun_Base
26 {
27 scope=0;
28 absorbency=0;
29 repairableWithKits[]={1};
30 repairCosts[]={25};
31 chamberSize=1;
32 chamberedRound="";
33 chamberableFrom[]=
34 {
35 "Ammo_12gaPellets",
36 "Ammo_12gaSlug",
37 "Ammo_12gaRubberSlug",
38 "Ammo_12gaBeanbag",
39 "Mag_12gaSnaploader_2Rnd"
40 };
41 DisplayMagazine=0;
42 magazines[]={};
43 PPDOFProperties[]={1,0.5,10,155,4,10};
44 WeaponLength=1.05;
45 ObstructionDistance=0.70999998;
46 barrelArmor=1.875;
47 initSpeedMultiplier=1.25;
48 ejectType=3;
49 muzzles[]=
50 {
51 "this"
52 };
53 hiddenSelections[]=
54 {
55 "camo"
56 };
57 modes[]=
58 {
59 "Single"
60 };
61 class NoiseShoot
62 {
63 strength=100;
64 type="shot";
65 };
66 class Single: Mode_Single
67 {
68 soundSetShot[]=
69 {
70 "IZH18_Shot_SoundSet",
71 "IZH18_Tail_SoundSet",
72 "IZH18_InteriorTail_SoundSet",
73 "IZH18_Slapback_SoundSet",
74 "IZH18_Tail_2D_SoundSet",
75 "IZH18_Shot_Interior_SoundSet"
76 };
77 reloadTime=1;
78 dispersion=0.0099999998;
79 firespreadangle=1.5;
80 magazineSlot="magazine";
81 };
82 class OpticsInfo: OpticsInfoShotgun
83 {
84 };
85 class Particles
86 {
87 class OnFire
88 {
89 class SmokeCloud
90 {
91 overrideParticle="weapon_shot_winded_smoke";
92 muzzleIndex=0;
93 };
94 class MuzzleFlash
95 {
96 overrideParticle="weapon_shot_mp133_01";
97 illuminateWorld=1;
98 muzzleIndex=0;
99 };
100 class BadlyDamagedChamberSmoke
101 {
102 overrideParticle="weapon_shot_chamber_smoke";
103 overridePoint="Nabojnicestart";
104 overrideDirectionPoint="Nabojniceend";
105 onlyWithinHealthLabel[]={3,4};
106 muzzleIndex=0;
107 };
108 class BadlyDamagedChamberSmokeRaise
109 {
110 overrideParticle="weapon_shot_chamber_smoke_raise";
111 overridePoint="Nabojnicestart";
112 onlyWithinHealthLabel[]={3,4};
113 muzzleIndex=0;
114 };
115 };
116 class OnBulletCasingEject
117 {
118 class ChamberSmokeRaise
119 {
120 overrideParticle="weapon_shot_chamber_smoke";
121 overridePoint="Nabojnicestart";
122 };
123 };
124 };
125 weaponStateAnim="dz\anims\anm\player\reloads\IZH18Spartan\w_izh18Spartan_states.anm";
126 boneRemap[]=
127 {
128 "release",
129 "Weapon_Bone_02",
130 "barrel",
131 "Weapon_Bone_01",
132 "trigger",
133 "Weapon_Trigger",
134 "ejector",
135 "Weapon_Bone_03",
136 "bullet",
137 "Weapon_Bullet"
138 };
139 };
140 class Izh18Shotgun: Izh18Shotgun_Base
141 {
142 scope=2;
143 displayName="$STR_cfgWeapons_Izh18Shotgun0";
144 descriptionShort="$STR_cfgWeapons_Izh18Shotgun1";
145 model="\dz\weapons\shotguns\Izh18Shotgun\Izh18Shotgun.p3d";
146 attachments[]=
147 {
148 "weaponWrap"
149 };
150 itemSize[]={9,3};
151 weight=3200;
152 recoilModifier[]={1,1,1};
153 swayModifier[]={2.2,2.2,0.85000002};
154 initSpeedMultiplier=1.25;
155 hiddenSelectionsTextures[]=
156 {
157 "dz\weapons\shotguns\Izh18Shotgun\data\Izh18Shotgun_co.paa"
158 };
159 hiddenSelectionsMaterials[]=
160 {
161 "dz\weapons\shotguns\Izh18Shotgun\data\Izh18Shotgun.rvmat"
162 };
163 class DamageSystem
164 {
165 class GlobalHealth
166 {
167 class Health
168 {
169 hitpoints=300;
170 healthLevels[]=
171 {
172
173 {
174 1,
175
176 {
177 "DZ\weapons\shotguns\Izh18Shotgun\data\Izh18Shotgun.rvmat"
178 }
179 },
180
181 {
182 0.69999999,
183
184 {
185 "DZ\weapons\shotguns\Izh18Shotgun\data\Izh18Shotgun.rvmat"
186 }
187 },
188
189 {
190 0.5,
191
192 {
193 "DZ\weapons\shotguns\Izh18Shotgun\data\Izh18Shotgun_damage.rvmat"
194 }
195 },
196
197 {
198 0.30000001,
199
200 {
201 "DZ\weapons\shotguns\Izh18Shotgun\data\Izh18Shotgun_damage.rvmat"
202 }
203 },
204
205 {
206 0,
207
208 {
209 "DZ\weapons\shotguns\Izh18Shotgun\data\Izh18Shotgun_destruct.rvmat"
210 }
211 }
212 };
213 };
214 };
215 };
216 };
217 class SawedoffIzh18Shotgun: Izh18Shotgun_Base
218 {
219 scope=2;
220 displayName="$STR_cfgWeapons_SawedoffIzh18Shotgun0";
221 descriptionShort="$STR_cfgWeapons_SawedoffIzh18Shotgun1";
222 model="\dz\weapons\shotguns\Izh18Shotgun\Izh18Shotgun_sawedoff.p3d";
223 itemSize[]={5,2};
224 weight=2600;
225 firespreadangle=3;
226 recoilModifier[]={2,2,1};
227 swayModifier[]={1.5,1.5,0.69999999};
228 WeaponLength=0.41;
229 ObstructionDistance=0.44499999;
230 ShoulderDistance=0.31999999;
231 initSpeedMultiplier=0.89999998;
232 hiddenSelectionsTextures[]=
233 {
234 "dz\weapons\shotguns\Izh18Shotgun\data\Izh18Shotgun_co.paa"
235 };
236 hiddenSelectionsMaterials[]=
237 {
238 "dz\weapons\shotguns\Izh18Shotgun\data\Izh18Shotgun.rvmat"
239 };
240 class DamageSystem
241 {
242 class GlobalHealth
243 {
244 class Health
245 {
246 hitpoints=300;
247 healthLevels[]=
248 {
249
250 {
251 1,
252
253 {
254 "DZ\weapons\shotguns\Izh18Shotgun\data\Izh18Shotgun.rvmat"
255 }
256 },
257
258 {
259 0.69999999,
260
261 {
262 "DZ\weapons\shotguns\Izh18Shotgun\data\Izh18Shotgun.rvmat"
263 }
264 },
265
266 {
267 0.5,
268
269 {
270 "DZ\weapons\shotguns\Izh18Shotgun\data\Izh18Shotgun_damage.rvmat"
271 }
272 },
273
274 {
275 0.30000001,
276
277 {
278 "DZ\weapons\shotguns\Izh18Shotgun\data\Izh18Shotgun_damage.rvmat"
279 }
280 },
281
282 {
283 0,
284
285 {
286 "DZ\weapons\shotguns\Izh18Shotgun\data\Izh18Shotgun_destruct.rvmat"
287 }
288 }
289 };
290 };
291 };
292 };
293 class Single: Mode_Single
294 {
295 soundSetShot[]=
296 {
297 "IZH18sawed_Shot_SoundSet",
298 "IZH18sawed_Tail_SoundSet",
299 "IZH18_InteriorTail_SoundSet",
300 "IZH18_Slapback_SoundSet",
301 "IZH18sawed_Tail_2D_SoundSet",
302 "IZH18sawed_Shot_Interior_SoundSet"
303 };
304 reloadTime=1;
305 dispersion=0.079999998;
306 firespreadangle=1.5;
307 };
308 class InventorySlotsOffsets
309 {
310 class Shoulder
311 {
312 position[]={-0.15000001,-0.02,0};
313 orientation[]={0,0,-13};
314 };
315 class Melee
316 {
317 position[]={-0.15000001,0,-0.02};
318 orientation[]={0,0,-13};
319 };
320 };
321 };
322};