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_Winchester70
4 {
5 units[]=
6 {
7 "Winchester70",
8 "Winchester70_Black",
9 "Winchester70_Green"
10 };
11 weapons[]={};
12 requiredVersion=0.1;
13 requiredAddons[]=
14 {
15 "DZ_Data",
16 "DZ_Weapons_Firearms"
17 };
18 };
19};
20class Mode_Safe;
21class Mode_SemiAuto;
22class Mode_Single;
23class Mode_Burst;
24class Mode_FullAuto;
25class OpticsInfoRifle;
26class cfgWeapons
27{
28 class BoltActionRifle_InnerMagazine_Base;
29 class Winchester70_Base: BoltActionRifle_InnerMagazine_Base
30 {
31 scope=0;
32 animName="Winchester70";
33 weight=2721;
34 absorbency=0;
35 repairableWithKits[]={1};
36 repairCosts[]={25};
37 PPDOFProperties[]={1,0.5,20,170,4,10};
38 WeaponLength=1.15;
39 barrelArmor=3.125;
40 winchesterTypeOpticsMount=1;
41 initSpeedMultiplier=1.15;
42 chamberSize=5;
43 chamberedRound="";
44 chamberableFrom[]=
45 {
46 "Ammo_308Win",
47 "Ammo_308WinTracer"
48 };
49 magazines[]={};
50 DisplayMagazine=0;
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 "Winchester70_Shot_SoundSet",
76 "Winchester70_Shot_iterior_SoundSet",
77 "Winchester70_Tail_SoundSet",
78 "Winchester70_InteriorTail_SoundSet",
79 "Winchester70_Tail_2D_SoundSet"
80 };
81 soundSetShotExt[]=
82 {
83
84 {
85 "Winchester70_silencerHomeMade_SoundSet",
86 "Winchester70_silencerHomeMadeTail_SoundSet",
87 "Winchester70_silencerInteriorHomeMadeTail_SoundSet"
88 }
89 };
90 reloadTime=1;
91 recoil="recoil_Winchester";
92 recoilProne="recoil_Winchester_prone";
93 dispersion=0.00050000002;
94 magazineSlot="magazine";
95 };
96 class OpticsInfo: OpticsInfoRifle
97 {
98 discreteDistance[]={200};
99 discreteDistanceInitIndex=0;
100 distanceZoomMin=200;
101 distanceZoomMax=200;
102 };
103 class InventorySlotsOffsets
104 {
105 class Shoulder
106 {
107 position[]={0,-0.02,-0.029999999};
108 orientation[]={0,-30,0};
109 };
110 class Melee
111 {
112 position[]={0,-0.02,0.0099999998};
113 orientation[]={0,30,0};
114 };
115 };
116 weaponStateAnim="dz\anims\anm\player\reloads\Winchester70\w_winchester70_states.anm";
117 };
118 class Winchester70: Winchester70_Base
119 {
120 scope=2;
121 displayName="$STR_cfgWeapons_Winchester700";
122 descriptionShort="$STR_cfgWeapons_Winchester701";
123 model="\dz\weapons\firearms\winchester70\winchester70.p3d";
124 attachments[]=
125 {
126 "weaponWrap",
127 "weaponOpticsHunting",
128 "suppressorImpro"
129 };
130 itemSize[]={10,3};
131 hiddenSelectionsTextures[]=
132 {
133 "dz\weapons\firearms\winchester70\data\winchester70_CO.paa"
134 };
135 hiddenSelectionsMaterials[]=
136 {
137 "dz\weapons\firearms\winchester70\data\winchester70.rvmat"
138 };
139 class DamageSystem
140 {
141 class GlobalHealth
142 {
143 class Health
144 {
145 hitpoints=200;
146 healthLevels[]=
147 {
148
149 {
150 1,
151
152 {
153 "DZ\weapons\firearms\winchester70\data\winchester70.rvmat"
154 }
155 },
156
157 {
158 0.69999999,
159
160 {
161 "DZ\weapons\firearms\winchester70\data\winchester70.rvmat"
162 }
163 },
164
165 {
166 0.5,
167
168 {
169 "DZ\weapons\firearms\winchester70\data\winchester70_damage.rvmat"
170 }
171 },
172
173 {
174 0.30000001,
175
176 {
177 "DZ\weapons\firearms\winchester70\data\winchester70_damage.rvmat"
178 }
179 },
180
181 {
182 0,
183
184 {
185 "DZ\weapons\firearms\winchester70\data\winchester70_destruct.rvmat"
186 }
187 }
188 };
189 };
190 };
191 };
192 class Particles
193 {
194 class OnFire
195 {
196 class SmokeCloud
197 {
198 overrideParticle="weapon_shot_winded_smoke";
199 };
200 class MuzzleFlash
201 {
202 overrideParticle="weapon_shot_mosin9130_01";
203 ignoreIfSuppressed=1;
204 illuminateWorld=1;
205 positionOffset[]={0.1,0,0};
206 };
207 };
208 class OnOverheating
209 {
210 maxOverheatingValue=1;
211 shotsToStartOverheating=1;
212 overheatingDecayInterval=0.5;
213 class SmokingBarrel1
214 {
215 overrideParticle="smoking_barrel_small";
216 onlyWithinOverheatLimits[]={0.1,1};
217 positionOffset[]={0,0,0};
218 onlyWithinRainLimits[]={0,0.2};
219 };
220 class OpenChamberSmoke
221 {
222 onlyIfBoltIsOpen=1;
223 overrideParticle="smoking_barrel_small";
224 overridePoint="Nabojnicestart";
225 };
226 };
227 class OnBulletCasingEject
228 {
229 class ChamberSmokeRaise
230 {
231 overrideParticle="weapon_shot_chamber_smoke";
232 overridePoint="Nabojnicestart";
233 };
234 };
235 };
236 };
237 class Winchester70_Black: Winchester70
238 {
239 scope=2;
240 descriptionShort="$STR_cfgWeapons_Winchester70_Black0";
241 hiddenSelectionsTextures[]=
242 {
243 "#(argb,8,8,3)color(0.15,0.15,0.15,1.0,CO)"
244 };
245 };
246 class Winchester70_Green: Winchester70
247 {
248 scope=2;
249 descriptionShort="$STR_cfgWeapons_Winchester70_Green0";
250 hiddenSelectionsTextures[]=
251 {
252 "#(argb,8,8,3)color(0.35,0.36,0.28,1.0,CO)"
253 };
254 };
255};