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_FAL
4 {
5 units[]=
6 {
7 "FAL"
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_Burst;
21class Mode_FullAuto;
22class OpticsInfoRifle;
23class cfgWeapons
24{
25 class Rifle_Base;
26 class FAL_Base: Rifle_Base
27 {
28 scope=0;
29 weight=3700;
30 absorbency=0;
31 repairableWithKits[]={1};
32 repairCosts[]={25};
33 PPDOFProperties[]={1,0.5,20,170,4,10};
34 WeaponLength=1.1;
35 ObstructionDistance=0.80699998;
36 barrelArmor=2.2;
37 initSpeedMultiplier=0.89999998;
38 chamberSize=1;
39 chamberedRound="";
40 chamberableFrom[]=
41 {
42 "Ammo_308Win",
43 "Ammo_308WinTracer"
44 };
45 magazines[]=
46 {
47 "Mag_FAL_20Rnd"
48 };
49 magazineSwitchTime=0.44999999;
50 ejectType=1;
51 recoilModifier[]={1,1,1};
52 swayModifier[]={2.3,2.3,0.89999998};
53 simpleHiddenSelections[]=
54 {
55 "hide_barrel"
56 };
57 class NoiseShoot
58 {
59 strength=100;
60 type="shot";
61 };
62 modes[]=
63 {
64 "SemiAuto",
65 "FullAuto"
66 };
67 class SemiAuto: Mode_SemiAuto
68 {
69 soundSetShot[]=
70 {
71 "FNFAL_Shot_SoundSet",
72 "FNFAL_Tail_SoundSet",
73 "FNFAL_InteriorTail_SoundSet"
74 };
75 soundSetShotExt[]=
76 {
77
78 {
79 "FNFAL_silencerHomeMade_SoundSet",
80 "FNFAL_silencerHomeMadeTail_SoundSet",
81 "FNFAL_silencerInteriorHomeMadeTail_SoundSet"
82 }
83 };
84 reloadTime=0.12;
85 recoil="recoil_fal";
86 recoilProne="recoil_fal_prone";
87 dispersion=0.0020000001;
88 magazineSlot="magazine";
89 };
90 class FullAuto: Mode_FullAuto
91 {
92 soundSetShot[]=
93 {
94 "FNFAL_Shot_SoundSet",
95 "FNFAL_Tail_SoundSet",
96 "FNFAL_InteriorTail_SoundSet"
97 };
98 soundSetShotExt[]=
99 {
100
101 {
102 "FNFAL_silencerHomeMade_SoundSet",
103 "FNFAL_silencerHomeMadeTail_SoundSet",
104 "FNFAL_silencerInteriorHomeMadeTail_SoundSet"
105 }
106 };
107 reloadTime=0.097999997;
108 recoil="recoil_fal";
109 recoilProne="recoil_fal_prone";
110 dispersion=0.0020000001;
111 magazineSlot="magazine";
112 };
113 class OpticsInfo: OpticsInfoRifle
114 {
115 discreteDistance[]={200,300,400,500,600};
116 discreteDistanceInitIndex=0;
117 distanceZoomMin=200;
118 distanceZoomMax=600;
119 };
120 class InventorySlotsOffsets
121 {
122 class Shoulder
123 {
124 position[]={-0.050000001,0,0.02};
125 orientation[]={0,0,0};
126 };
127 class Melee
128 {
129 position[]={-0.050000001,0,-0.050000001};
130 orientation[]={0,0,0};
131 };
132 };
133 class Particles
134 {
135 class OnFire
136 {
137 class SmokeCloud
138 {
139 overrideParticle="weapon_shot_winded_smoke";
140 };
141 class MuzzleFlash
142 {
143 overrideParticle="weapon_shot_mosin9130_01";
144 ignoreIfSuppressed=1;
145 illuminateWorld=1;
146 positionOffset[]={0,0,0};
147 };
148 class MuzzleFlashStar
149 {
150 overrideParticle="weapon_shot_Flame_3D_4star";
151 ignoreIfSuppressed=1;
152 overrideDirectionVector[]={0,45,0};
153 positionOffset[]={0.0099999998,0,0};
154 };
155 class ChamberSmoke
156 {
157 overrideParticle="weapon_shot_chamber_smoke";
158 overridePoint="Nabojnicestart";
159 overrideDirectionPoint="Nabojniceend";
160 };
161 };
162 class OnOverheating
163 {
164 maxOverheatingValue=8;
165 shotsToStartOverheating=4;
166 overheatingDecayInterval=0.69999999;
167 class SmokingBarrel1
168 {
169 overrideParticle="smoking_barrel_small";
170 onlyWithinOverheatLimits[]={0,0.5};
171 positionOffset[]={0.2,0,0};
172 onlyWithinRainLimits[]={0,0.2};
173 };
174 class SmokingBarrel2
175 {
176 overrideParticle="smoking_barrel";
177 onlyWithinOverheatLimits[]={0.5,0.69999999};
178 positionOffset[]={0.2,0,0};
179 onlyWithinRainLimits[]={0,0.2};
180 };
181 class SmokingBarrel3
182 {
183 overrideParticle="smoking_barrel_heavy";
184 onlyWithinOverheatLimits[]={0.69999999,1};
185 positionOffset[]={0.2,0,0};
186 onlyWithinRainLimits[]={0,0.2};
187 };
188 class SmokingBarrelHotSteam
189 {
190 overrideParticle="smoking_barrel_steam";
191 positionOffset[]={0.1,0,0};
192 onlyWithinRainLimits[]={0.2,1};
193 };
194 class OpenChamberSmoke
195 {
196 onlyIfBoltIsOpen=1;
197 overrideParticle="smoking_barrel_small";
198 overridePoint="Nabojnicestart";
199 };
200 };
201 class OnBulletCasingEject
202 {
203 class ChamberSmokeRaise
204 {
205 overrideParticle="weapon_shot_chamber_smoke";
206 overridePoint="Nabojnicestart";
207 };
208 };
209 };
210 weaponStateAnim="dz\anims\anm\player\reloads\FNFaL\w_FNFaL_states.anm";
211 };
212 class FAL: FAL_Base
213 {
214 scope=2;
215 displayName="$STR_cfgWeapons_FAL0";
216 descriptionShort="$STR_cfgWeapons_FAL1";
217 model="\dz\weapons\firearms\fal\fal.p3d";
218 attachments[]=
219 {
220 "weaponButtstockFal",
221 "weaponWrap",
222 "weaponOptics",
223 "suppressorImpro"
224 };
225 itemSize[]={8,3};
226 class DamageSystem
227 {
228 class GlobalHealth
229 {
230 class Health
231 {
232 hitpoints=300;
233 healthLevels[]=
234 {
235
236 {
237 1,
238
239 {
240 "DZ\weapons\firearms\fal\Data\fal.rvmat"
241 }
242 },
243
244 {
245 0.69999999,
246
247 {
248 "DZ\weapons\firearms\fal\Data\fal.rvmat"
249 }
250 },
251
252 {
253 0.5,
254
255 {
256 "DZ\weapons\firearms\fal\Data\fal_damage.rvmat"
257 }
258 },
259
260 {
261 0.30000001,
262
263 {
264 "DZ\weapons\firearms\fal\Data\fal_damage.rvmat"
265 }
266 },
267
268 {
269 0,
270
271 {
272 "DZ\weapons\firearms\fal\Data\fal_destruct.rvmat"
273 }
274 }
275 };
276 };
277 };
278 };
279 };
280};