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_Pistols_Derringer
4 {
5 units[]=
6 {
7 "Derringer_Black",
8 "Derringer_Grey",
9 "Derringer_Pink"
10 };
11 weapons[]={};
12 requiredVersion=0.1;
13 requiredAddons[]=
14 {
15 "DZ_Data",
16 "DZ_Pistols"
17 };
18 };
19};
20class Mode_Single;
21class Mode_Double;
22class Muzzle_Base;
24class cfgWeapons
25{
26 class Pistol_Base;
27 class Derringer_Base: Pistol_Base
28 {
29 scope=0;
30 displayName="$STR_cfgweapons_derringer_base0";
31 descriptionShort="$STR_cfgWeapons_Derringer_Base1";
32 model="\dz\weapons\pistols\derringer\derringer.p3d";
33 weight=350;
34 itemSize[]={2,1};
35 repairableWithKits[]={1};
36 repairCosts[]={25};
37 attachments[]={};
38 modelOptics="-";
39 PPDOFProperties[]={1,1,10,200,10,1};
40 WeaponLength=0.15000001;
41 ShoulderDistance=0.41999999;
42 ObstructionDistance=0.39500001;
43 barrelArmor=1.3329999;
44 initSpeedMultiplier=0.80000001;
45 muzzles[]=
46 {
47 "this",
48 "SecondMuzzle"
49 };
50 chamberSize=1;
51 chamberedRound="";
52 magazines[]={};
53 chamberableFrom[]=
54 {
55 "Ammo_357"
56 };
57 DisplayMagazine=0;
58 ejectType=2;
59 recoilModifier[]={1,1,1};
60 swayModifier[]={0.64999998,0.64999998,0.40000001};
61 hiddenSelections[]=
62 {
63 "camoGround"
64 };
65 hiddenSelectionsMaterials[]=
66 {
67 "dz\weapons\pistols\derringer\data\derringer_1.rvmat"
68 };
69 class NoiseShoot
70 {
71 strength=80;
72 type="shot";
73 };
74 class DamageSystem
75 {
76 class GlobalHealth
77 {
78 class Health
79 {
80 hitpoints=200;
81 healthLevels[]=
82 {
83
84 {
85 1,
86
87 {
88 "DZ\weapons\pistols\derringer\data\derringer_1.rvmat"
89 }
90 },
91
92 {
93 0.69999999,
94
95 {
96 "DZ\weapons\pistols\derringer\data\derringer_1.rvmat"
97 }
98 },
99
100 {
101 0.5,
102
103 {
104 "DZ\weapons\pistols\derringer\data\derringer_1_damage.rvmat"
105 }
106 },
107
108 {
109 0.30000001,
110
111 {
112 "DZ\weapons\pistols\derringer\data\derringer_1_damage.rvmat"
113 }
114 },
115
116 {
117 0,
118
119 {
120 "DZ\weapons\pistols\derringer\data\derringer_1_destruct.rvmat"
121 }
122 }
123 };
124 };
125 };
126 };
127 modes[]=
128 {
129 "Single"
130 };
131 class Single: Mode_Single
132 {
133 soundSetShot[]=
134 {
135 "Derringer_Shot_SoundSet",
136 "Derringer_Tail_SoundSet",
137 "Derringer_InteriorTail_SoundSet"
138 };
139 recoil="recoil_derringer";
140 recoilProne="recoil_derringer_prone";
141 dispersion=0.0060000001;
142 magazineSlot="magazine";
143 };
144 class SecondMuzzle: Muzzle_Base
145 {
146 chamberSize=1;
147 muzzlePos="usti hlavne";
148 muzzleEnd="konec hlavne";
149 modes[]=
150 {
151 "Single"
152 };
153 magazines[]={};
154 chamberableFrom[]=
155 {
156 "Ammo_357"
157 };
158 barrelArmor=1.3329999;
159 initSpeedMultiplier=0.80000001;
160 class Single: Mode_Single
161 {
162 soundSetShot[]=
163 {
164 "Derringer_Shot_SoundSet",
165 "Derringer_Tail_SoundSet",
166 "Derringer_InteriorTail_SoundSet"
167 };
168 reloadTime=1;
169 dispersion=0.0060000001;
170 magazineSlot="magazine";
171 };
172 class OpticsInfo: OpticsInfoPistol
173 {
174 memoryPointCamera="eye";
175 modelOptics="-";
176 distanceZoomMin=25;
177 distanceZoomMax=25;
178 discreteDistance[]={25};
179 discreteDistanceInitIndex=0;
180 };
181 };
182 class OpticsInfo: OpticsInfoPistol
183 {
184 memoryPointCamera="eye";
185 modelOptics="-";
186 distanceZoomMin=25;
187 distanceZoomMax=25;
188 discreteDistance[]={25};
189 discreteDistanceInitIndex=0;
190 };
191 class Particles
192 {
193 class OnFire
194 {
195 class SmokeCloud
196 {
197 overrideParticle="weapon_shot_winded_smoke";
198 };
199 class MuzzleFlash
200 {
201 overrideParticle="weapon_shot_cz75_01";
202 ignoreIfSuppressed=1;
203 illuminateWorld=1;
204 positionOffset[]={0,0,0};
205 };
206 };
207 class OnBulletCasingEject
208 {
209 class ChamberSmokeRaise
210 {
211 overrideParticle="weapon_shot_chamber_smoke";
212 overridePoint="Nabojnicestart";
213 };
214 };
215 };
216 weaponStateAnim="dz\anims\anm\player\reloads\Derringer\w_derringer_states.anm";
217 boneRemap[]=
218 {
219 "release",
220 "Weapon_Bone_02",
221 "barrel",
222 "Weapon_Bone_01",
223 "trigger",
224 "Weapon_Trigger",
225 "hammer",
226 "Weapon_Bone_03",
227 "bullet",
228 "Weapon_Bullet",
229 "bullet2",
230 "Weapon_Bone_04",
231 "snaploader",
232 "Weapon_Bone_05"
233 };
234 };
235 class Derringer_Black: Derringer_Base
236 {
237 scope=2;
238 hiddenSelectionsTextures[]=
239 {
240 "dz\weapons\pistols\derringer\data\derringer_black_co.paa"
241 };
242 };
243 class Derringer_Pink: Derringer_Base
244 {
245 scope=2;
246 hiddenSelectionsTextures[]=
247 {
248 "dz\weapons\pistols\derringer\data\derringer_pink_co.paa"
249 };
250 };
251 class Derringer_Grey: Derringer_Base
252 {
253 scope=2;
254 hiddenSelectionsTextures[]=
255 {
256 "dz\weapons\pistols\derringer\data\derringer_grey_co.paa"
257 };
258 };
259};