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_MP133
4 {
5 units[]=
6 {
7 "ShotgunMp133",
8 "ShotgunMp133_Pistol_Grip"
9 };
10 weapons[]={};
11 requiredVersion=0.1;
12 requiredAddons[]=
13 {
14 "DZ_Data",
15 "DZ_Sounds_Weapons"
16 };
17 };
18};
19class Mode_Safe;
20class Mode_SemiAuto;
21class Mode_Single;
22class Mode_Burst;
23class Mode_FullAuto;
25class cfgWeapons
26{
27 class Shotgun_Base;
28 class Mp133Shotgun_Base: Shotgun_Base
29 {
30 scope=0;
31 absorbency=0;
32 repairableWithKits[]={1};
33 repairCosts[]={25};
34 chamberSize=6;
35 chamberedRound="";
36 chamberableFrom[]=
37 {
38 "Ammo_12gaPellets",
39 "Ammo_12gaSlug",
40 "Ammo_12gaRubberSlug",
41 "Ammo_12gaBeanbag"
42 };
43 magazines[]={};
44 DisplayMagazine=0;
45 PPDOFProperties[]={1,0.5,10,140,4,10};
46 WeaponLength=1.0352499;
47 ObstructionDistance=0.80699998;
48 barrelArmor=2.25;
49 initSpeedMultiplier=1.25;
50 ejectType=0;
51 recoilModifier[]={1,1,1};
52 swayModifier[]={2.3,2.3,0.85000002};
53 cartridgeCreateTime[]={0.55000001,0.81999999};
54 hiddenSelections[]=
55 {
56 "camo"
57 };
58 modes[]=
59 {
60 "Single"
61 };
62 class NoiseShoot
63 {
64 strength=100;
65 type="shot";
66 };
67 class Single: Mode_Single
68 {
69 soundSetShot[]=
70 {
71 "Mp133_Shot_SoundSet",
72 "Mp133_Tail_SoundSet",
73 "Mp133_InteriorTail_SoundSet",
74 "Mp133_Slapback_SoundSet",
75 "Mp133_Tail_2D_SoundSet",
76 "Mp133_Shot_Interior_SoundSet"
77 };
78 reloadTime=1;
79 recoil="recoil_Mp133";
80 recoilProne="recoil_Mp133_prone";
81 dispersion=0.0099999998;
82 firespreadangle=1.5;
83 magazineSlot="magazine";
84 };
85 class OpticsInfo: OpticsInfoShotgun
86 {
87 memoryPointCamera="eye";
88 discreteDistance[]={25};
89 discreteDistanceInitIndex=0;
90 modelOptics="-";
91 distanceZoomMin=100;
92 distanceZoomMax=100;
93 };
94 class InventorySlotsOffsets
95 {
96 class Shoulder
97 {
98 position[]={-0.029999999,-0.0099999998,0.0099999998};
99 orientation[]={0,0,0};
100 };
101 class Melee
102 {
103 position[]={-0.029999999,0,-0.029999999};
104 orientation[]={0,0,0};
105 };
106 };
107 class Particles
108 {
109 class OnFire
110 {
111 class SmokeCloud
112 {
113 overrideParticle="weapon_shot_winded_smoke";
114 };
115 class MuzzleFlash
116 {
117 overrideParticle="weapon_shot_mp133_01";
118 ignoreIfSuppressed=1;
119 illuminateWorld=1;
120 positionOffset[]={0,0,0};
121 };
122 class BadlyDamagedChamberSmoke
123 {
124 overrideParticle="weapon_shot_chamber_smoke";
125 overridePoint="Nabojnicestart";
126 overrideDirectionPoint="Nabojniceend";
127 onlyWithinHealthLabel[]={3,4};
128 };
129 class BadlyDamagedChamberSmokeRaise
130 {
131 overrideParticle="weapon_shot_chamber_smoke_raise";
132 overridePoint="Nabojnicestart";
133 onlyWithinHealthLabel[]={3,4};
134 };
135 };
136 class OnBulletCasingEject
137 {
138 class ChamberSmokeRaise
139 {
140 overrideParticle="weapon_shot_chamber_smoke";
141 overridePoint="Nabojnicestart";
142 };
143 };
144 };
145 weaponStateAnim="dz\anims\anm\player\reloads\mp133\w_mp133_states.anm";
146 boneRemap[]=
147 {
148 "bolt",
149 "Weapon_Bolt",
150 "pump",
151 "Weapon_Bone_01",
152 "feedRamp",
153 "Weapon_Bone_02",
154 "trigger",
155 "Weapon_Trigger",
156 "bullet",
157 "Weapon_Bullet",
158 "boltrelease",
159 "Weapon_Bone_03"
160 };
161 };
162 class Mp133Shotgun: Mp133Shotgun_Base
163 {
164 scope=2;
165 displayName="$STR_cfgWeapons_Mp133Shotgun0";
166 descriptionShort="$STR_cfgWeapons_Mp133Shotgun1";
167 model="\dz\weapons\shotguns\mp133\mp133.p3d";
168 animName="ShotgunMp133";
169 attachments[]=
170 {
171 "pistolOptics"
172 };
173 itemSize[]={9,3};
174 weight=3300;
175 hiddenSelectionsTextures[]=
176 {
177 "dz\weapons\shotguns\mp133\data\mp133_co.paa"
178 };
179 hiddenSelectionsMaterials[]=
180 {
181 "dz\weapons\shotguns\mp133\data\mp133.rvmat"
182 };
183 class DamageSystem
184 {
185 class GlobalHealth
186 {
187 class Health
188 {
189 hitpoints=200;
190 healthLevels[]=
191 {
192
193 {
194 1,
195
196 {
197 "DZ\weapons\shotguns\Mp133\data\mp133.rvmat"
198 }
199 },
200
201 {
202 0.69999999,
203
204 {
205 "DZ\weapons\shotguns\Mp133\data\mp133.rvmat"
206 }
207 },
208
209 {
210 0.5,
211
212 {
213 "DZ\weapons\shotguns\Mp133\data\mp133_damage.rvmat"
214 }
215 },
216
217 {
218 0.30000001,
219
220 {
221 "DZ\weapons\shotguns\Mp133\data\mp133_damage.rvmat"
222 }
223 },
224
225 {
226 0,
227
228 {
229 "DZ\weapons\shotguns\Mp133\data\mp133_destruct.rvmat"
230 }
231 }
232 };
233 };
234 };
235 };
236 };
237 class Mp133Shotgun_PistolGrip: Mp133Shotgun_Base
238 {
239 scope=2;
240 displayName="$STR_cfgWeapons_Mp133Shotgun_PistolGrip0";
241 descriptionShort="$STR_cfgWeapons_Mp133Shotgun_PistolGrip1";
242 model="\dz\weapons\shotguns\mp133\mp133_pistol_grip.p3d";
243 animName="ShotgunMp133_Pistol_Grip";
244 attachments[]=
245 {
246 "pistolOptics"
247 };
248 itemSize[]={8,3};
249 weight=2800;
250 chamberSize=4;
251 recoilModifier[]={1,1,1};
252 swayModifier[]={1.5,1.5,1};
253 class DamageSystem
254 {
255 class GlobalHealth
256 {
257 class Health
258 {
259 hitpoints=200;
260 healthLevels[]=
261 {
262
263 {
264 1,
265
266 {
267 "DZ\weapons\shotguns\Mp133\data\mp133_pistol_grip.rvmat"
268 }
269 },
270
271 {
272 0.69999999,
273
274 {
275 "DZ\weapons\shotguns\Mp133\data\mp133_pistol_grip.rvmat"
276 }
277 },
278
279 {
280 0.5,
281
282 {
283 "DZ\weapons\shotguns\Mp133\data\mp133_pistol_grip_damage.rvmat"
284 }
285 },
286
287 {
288 0.30000001,
289
290 {
291 "DZ\weapons\shotguns\Mp133\data\mp133_pistol_grip_damage.rvmat"
292 }
293 },
294
295 {
296 0,
297
298 {
299 "DZ\weapons\shotguns\Mp133\data\mp133_pistol_grip_destruct.rvmat"
300 }
301 }
302 };
303 };
304 };
305 };
306 };
307};