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_Launchers_M79
4 {
5 units[]=
6 {
7 "M79"
8 };
9 weapons[]={};
10 requiredVersion=0.1;
11 requiredAddons[]=
12 {
13 "DZ_Data",
14 "DZ_Weapons_Launchers"
15 };
16 };
17};
18class Mode_Single;
19class Mode_SemiAuto;
20class OpticsInfoRifle;
21class cfgWeapons
22{
23 class Rifle_Base;
24 class M79_Base: Rifle_Base
25 {
26 scope=0;
27 repairableWithKits[]={1};
28 repairCosts[]={25};
29 PPDOFProperties[]={1,0.5,10,170,4,10};
30 WeaponLength=0.69999999;
31 ObstructionDistance=0.523;
32 barrelArmor=1.875;
33 initSpeedMultiplier=1;
34 chamberSize=1;
35 chamberedRound="";
36 chamberableFrom[]=
37 {
38 "Ammo_40mm_Explosive",
39 "Ammo_40mm_ChemGas",
40 "Ammo_40mm_Smoke_Red",
41 "Ammo_40mm_Smoke_Green",
42 "Ammo_40mm_Smoke_White",
43 "Ammo_40mm_Smoke_Black"
44 };
45 magazines[]={};
46 DisplayMagazine=0;
47 ejectType=3;
48 recoilModifier[]={1,1,1};
49 swayModifier[]={1,1,1};
50 class NoiseShoot
51 {
52 strength=40;
53 type="shot";
54 };
55 modes[]=
56 {
57 "Single"
58 };
59 class Single: Mode_Single
60 {
61 soundSetShot[]=
62 {
63 "M79_Shot_SoundSet",
64 "M79_Tail_SoundSet",
65 "M79_InteriorTail_SoundSet",
66 "M79_Slapback_SoundSet",
67 "M79_Tail_2D_SoundSet",
68 "M79_Shot_Interior_SoundSet"
69 };
70 soundSetShotExt[]=
71 {
72
73 {
74 "IZH18_silencerHomeMade_SoundSet",
75 "IZH18_silencerHomeMadeTail_SoundSet",
76 "IZH18_silencerInteriorHomeMadeTail_SoundSet"
77 }
78 };
79 envShootingDecrease=0.050000001;
80 reloadTime=1;
81 dispersion=0.025;
82 };
83 class OpticsInfo: OpticsInfoRifle
84 {
85 memoryPointCamera="eye";
86 discreteDistance[]={75};
87 discreteDistanceInitIndex=0;
88 modelOptics="-";
89 distanceZoomMin=75;
90 distanceZoomMax=75;
91 };
92 class InventorySlotsOffsets
93 {
94 class Shoulder
95 {
96 position[]={-0.15000001,0.079999998,0.015};
97 orientation[]={0,0,-5};
98 };
99 class Melee
100 {
101 position[]={-0.15000001,0.1,-0.029999999};
102 orientation[]={0,0,-5};
103 };
104 };
105 class Particles
106 {
107 class OnFire
108 {
109 class MuzzleFlash
110 {
111 overrideParticle="weapon_shot_mosin9130_01";
112 ignoreIfSuppressed=1;
113 illuminateWorld=0;
114 positionOffset[]={-0.029999999,0,0};
115 };
116 };
117 };
118 weaponStateAnim="dz\anims\anm\player\reloads\M79\w_m79_states.anm";
119 boneRemap[]=
120 {
121 "release",
122 "Weapon_Bone_02",
123 "barrel",
124 "Weapon_Bone_01",
125 "trigger",
126 "Weapon_Trigger",
127 "extractor",
128 "Weapon_Bone_03",
129 "bullet",
130 "Weapon_Bullet",
131 "charging",
132 "Weapon_Bone_04"
133 };
134 };
135 class M79: M79_Base
136 {
137 scope=2;
138 displayName="$STR_M790";
139 descriptionShort="$STR_M791";
140 model="\dz\weapons\launchers\m79\m79.p3d";
141 weight=2700;
142 itemSize[]={6,3};
143 attachments[]=
144 {
145 "weaponOpticsAug"
146 };
147 WeaponLiftCheckVerticalOffset=-0.1;
148 hiddenSelections[]=
149 {
150 "camo_a",
151 "camo_b"
152 };
153 hiddenSelectionsTextures[]=
154 {
155 "\dz\weapons\launchers\m79\data\m79_a_co.paa",
156 "\dz\weapons\launchers\m79\data\m79_b_co.paa"
157 };
158 hiddenSelectionsMaterials[]=
159 {
160 "dz\weapons\launchers\m79\data\m79_a.rvmat",
161 "dz\weapons\launchers\m79\data\m79_b.rvmat"
162 };
163 class DamageSystem
164 {
165 class GlobalHealth
166 {
167 class Health
168 {
169 hitpoints=200;
170 healthLevels[]=
171 {
172
173 {
174 1,
175
176 {
177 "DZ\weapons\launchers\m79\data\m79_a.rvmat",
178 "DZ\weapons\launchers\m79\data\m79_b.rvmat"
179 }
180 },
181
182 {
183 0.69999999,
184
185 {
186 "DZ\weapons\launchers\m79\data\m79_a.rvmat",
187 "DZ\weapons\launchers\m79\data\m79_b.rvmat"
188 }
189 },
190
191 {
192 0.5,
193
194 {
195 "DZ\weapons\launchers\m79\data\m79_a_damage.rvmat",
196 "DZ\weapons\launchers\m79\data\m79_b_damage.rvmat"
197 }
198 },
199
200 {
201 0.30000001,
202
203 {
204 "DZ\weapons\launchers\m79\data\m79_a_damage.rvmat",
205 "DZ\weapons\launchers\m79\data\m79_b_damage.rvmat"
206 }
207 },
208
209 {
210 0,
211
212 {
213 "DZ\weapons\launchers\m79\data\m79_a_destruct.rvmat",
214 "DZ\weapons\launchers\m79\data\m79_b_destruct.rvmat"
215 }
216 }
217 };
218 };
219 };
220 };
221 };
222};
223class cfgVehicles
224{
225 class Inventory_Base;
226 class ItemOptics: Inventory_Base
227 {
228 class AnimEvents
229 {
230 class SoundWeapon
231 {
232 class pickup
233 {
234 soundSet="PSO11Optic_pickup_SoundSet";
235 id=797;
236 };
237 class drop
238 {
239 soundset="PSO11Optic_drop_SoundSet";
240 id=898;
241 };
242 };
243 };
244 };
245 class M79DummyOptics: ItemOptics
246 {
247 scope=2;
248 model="\dz\weapons\launchers\m79\proxy\dummyscope.p3d";
249 weight=1;
250 inventorySlot[]=
251 {
252 "weaponOpticsAug"
253 };
254 reversed=0;
255 class OpticsInfo
256 {
257 memoryPointCamera="eyeScope";
258 cameraDir="cameraDir";
259 modelOptics="-";
260 opticsZoomMin=0.52359998;
261 opticsZoomMax=0.52359998;
262 opticsZoomInit=0.52359998;
263 distanceZoomMin=75;
264 distanceZoomMax=75;
265 discreteDistance[]={75};
266 discreteDistanceInitIndex=0;
267 };
268 };
269};
271{
272 class ProxyAttachment;
273 class Proxydummyscope: ProxyAttachment
274 {
275 scope=2;
276 inventorySlot="weaponOpticsAug";
277 model="\dz\weapons\firearms\aug\proxy\dummyscope.p3d";
278 };
279};