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_DE
4 {
5 units[]=
6 {
7 "Deagle",
8 "Deagle_g"
9 };
10 weapons[]={};
11 requiredVersion=0.1;
12 requiredAddons[]=
13 {
14 "DZ_Data",
15 "DZ_Pistols"
16 };
17 };
18};
19class Mode_Safe;
20class Mode_SemiAuto;
21class Mode_Burst;
22class Mode_FullAuto;
24class cfgWeapons
25{
26 class Pistol_Base;
27 class Deagle_Base: Pistol_Base
28 {
29 scope=0;
30 weight=1500;
31 absorbency=0;
32 repairableWithKits[]={1};
33 repairCosts[]={25};
34 PPDOFProperties[]={1,0.89999998,10,250,5,10};
35 WeaponLength=0.28;
36 ShoulderDistance=0.38999999;
37 ObstructionDistance=0.47299999;
38 barrelArmor=0.80000001;
39 initSpeedMultiplier=1;
40 chamberSize=1;
41 chamberedRound="";
42 magazines[]=
43 {
44 "Mag_Deagle_9rnd"
45 };
46 chamberableFrom[]=
47 {
48 "Ammo_357"
49 };
50 ejectType=1;
51 recoilModifier[]={1,1,1};
52 swayModifier[]={1.3,1.3,0.60000002};
53 simpleHiddenSelections[]=
54 {
55 "hide_barrel"
56 };
57 hiddenSelections[]=
58 {
59 "camo",
60 "camo_plastic"
61 };
62 class NoiseShoot
63 {
64 strength=80;
65 type="shot";
66 };
67 modes[]=
68 {
69 "SemiAuto"
70 };
71 class SemiAuto: Mode_SemiAuto
72 {
73 soundSetShot[]=
74 {
75 "DEG_Shot_SoundSet",
76 "DEG_Tail_SoundSet",
77 "DEG_InteriorTail_SoundSet"
78 };
79 soundSetShotExt[]=
80 {
81
82 {
83 "DEG_silencerPro_SoundSet",
84 "DEG_silencerTail_SoundSet",
85 "DEG_silencerInteriorTail_SoundSet"
86 }
87 };
88 reloadTime=0.16;
89 dispersion=0.003;
90 magazineSlot="magazine";
91 };
92 class OpticsInfo: OpticsInfoPistol
93 {
94 memoryPointCamera="eye";
95 discreteDistance[]={25};
96 discreteDistanceInitIndex=0;
97 modelOptics="-";
98 distanceZoomMin=100;
99 distanceZoomMax=100;
100 };
101 class Particles
102 {
103 class OnFire
104 {
105 class SmokeCloud
106 {
107 overrideParticle="weapon_shot_winded_smoke";
108 };
109 class MuzzleFlash
110 {
111 overrideParticle="weapon_shot_fnx_01";
112 ignoreIfSuppressed=1;
113 illuminateWorld=1;
114 positionOffset[]={0,0,0};
115 };
116 };
117 class OnOverheating
118 {
119 maxOverheatingValue=8;
120 shotsToStartOverheating=8;
121 overheatingDecayInterval=1;
122 class SmokingBarrel1
123 {
124 overrideParticle="smoking_barrel_small";
125 onlyWithinOverheatLimits[]={0,1};
126 positionOffset[]={0,0,0};
127 onlyWithinRainLimits[]={0,1};
128 };
129 class OpenChamberSmoke
130 {
131 onlyIfBoltIsOpen=1;
132 overrideParticle="smoking_barrel_small";
133 overridePoint="Nabojnicestart";
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\Deagle\w_Deagle_states.anm";
146 };
147 class Deagle: Deagle_Base
148 {
149 scope=2;
150 displayName="$STR_cfgWeapons_DE0";
151 descriptionShort="$STR_cfgWeapons_DE1";
152 model="\dz\weapons\pistols\DE\DE.p3d";
153 attachments[]=
154 {
155 "weaponOpticsCrossbow",
156 "pistolMuzzle"
157 };
158 itemSize[]={4,2};
159 hiddenSelectionsTextures[]=
160 {
161 "dz\weapons\pistols\DE\data\deagle_co.paa",
162 "dz\weapons\pistols\DE\data\deagle_co.paa"
163 };
164 hiddenSelectionsMaterials[]=
165 {
166 "dz\weapons\pistols\DE\data\deagle.rvmat",
167 "dz\weapons\pistols\DE\data\deagle_plastic.rvmat"
168 };
169 class DamageSystem
170 {
171 class GlobalHealth
172 {
173 class Health
174 {
175 hitpoints=220;
176 healthLevels[]=
177 {
178
179 {
180 1,
181
182 {
183 "dz\weapons\pistols\DE\data\deagle.rvmat",
184 "dz\weapons\pistols\DE\data\deagle_plastic.rvmat"
185 }
186 },
187
188 {
189 0.69999999,
190
191 {
192 "dz\weapons\pistols\DE\data\deagle.rvmat",
193 "dz\weapons\pistols\DE\data\deagle_plastic.rvmat"
194 }
195 },
196
197 {
198 0.5,
199
200 {
201 "dz\weapons\pistols\DE\data\deagle_damage.rvmat",
202 "dz\weapons\pistols\DE\data\deagle_plastic_damage.rvmat"
203 }
204 },
205
206 {
207 0.30000001,
208
209 {
210 "dz\weapons\pistols\DE\data\deagle_damage.rvmat",
211 "dz\weapons\pistols\DE\data\deagle_plastic_damage.rvmat"
212 }
213 },
214
215 {
216 0,
217
218 {
219 "dz\weapons\pistols\DE\data\deagle_destruct.rvmat",
220 "dz\weapons\pistols\DE\data\deagle_plastic_destruct.rvmat"
221 }
222 }
223 };
224 };
225 };
226 };
227 };
228 class Deagle_Gold: Deagle
229 {
230 hiddenSelectionsTextures[]=
231 {
232 "dz\weapons\pistols\DE\data\deagle_co.paa",
233 "dz\weapons\pistols\DE\data\deagle_co.paa"
234 };
235 hiddenSelectionsMaterials[]=
236 {
237 "dz\weapons\pistols\DE\data\deagle_g.rvmat",
238 "dz\weapons\pistols\DE\data\deagle_plastic.rvmat"
239 };
240 class DamageSystem
241 {
242 class GlobalHealth
243 {
244 class Health
245 {
246 hitpoints=220;
247 RefTexsMats[]=
248 {
249 "dz\weapons\pistols\de\data\deagle.rvmat"
250 };
251 healthLevels[]=
252 {
253
254 {
255 1,
256
257 {
258 "dz\weapons\pistols\DE\data\deagle_g.rvmat",
259 "dz\weapons\pistols\DE\data\deagle_plastic.rvmat"
260 }
261 },
262
263 {
264 0.69999999,
265
266 {
267 "dz\weapons\pistols\DE\data\deagle_g.rvmat",
268 "dz\weapons\pistols\DE\data\deagle_plastic.rvmat"
269 }
270 },
271
272 {
273 0.5,
274
275 {
276 "dz\weapons\pistols\DE\data\deagle_g_damage.rvmat",
277 "dz\weapons\pistols\DE\data\deagle_plastic_damage.rvmat"
278 }
279 },
280
281 {
282 0.30000001,
283
284 {
285 "dz\weapons\pistols\DE\data\deagle_g_damage.rvmat",
286 "dz\weapons\pistols\DE\data\deagle_plastic_damage.rvmat"
287 }
288 },
289
290 {
291 0,
292
293 {
294 "dz\weapons\pistols\DE\data\deagle_g_destruct.rvmat",
295 "dz\weapons\pistols\DE\data\deagle_plastic_destruct.rvmat"
296 }
297 }
298 };
299 };
300 };
301 };
302 };
303};
305{
306 class ProxyAttachment;
307 class ProxyDE: ProxyAttachment
308 {
309 scope=2;
310 inventorySlot="pistol";
311 model="\dz\weapons\pistols\DE\DE.p3d";
312 };
313};