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_1911
4 {
5 units[]=
6 {
7 "Colt1911",
8 "1911_Engraved"
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 Colt1911_Base: Pistol_Base
28 {
29 scope=0;
30 weight=1106;
31 absorbency=0;
32 repairableWithKits[]={1};
33 repairCosts[]={25};
34 PPDOFProperties[]={1,0.89999998,10,250,4,10};
35 WeaponLength=0.20999999;
36 ShoulderDistance=0.40000001;
37 ObstructionDistance=0.43099999;
38 barrelArmor=1.523;
39 initSpeedMultiplier=1;
40 chamberSize=1;
41 chamberedRound="";
42 magazines[]=
43 {
44 "Mag_1911_7Rnd"
45 };
46 chamberableFrom[]=
47 {
48 "Ammo_45ACP"
49 };
50 magazineSwitchTime=0.23999999;
51 ejectType=1;
52 recoilModifier[]={1,1,1};
53 swayModifier[]={1.3,1.3,0.60000002};
54 hiddenSelections[]=
55 {
56 "camoGround"
57 };
58 class NoiseShoot
59 {
60 strength=40;
61 type="shot";
62 };
63 modes[]=
64 {
65 "SemiAuto"
66 };
67 class SemiAuto: Mode_SemiAuto
68 {
69 soundSetShot[]=
70 {
71 "Colt1911_Shot_SoundSet",
72 "Colt1911_Tail_SoundSet",
73 "Colt1911_InteriorTail_SoundSet"
74 };
75 soundSetShotExt[]=
76 {
77
78 {
79 "Colt1911_silencerPro_SoundSet",
80 "Colt1911_silencerTail_SoundSet",
81 "Colt1911_silencerInteriorTail_SoundSet"
82 }
83 };
84 reloadTime=0.13;
85 recoil="recoil_1911";
86 recoilProne="recoil_1911_prone";
87 dispersion=0.0044999998;
88 magazineSlot="magazine";
89 };
90 class OpticsInfo: OpticsInfoPistol
91 {
92 memoryPointCamera="eye";
93 discreteDistance[]={25};
94 discreteDistanceInitIndex=0;
95 modelOptics="-";
96 distanceZoomMin=100;
97 distanceZoomMax=100;
98 };
99 class Particles
100 {
101 class OnFire
102 {
103 class SmokeCloud
104 {
105 overrideParticle="weapon_shot_winded_smoke";
106 };
107 class MuzzleFlash
108 {
109 overrideParticle="weapon_shot_fnx_01";
110 ignoreIfSuppressed=1;
111 illuminateWorld=1;
112 positionOffset[]={0,0,0};
113 };
114 };
115 class OnOverheating
116 {
117 maxOverheatingValue=8;
118 shotsToStartOverheating=8;
119 overheatingDecayInterval=1;
120 class SmokingBarrel1
121 {
122 overrideParticle="smoking_barrel_small";
123 onlyWithinOverheatLimits[]={0,1};
124 positionOffset[]={0,0,0};
125 onlyWithinRainLimits[]={0,1};
126 };
127 class OpenChamberSmoke
128 {
129 onlyIfBoltIsOpen=1;
130 overrideParticle="smoking_barrel_small";
131 overridePoint="Nabojnicestart";
132 };
133 };
134 class OnBulletCasingEject
135 {
136 class ChamberSmokeRaise
137 {
138 overrideParticle="weapon_shot_chamber_smoke";
139 overridePoint="Nabojnicestart";
140 };
141 };
142 };
143 weaponStateAnim="dz\anims\anm\player\reloads\1911\w_1911_states.anm";
144 };
145 class Colt1911: Colt1911_Base
146 {
147 scope=2;
148 displayName="$STR_cfgWeapons_Colt19110";
149 descriptionShort="$STR_cfgWeapons_Colt19111";
150 hiddenSelections[]=
151 {
152 "camoGround"
153 };
154 model="\dz\weapons\pistols\1911\1911.p3d";
155 attachments[]=
156 {
157 "pistolFlashlight",
158 "pistolMuzzle"
159 };
160 itemSize[]={3,2};
161 hiddenSelectionsTextures[]=
162 {
163 "dz\weapons\pistols\1911\data\1911_co.paa"
164 };
165 hiddenSelectionsMaterials[]=
166 {
167 "dz\weapons\pistols\1911\data\1911.rvmat"
168 };
169 class DamageSystem
170 {
171 class GlobalHealth
172 {
173 class Health
174 {
175 hitpoints=200;
176 healthLevels[]=
177 {
178
179 {
180 1,
181
182 {
183 "DZ\weapons\pistols\1911\data\1911.rvmat"
184 }
185 },
186
187 {
188 0.69999999,
189
190 {
191 "DZ\weapons\pistols\1911\data\1911.rvmat"
192 }
193 },
194
195 {
196 0.5,
197
198 {
199 "DZ\weapons\pistols\1911\data\1911_damage.rvmat"
200 }
201 },
202
203 {
204 0.30000001,
205
206 {
207 "DZ\weapons\pistols\1911\data\1911_damage.rvmat"
208 }
209 },
210
211 {
212 0,
213
214 {
215 "DZ\weapons\pistols\1911\data\1911_destruct.rvmat"
216 }
217 }
218 };
219 };
220 };
221 };
222 };
223 class Engraved1911: Colt1911_Base
224 {
225 scope=2;
226 displayName="$STR_cfgweapons_engraved19110";
227 descriptionShort="$STR_cfgweapons_engraved19111";
228 model="\dz\weapons\pistols\1911\1911.p3d";
229 attachments[]=
230 {
231 "pistolFlashlight",
232 "pistolMuzzle"
233 };
234 itemSize[]={3,2};
235 hiddenSelectionsTextures[]=
236 {
237 "dz\weapons\pistols\1911\data\1911_engraved_co.paa"
238 };
239 hiddenSelectionsMaterials[]=
240 {
241 "dz\weapons\pistols\1911\data\1911_engraved.rvmat"
242 };
243 class DamageSystem
244 {
245 class GlobalHealth
246 {
247 class Health
248 {
249 hitpoints=200;
250 healthLevels[]=
251 {
252
253 {
254 1,
255
256 {
257 "DZ\weapons\pistols\1911\data\1911.rvmat"
258 }
259 },
260
261 {
262 0.69999999,
263
264 {
265 "DZ\weapons\pistols\1911\data\1911_engraved.rvmat"
266 }
267 },
268
269 {
270 0.5,
271
272 {
273 "DZ\weapons\pistols\1911\data\1911_engraved_damage.rvmat"
274 }
275 },
276
277 {
278 0.30000001,
279
280 {
281 "DZ\weapons\pistols\1911\data\1911_engraved_damage.rvmat"
282 }
283 },
284
285 {
286 0,
287
288 {
289 "DZ\weapons\pistols\1911\data\1911_engraved_destruct.rvmat"
290 }
291 }
292 };
293 };
294 };
295 };
296 };
297};
299{
300 class ProxyAttachment;
301 class Proxy1911: ProxyAttachment
302 {
303 scope=2;
304 inventorySlot="pistol";
305 model="\dz\weapons\pistols\1911\1911.p3d";
306 };
307};