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_CZ550
4 {
5 units[]=
6 {
7 "cz550"
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 CZ550_Base: BoltActionRifle_ExternalMagazine_Base
28 {
29 scope=0;
30 animName="cz527";
31 weight=3300;
32 repairableWithKits[]={1};
33 repairCosts[]={25};
34 PPDOFProperties[]={1,0.5,50,160,4,10};
35 opticsFlare=0;
36 winchesterTypeOpticsMount=1;
37 ironsightsExcludingOptics[]=
38 {
39 "HuntingOptic"
40 };
41 WeaponLength=1.1;
42 ObstructionDistance=0.92500001;
43 barrelArmor=1.6;
44 initSpeedMultiplier=1.15;
45 chamberSize=1;
46 chamberedRound="";
47 chamberableFrom[]=
48 {
49 "Ammo_308Win",
50 "Ammo_308WinTracer"
51 };
52 magazines[]=
53 {
54 "Mag_CZ550_4rnd",
55 "Mag_CZ550_10rnd"
56 };
57 magazineSwitchTime=0.38;
58 ejectType=0;
59 recoilModifier[]={1,1,1};
60 swayModifier[]={2.2,2.2,0.85000002};
61 simpleHiddenSelections[]=
62 {
63 "hide_barrel"
64 };
65 hiddenSelections[]=
66 {
67 "camo"
68 };
69 class NoiseShoot
70 {
71 strength=100;
72 type="shot";
73 };
74 modes[]=
75 {
76 "Single"
77 };
78 class Single: Mode_Single
79 {
80 soundSetShot[]=
81 {
82 "CZ550_Shot_SoundSet",
83 "CZ550_Shot_iterior_SoundSet",
84 "CZ550_Tail_SoundSet",
85 "CZ550_InteriorTail_SoundSet",
86 "CZ550_Tail_2D_SoundSet"
87 };
88 soundSetShotExt[]=
89 {
90
91 {
92 "CZ550_silencerHomeMade_SoundSet",
93 "CZ550_silencerHomeMadeTail_SoundSet",
94 "CZ550_silencerInteriorHomeMadeTail_SoundSet"
95 }
96 };
97 reloadTime=1;
98 dispersion=0.00075000001;
99 magazineSlot="magazine";
100 };
101 class OpticsInfo: OpticsInfoRifle
102 {
103 memoryPointCamera="eye";
104 modelOptics="-";
105 distanceZoomMin=200;
106 distanceZoomMax=200;
107 discreteDistance[]={200};
108 discreteDistanceInitIndex=0;
109 };
110 class InventorySlotsOffsets
111 {
112 class Shoulder
113 {
114 position[]={0,-0.02,-0.029999999};
115 orientation[]={0,-30,0};
116 };
117 class Melee
118 {
119 position[]={0,-0.029999999,0.02};
120 orientation[]={0,30,0};
121 };
122 };
123 class Particles
124 {
125 class OnFire
126 {
127 class MuzzleFlash
128 {
129 overrideParticle="weapon_shot_cz527_01";
130 ignoreIfSuppressed=1;
131 illuminateWorld=1;
132 positionOffset[]={-0.050000001,0,0};
133 };
134 class ChamberSmoke
135 {
136 overrideParticle="weapon_shot_chamber_smoke";
137 overridePoint="Nabojnicestart";
138 overrideDirectionPoint="Nabojniceend";
139 };
140 };
141 class OnOverheating
142 {
143 maxOverheatingValue=1;
144 shotsToStartOverheating=1;
145 overheatingDecayInterval=0.5;
146 class SmokingBarrel1
147 {
148 overrideParticle="smoking_barrel_small";
149 onlyWithinOverheatLimits[]={0.1,1};
150 positionOffset[]={0,0,0};
151 onlyWithinRainLimits[]={0,0.2};
152 };
153 class OpenChamberSmoke
154 {
155 onlyIfBoltIsOpen=1;
156 overrideParticle="smoking_barrel_small";
157 overridePoint="Nabojnicestart";
158 };
159 };
160 class OnBulletCasingEject
161 {
162 class ChamberSmokeRaise
163 {
164 overrideParticle="weapon_shot_chamber_smoke";
165 overridePoint="Nabojnicestart";
166 };
167 };
168 };
169 weaponStateAnim="dz\anims\anm\player\reloads\cz550\w_cz550_states.anm";
170 };
171 class CZ550: CZ550_Base
172 {
173 scope=2;
174 displayName="$STR_cfgweapons_cz5500";
175 descriptionShort="$STR_cfgweapons_cz5501";
176 model="\dz\weapons\firearms\cz550\cz550.p3d";
177 attachments[]=
178 {
179 "weaponWrap",
180 "weaponOpticsHunting",
181 "suppressorImpro"
182 };
183 itemSize[]={10,3};
184 hiddenSelectionsTextures[]=
185 {
186 "dz\weapons\firearms\cz550\data\cz550_co.paa"
187 };
188 hiddenSelectionsMaterials[]=
189 {
190 "dz\weapons\firearms\cz550\data\cz550.rvmat"
191 };
192 class DamageSystem
193 {
194 class GlobalHealth
195 {
196 class Health
197 {
198 hitpoints=300;
199 healthLevels[]=
200 {
201
202 {
203 1,
204
205 {
206 "DZ\weapons\firearms\cz550\Data\cz550.rvmat"
207 }
208 },
209
210 {
211 0.69999999,
212
213 {
214 "DZ\weapons\firearms\cz550\Data\cz550.rvmat"
215 }
216 },
217
218 {
219 0.5,
220
221 {
222 "DZ\weapons\firearms\cz550\Data\cz550_damage.rvmat"
223 }
224 },
225
226 {
227 0.30000001,
228
229 {
230 "DZ\weapons\firearms\cz550\Data\cz550_damage.rvmat"
231 }
232 },
233
234 {
235 0,
236
237 {
238 "DZ\weapons\firearms\cz550\Data\cz550_destruct.rvmat"
239 }
240 }
241 };
242 };
243 };
244 };
245 };
246};