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_SSG82
4 {
5 units[]=
6 {
7 "SSG82"
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_Single;
21class Mode_Burst;
22class Mode_FullAuto;
23class OpticsInfoRifle;
24class cfgWeapons
25{
26 class BoltActionRifle_ExternalMagazine_Base;
27 class SSG82_Base: BoltActionRifle_ExternalMagazine_Base
28 {
29 scope=0;
30 animName="cz527";
31 weight=4500;
32 repairableWithKits[]={1};
33 repairCosts[]={25};
34 PPDOFProperties[]={1,0.1,20,200,10,10};
35 WeaponLength=1.05;
36 ObstructionDistance=0.88999999;
37 barrelArmor=0.80000001;
38 initSpeedMultiplier=1;
39 chamberSize=1;
40 chamberedRound="";
41 chamberableFrom[]=
42 {
43 "Ammo_545x39",
44 "Ammo_545x39Tracer"
45 };
46 magazines[]=
47 {
48 "Mag_SSG82_5rnd"
49 };
50 magazineSwitchTime=0.38;
51 ejectType=0;
52 recoilModifier[]={1,1,1};
53 swayModifier[]={2.2,2.2,0.85000002};
54 simpleHiddenSelections[]=
55 {
56 "hide_barrel"
57 };
58 hiddenSelections[]=
59 {
60 "camo"
61 };
62 class NoiseShoot
63 {
64 strength=100;
65 type="shot";
66 };
67 modes[]=
68 {
69 "Single"
70 };
71 class Single: Mode_Single
72 {
73 soundSetShot[]=
74 {
75 "SSG82_Shot_SoundSet",
76 "SSG82_Shot_interior_SoundSet",
77 "SSG82_Tail_SoundSet",
78 "SSG82_InteriorTail_SoundSet",
79 "SSG82_Tail_2D_SoundSet"
80 };
81 soundSetShotExt[]=
82 {
83
84 {
85 "SSG82_silencerHomeMade_SoundSet",
86 "SSG82_silencerHomeMadeTail_SoundSet",
87 "SSG82_silencerInteriorHomeMadeTail_SoundSet"
88 }
89 };
90 reloadTime=1;
91 dispersion=0.00075000001;
92 magazineSlot="magazine";
93 };
94 class OpticsInfo: OpticsInfoRifle
95 {
96 memoryPointCamera="eye";
97 modelOptics="-";
98 distanceZoomMin=100;
99 distanceZoomMax=100;
100 discreteDistance[]={100};
101 discreteDistanceInitIndex=0;
102 };
103 class InventorySlotsOffsets
104 {
105 class Shoulder
106 {
107 position[]={0.02,-0.02,-0.02};
108 orientation[]={0,-30,0};
109 };
110 class Melee
111 {
112 position[]={0.02,0,0.0099999998};
113 orientation[]={0,30,0};
114 };
115 };
116 class Particles
117 {
118 class OnFire
119 {
120 class MuzzleFlash
121 {
122 overrideParticle="weapon_shot_cz527_01";
123 ignoreIfSuppressed=1;
124 illuminateWorld=1;
125 positionOffset[]={-0.050000001,0,0};
126 };
127 };
128 class OnOverheating
129 {
130 maxOverheatingValue=1;
131 shotsToStartOverheating=1;
132 overheatingDecayInterval=0.5;
133 class SmokingBarrel1
134 {
135 overrideParticle="smoking_barrel_small";
136 onlyWithinOverheatLimits[]={0.1,1};
137 positionOffset[]={0,0,0};
138 onlyWithinRainLimits[]={0,0.2};
139 };
140 };
141 class OnBulletCasingEject
142 {
143 class ChamberSmokeRaise
144 {
145 overrideParticle="weapon_shot_chamber_smoke";
146 overridePoint="Nabojnicestart";
147 };
148 };
149 };
150 weaponStateAnim="dz\anims\anm\player\reloads\SSG82\w_SSG82_states.anm";
151 };
152 class SSG82: SSG82_Base
153 {
154 scope=2;
155 displayName="$STR_cfgweapons_SSG820";
156 descriptionShort="$STR_cfgweapons_SSG821";
157 model="\dz\weapons\firearms\ssg82\ssg82.p3d";
158 attachments[]=
159 {
160 "weaponWrap",
161 "weaponOpticsAug",
162 "suppressorImpro"
163 };
164 itemSize[]={9,3};
165 hiddenSelections[]=
166 {
167 "camo_01",
168 "camo_02"
169 };
170 hiddenSelectionsTextures[]=
171 {
172 "dz\weapons\firearms\ssg82\data\ssg82_01_co.paa",
173 "dz\weapons\firearms\ssg82\data\ssg82_02_co.paa"
174 };
175 hiddenSelectionsMaterials[]=
176 {
177 "dz\weapons\firearms\ssg82\data\ssg82_01.rvmat",
178 "dz\weapons\firearms\ssg82\data\ssg82_02.rvmat"
179 };
180 class DamageSystem
181 {
182 class GlobalHealth
183 {
184 class Health
185 {
186 hitpoints=250;
187 healthLevels[]=
188 {
189
190 {
191 1,
192
193 {
194 "DZ\weapons\firearms\ssg82\data\ssg82_01.rvmat",
195 "DZ\weapons\firearms\ssg82\data\ssg82_02.rvmat"
196 }
197 },
198
199 {
200 0.69999999,
201
202 {
203 "DZ\weapons\firearms\ssg82\data\ssg82_01.rvmat",
204 "DZ\weapons\firearms\ssg82\data\ssg82_02.rvmat"
205 }
206 },
207
208 {
209 0.5,
210
211 {
212 "DZ\weapons\firearms\ssg82\data\ssg82_01_damage.rvmat",
213 "DZ\weapons\firearms\ssg82\data\ssg82_02_damage.rvmat"
214 }
215 },
216
217 {
218 0.30000001,
219
220 {
221 "DZ\weapons\firearms\ssg82\data\ssg82_01_damage.rvmat",
222 "DZ\weapons\firearms\ssg82\data\ssg82_02_damage.rvmat"
223 }
224 },
225
226 {
227 0,
228
229 {
230 "DZ\weapons\firearms\ssg82\data\ssg82_01_destruct.rvmat",
231 "DZ\weapons\firearms\ssg82\data\ssg82_02_destruct.rvmat"
232 }
233 }
234 };
235 };
236 };
237 };
238 };
239};
240class cfgVehicles
241{
242 class Inventory_Base;
243 class ItemOptics: Inventory_Base
244 {
245 };
246 class SSG82Optic: ItemOptics
247 {
248 scope=2;
249 model="\dz\weapons\firearms\ssg82\proxy\optic_SSG82.p3d";
250 weight=1;
251 inventorySlot[]=
252 {
253 "weaponOpticsAug"
254 };
255 reversed=0;
256 class OpticsInfo
257 {
258 memoryPointCamera="eyeScope";
259 cameraDir="cameraDir";
260 modelOptics="-";
261 opticsDisablePeripherialVision=0.67000002;
262 opticsFlare=1;
263 opticsPPEffects[]={};
264 opticsZoomMin="0.3926/4";
265 opticsZoomMax="0.3926/4";
266 opticsZoomInit="0.3926/4";
267 distanceZoomMin=100;
268 distanceZoomMax=100;
269 discreteDistance[]={100};
270 discreteDistanceInitIndex=0;
271 PPMaskProperties[]={0.5,0.5,0.25999999,0.085000001};
272 PPLensProperties[]={0.75,0.75,0,0};
273 PPBlurProperties=0.40000001;
274 };
275 };
276};
278{
279 class ProxyAttachment;
280 class Proxyscope: ProxyAttachment
281 {
282 scope=2;
283 inventorySlot="weaponOpticsAug";
284 model="\dz\weapons\firearms\ssg82\proxy\optic_SSG82.p3d";
285 };
286};