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_FNX45
4 {
5 units[]=
6 {
7 "FNX45"
8 };
9 weapons[]={};
10 requiredVersion=0.1;
11 requiredAddons[]=
12 {
13 "DZ_Data",
14 "DZ_Pistols"
15 };
16 };
17};
18class Mode_Safe;
19class Mode_SemiAuto;
20class Mode_Burst;
21class Mode_FullAuto;
23class cfgWeapons
24{
25 class Pistol_Base;
26 class FNX45_Base: Pistol_Base
27 {
28 scope=0;
29 weight=950;
30 absorbency=0;
31 repairableWithKits[]={1};
32 repairCosts[]={25};
33 PPDOFProperties[]={1,0.5,10,250,4,10};
34 ironsightsExcludingOptics[]=
35 {
36 "FNP45_MRDSOptic"
37 };
38 WeaponLength=0.22;
39 ShoulderDistance=0.40000001;
40 ObstructionDistance=0.442;
41 barrelArmor=1.7;
42 chamberSize=1;
43 chamberedRound="";
44 magazines[]=
45 {
46 "Mag_FNX45_15Rnd"
47 };
48 chamberableFrom[]=
49 {
50 "Ammo_45ACP"
51 };
52 ejectType=1;
53 recoilModifier[]={1,1,1};
54 swayModifier[]={1.3,1.3,0.5};
55 class NoiseShoot
56 {
57 strength=40;
58 type="shot";
59 };
60 modes[]=
61 {
62 "SemiAuto"
63 };
64 class SemiAuto: Mode_SemiAuto
65 {
66 soundSetShot[]=
67 {
68 "FNX45_Shot_SoundSet",
69 "FNX45_Tail_SoundSet",
70 "FNX45_InteriorTail_SoundSet"
71 };
72 soundSetShotExt[]=
73 {
74
75 {
76 "FNX45_silencerPro_SoundSet",
77 "FNX45_silencerTail_SoundSet",
78 "FNX45_silencerInteriorTail_SoundSet"
79 }
80 };
81 reloadTime=0.13;
82 recoil="recoil_fnx";
83 recoilProne="recoil_fnx_prone";
84 dispersion=0.003;
85 magazineSlot="magazine";
86 };
87 class OpticsInfo: OpticsInfoPistol
88 {
89 memoryPointCamera="eye";
90 discreteDistance[]={25};
91 discreteDistanceInitIndex=0;
92 modelOptics="-";
93 distanceZoomMin=100;
94 distanceZoomMax=100;
95 };
96 weaponStateAnim="dz\anims\anm\player\reloads\FNP45\w_fnp45_states.anm";
97 boneRemap[]=
98 {
99 "bolt",
100 "Weapon_Bolt",
101 "magazine",
102 "Weapon_Magazine",
103 "bullet",
104 "Weapon_Bullet",
105 "trigger",
106 "Weapon_Trigger",
107 "hammer",
108 "Weapon_Bone_01"
109 };
110 };
111 class FNX45: FNX45_Base
112 {
113 scope=2;
114 displayName="$STR_cfgWeapons_FNX450";
115 descriptionShort="$STR_cfgWeapons_FNX451";
116 model="\dz\weapons\pistols\fnx45\fnp45.p3d";
117 attachments[]=
118 {
119 "pistolOptics",
120 "pistolFlashlight",
121 "pistolMuzzle"
122 };
123 itemSize[]={3,2};
124 class DamageSystem
125 {
126 class GlobalHealth
127 {
128 class Health
129 {
130 hitpoints=150;
131 healthLevels[]=
132 {
133
134 {
135 1,
136
137 {
138 "DZ\weapons\pistols\fnx45\data\herstal45.rvmat",
139 "DZ\weapons\pistols\fnx45\data\herstal45_bolt.rvmat"
140 }
141 },
142
143 {
144 0.69999999,
145
146 {
147 "DZ\weapons\pistols\fnx45\data\herstal45.rvmat",
148 "DZ\weapons\pistols\fnx45\data\herstal45_bolt.rvmat"
149 }
150 },
151
152 {
153 0.5,
154
155 {
156 "DZ\weapons\pistols\fnx45\data\herstal45_damage.rvmat",
157 "DZ\weapons\pistols\fnx45\data\herstal45_bolt_damage.rvmat"
158 }
159 },
160
161 {
162 0.30000001,
163
164 {
165 "DZ\weapons\pistols\fnx45\data\herstal45_damage.rvmat",
166 "DZ\weapons\pistols\fnx45\data\herstal45_bolt_damage.rvmat"
167 }
168 },
169
170 {
171 0,
172
173 {
174 "DZ\weapons\pistols\fnx45\data\herstal45_destruct.rvmat",
175 "DZ\weapons\pistols\fnx45\data\herstal45_bolt_destruct.rvmat"
176 }
177 }
178 };
179 };
180 };
181 };
182 class Particles
183 {
184 class OnFire
185 {
186 class SmokeCloud
187 {
188 overrideParticle="weapon_shot_winded_smoke";
189 };
190 class MuzzleFlash
191 {
192 overrideParticle="weapon_shot_fnx_01";
193 ignoreIfSuppressed=1;
194 illuminateWorld=1;
195 positionOffset[]={0,0,0};
196 };
197 };
198 class OnOverheating
199 {
200 maxOverheatingValue=8;
201 shotsToStartOverheating=8;
202 overheatingDecayInterval=1;
203 class SmokingBarrel1
204 {
205 overrideParticle="smoking_barrel_small";
206 onlyWithinOverheatLimits[]={0,1};
207 positionOffset[]={0,0,0};
208 onlyWithinRainLimits[]={0,1};
209 };
210 class OpenChamberSmoke
211 {
212 onlyIfBoltIsOpen=1;
213 overrideParticle="smoking_barrel_small";
214 overridePoint="Nabojnicestart";
215 };
216 };
217 class OnBulletCasingEject
218 {
219 class ChamberSmokeRaise
220 {
221 overrideParticle="weapon_shot_chamber_smoke";
222 overridePoint="Nabojnicestart";
223 };
224 };
225 };
226 };
227 class FNX45_arrow: FNX45
228 {
229 scope=2;
230 displayName="$STR_cfgWeapons_FNX450";
231 descriptionShort="$STR_cfgWeapons_FNX451";
232 model="\dz\weapons\pistols\fnx45\fnp45.p3d";
233 attachments[]=
234 {
235 "pistolMuzzle",
236 "pistolOptics",
237 "pistolFlashlight"
238 };
239 itemSize[]={3,2};
240 chamberSize=1;
241 chamberedRound="";
242 dispersion=0.1;
243 magazines[]=
244 {
245 "Mag_FNX45_15Rnd"
246 };
247 chamberableFrom[]=
248 {
249 "Ammo_HuntingArrow",
250 "Ammo_ImprovisedArrow"
251 };
252 class Particles
253 {
254 class OnFire
255 {
256 class MuzzleFlashForward
257 {
258 ignoreIfSuppressed=1;
259 overrideParticle="weapon_shot_fnx_01";
260 };
261 class ChamberSmoke
262 {
263 overrideParticle="weapon_shot_chamber_smoke";
264 overridePoint="Nabojnicestart";
265 overrideDirectionPoint="Nabojniceend";
266 };
267 class ChamberSmokeRaise
268 {
269 overrideParticle="weapon_shot_chamber_smoke_raise";
270 overridePoint="Nabojnicestart";
271 };
272 };
273 };
274 };
275};
277{
278 class ProxyAttachment;
279 class ProxyFNP45: ProxyAttachment
280 {
281 scope=2;
282 inventorySlot="pistol";
283 model="\dz\weapons\pistols\fnx45\fnp45.p3d";
284 };
285};