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_Firearms_PP19
4 {
5 units[]=
6 {
7 "PP19"
8 };
9 weapons[]={};
10 requiredVersion=0.1;
11 requiredAddons[]=
12 {
13 "DZ_Data",
14 "DZ_Weapons_Firearms"
15 };
16 };
17};
18class Mode_Safe;
19class Mode_SemiAuto;
20class Mode_FullAuto;
21class OpticsInfoRifle;
22class cfgWeapons
23{
24 class Rifle_Base;
25 class PP19_Base: Rifle_Base
26 {
27 scope=0;
28 displayName="$STR_cfgWeapons_PP19_0";
29 descriptionShort="$STR_cfgWeapons_PP19_1";
30 model="\dz\weapons\firearms\PP19\PP19.p3d";
31 attachments[]=
32 {
33 "weaponWrap",
34 "weaponOpticsAK",
35 "pistolMuzzle",
36 "weaponButtstockPP19"
37 };
38 weight=2900;
39 itemSize[]={6,3};
40 repairableWithKits[]={1};
41 repairCosts[]={25};
42 WeaponLength=0.63999999;
43 ObstructionDistance=0.43099999;
44 barrelArmor=1.35;
45 chamberSize=1;
46 chamberedRound="";
47 chamberableFrom[]=
48 {
49 "Ammo_380"
50 };
51 magazines[]=
52 {
53 "Mag_PP19_64Rnd"
54 };
55 magazineSwitchTime=0.30000001;
56 initSpeedMultiplier=1.25;
57 ejectType=1;
58 recoilModifier[]={1,1,1};
59 swayModifier[]={1,1,0.80000001};
60 PPDOFProperties[]={1,0.5,10,130,4,10};
61 hiddenSelections[]=
62 {
63 "camo"
64 };
65 hiddenSelectionsTextures[]=
66 {
67 "dz\weapons\firearms\PP19\data\PP19_co.paa"
68 };
69 hiddenSelectionsMaterials[]=
70 {
71 "dz\weapons\firearms\PP19\data\PP_19.rvmat"
72 };
73 class NoiseShoot
74 {
75 strength=60;
76 type="shot";
77 };
78 class DamageSystem
79 {
80 class GlobalHealth
81 {
82 class Health
83 {
84 hitpoints=250;
85 healthLevels[]=
86 {
87
88 {
89 1,
90
91 {
92 "DZ\weapons\firearms\PP19\Data\PP_19.rvmat"
93 }
94 },
95
96 {
97 0.69999999,
98
99 {
100 "DZ\weapons\firearms\PP19\Data\PP_19.rvmat"
101 }
102 },
103
104 {
105 0.5,
106
107 {
108 "DZ\weapons\firearms\PP19\Data\PP_19_damage.rvmat"
109 }
110 },
111
112 {
113 0.30000001,
114
115 {
116 "DZ\weapons\firearms\PP19\Data\PP_19_damage.rvmat"
117 }
118 },
119
120 {
121 0,
122
123 {
124 "DZ\weapons\firearms\PP19\Data\PP_19_destruct.rvmat"
125 }
126 }
127 };
128 };
129 };
130 };
131 modes[]=
132 {
133 "SemiAuto",
134 "FullAuto"
135 };
136 class SemiAuto: Mode_SemiAuto
137 {
138 soundSetShot[]=
139 {
140 "PP19_Shot_1st_SoundSet",
141 "PP19_Shot_1st_iterior_SoundSet",
142 "PP19_Tail_SoundSet",
143 "PP19_InteriorTail_SoundSet",
144 "PP19_Slapback_SoundSet",
145 "PP19_Tail_2D_SoundSet"
146 };
147 soundSetShotExt[]=
148 {
149
150 {
151 "PP19_1st_silencer_SoundSet",
152 "PP19_silencerTail_SoundSet",
153 "PP19_silencerInteriorTail_SoundSet"
154 },
155
156 {
157 "PP19_1st_silencerHomeMade_SoundSet",
158 "PP19_silencerHomeMadeTail_SoundSet",
159 "PP19_silencerInteriorHomeMadeTail_SoundSet"
160 }
161 };
162 reloadTime=0.12;
163 recoil="recoil_cz61";
164 recoilProne="recoil_cz61_prone";
165 dispersion=0.003;
166 magazineSlot="magazine";
167 };
168 class FullAuto: Mode_FullAuto
169 {
170 soundSetShot1st[]=
171 {
172 "PP19_Shot_1st_SoundSet",
173 "PP19_Shot_1st_iterior_SoundSet"
174 };
175 soundSetShot[]=
176 {
177 "PP19_Shot_SoundSet",
178 "PP19_Shot_iterior_SoundSet",
179 "PP19_Tail_SoundSet",
180 "PP19_InteriorTail_SoundSet",
181 "PP19_Slapback_SoundSet",
182 "PP19_Tail_2D_SoundSet"
183 };
184 soundSetShotExt1st[]=
185 {
186
187 {
188 "PP19_1st_silencer_SoundSet"
189 },
190
191 {
192 "PP19_1st_silencerHomeMade_SoundSet"
193 }
194 };
195 soundSetShotExt[]=
196 {
197
198 {
199 "PP19_silencer_SoundSet",
200 "PP19_silencerTail_SoundSet",
201 "PP19_silencerInteriorTail_SoundSet"
202 },
203
204 {
205 "PP19_silencerHomeMade_SoundSet",
206 "PP19_silencerHomeMadeTail_SoundSet",
207 "PP19_silencerInteriorHomeMadeTail_SoundSet"
208 }
209 };
210 reloadTime=0.097999997;
211 recoil="recoil_cz61";
212 recoilProne="recoil_cz61_prone";
213 dispersion=0.003;
214 magazineSlot="magazine";
215 };
216 class OpticsInfo: OpticsInfoRifle
217 {
218 memoryPointCamera="eye";
219 discreteDistance[]={75,150};
220 discreteDistanceInitIndex=0;
221 modelOptics="-";
222 distanceZoomMin=100;
223 distanceZoomMax=100;
224 };
225 class InventorySlotsOffsets
226 {
227 class Shoulder
228 {
229 position[]={-0.059999999,-0.02,0.029999999};
230 orientation[]={0,15,0};
231 };
232 class Melee
233 {
234 position[]={-0.059999999,-0.02,-0.050000001};
235 orientation[]={0,-15,0};
236 };
237 };
238 class Particles
239 {
240 class OnFire
241 {
242 class SmokeCloud
243 {
244 overrideParticle="weapon_shot_winded_smoke";
245 };
246 class MuzzleFlash
247 {
248 overrideParticle="weapon_shot_fnx_01";
249 ignoreIfSuppressed=1;
250 illuminateWorld=1;
251 positionOffset[]={0,0,0};
252 };
253 class ChamberSmoke
254 {
255 overrideParticle="weapon_shot_chamber_smoke";
256 overridePoint="Nabojnicestart";
257 overrideDirectionPoint="Nabojniceend";
258 };
259 };
260 class OnOverheating
261 {
262 maxOverheatingValue=12;
263 shotsToStartOverheating=4;
264 overheatingDecayInterval=0.69999999;
265 class SmokingBarrel1
266 {
267 overrideParticle="smoking_barrel_small";
268 onlyWithinOverheatLimits[]={0.1,1};
269 positionOffset[]={0,0,0};
270 onlyWithinRainLimits[]={0,0.2};
271 };
272 class SmokingBarrelHotSteamSmall
273 {
274 overrideParticle="smoking_barrel_steam_small";
275 positionOffset[]={0.1,0,0};
276 onlyWithinRainLimits[]={0.2,1};
277 };
278 class OpenChamberSmoke
279 {
280 onlyIfBoltIsOpen=1;
281 overrideParticle="smoking_barrel_small";
282 overridePoint="Nabojnicestart";
283 };
284 };
285 class OnBulletCasingEject
286 {
287 class ChamberSmokeRaise
288 {
289 overrideParticle="weapon_shot_chamber_smoke";
290 overridePoint="Nabojnicestart";
291 };
292 };
293 };
294 weaponStateAnim="dz\anims\anm\player\reloads\Bizon\w_bizon_states.anm";
295 };
296 class PP19: PP19_Base
297 {
298 scope=2;
299 };
300};