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_p1
4 {
5 units[]=
6 {
7 "P1"
8 };
9 weapons[]={};
10 requiredVersion=0.1;
11 requiredAddons[]=
12 {
13 "DZ_Data",
14 "DZ_Pistols"
15 };
16 };
17};
18class Mode_Safe;
19class Mode_SemiAuto;
20class Mode_Burst;
21class Mode_FullAuto;
23class cfgWeapons
24{
25 class Pistol_Base;
26 class P1_Base: Pistol_Base
27 {
28 scope=0;
29 weight=960;
30 repairableWithKits[]={1};
31 repairCosts[]={25};
32 PPDOFProperties[]={1,0.55000001,10,240,4,10};
33 WeaponLength=0.2;
34 ShoulderDistance=0.40000001;
35 ObstructionDistance=0.43099999;
36 barrelArmor=2;
37 initSpeedMultiplier=0.89999998;
38 chamberSize=1;
39 chamberedRound="";
40 magazines[]=
41 {
42 "Mag_P1_8Rnd"
43 };
44 chamberableFrom[]=
45 {
46 "Ammo_9x19"
47 };
48 ejectType=1;
49 recoilModifier[]={1,1,1};
50 swayModifier[]={1.1,1.1,0.44999999};
51 hiddenSelections[]=
52 {
53 "camo"
54 };
55 class NoiseShoot
56 {
57 strength=40;
58 type="shot";
59 };
60 modes[]=
61 {
62 "Single"
63 };
64 class Single: Mode_SemiAuto
65 {
66 soundSetShot[]=
67 {
68 "WaltherP1_Shot_SoundSet",
69 "WaltherP1_Tail_SoundSet",
70 "WaltherP1_InteriorTail_SoundSet"
71 };
72 soundSetShotExt[]=
73 {
74
75 {
76 "WaltherP1_silencerPro_SoundSet",
77 "WaltherP1_silencerTail_SoundSet",
78 "WaltherP1_silencerInteriorTail_SoundSet"
79 },
80
81 {
82 "WaltherP1_silencerHomeMade_SoundSet",
83 "WaltherP1_silencerHomeMadeTail_SoundSet",
84 "WaltherP1_silencerInteriorHomeMadeTail_SoundSet"
85 }
86 };
87 reloadTime=0.13;
88 recoil="recoil_p1";
89 recoilProne="recoil_p1_prone";
90 dispersion=0.011;
91 magazineSlot="magazine";
92 };
93 class OpticsInfo: OpticsInfoPistol
94 {
95 memoryPointCamera="eye";
96 discreteDistance[]={25};
97 discreteDistanceInitIndex=0;
98 modelOptics="-";
99 distanceZoomMin=100;
100 distanceZoomMax=100;
101 };
102 class Particles
103 {
104 class OnFire
105 {
106 class SmokeCloud
107 {
108 overrideParticle="weapon_shot_winded_smoke";
109 };
110 class MuzzleFlash
111 {
112 overrideParticle="weapon_shot_cz75_01";
113 ignoreIfSuppressed=1;
114 illuminateWorld=1;
115 positionOffset[]={0,0,0};
116 };
117 };
118 class OnBulletCasingEject
119 {
120 class ChamberSmokeRaise
121 {
122 overrideParticle="weapon_shot_chamber_smoke";
123 overridePoint="Nabojnicestart";
124 };
125 };
126 };
127 weaponStateAnim="dz\anims\anm\player\reloads\P1\w_states_p1.anm";
128 };
129 class P1: P1_Base
130 {
131 scope=2;
132 displayName="$STR_cfgWeapons_P10";
133 descriptionShort="$STR_cfgWeapons_P11";
134 model="\dz\weapons\pistols\p1\p1.p3d";
135 hiddenSelectionsTextures[]=
136 {
137 "DZ\weapons\pistols\p1\data\p38_co.paa"
138 };
139 hiddenSelectionsMaterials[]=
140 {
141 "DZ\weapons\pistols\p1\data\p38.rvmat"
142 };
143 attachments[]=
144 {
145 "suppressorImpro"
146 };
147 itemSize[]={3,2};
148 class DamageSystem
149 {
150 class GlobalHealth
151 {
152 class Health
153 {
154 hitpoints=200;
155 healthLevels[]=
156 {
157
158 {
159 1,
160
161 {
162 "DZ\weapons\pistols\p1\data\p38.rvmat"
163 }
164 },
165
166 {
167 0.69999999,
168
169 {
170 "DZ\weapons\pistols\p1\data\p38.rvmat"
171 }
172 },
173
174 {
175 0.5,
176
177 {
178 "DZ\weapons\pistols\p1\data\p38_damage.rvmat"
179 }
180 },
181
182 {
183 0.30000001,
184
185 {
186 "DZ\weapons\pistols\p1\data\p38_damage.rvmat"
187 }
188 },
189
190 {
191 0,
192
193 {
194 "DZ\weapons\pistols\p1\data\p38_destruct.rvmat"
195 }
196 }
197 };
198 };
199 };
200 };
201 };
202};
204{
205 class ProxyAttachment;
206 class ProxyP1: ProxyAttachment
207 {
208 scope=2;
209 inventorySlot="pistol";
210 model="\dz\weapons\pistols\p1\p1.p3d";
211 };
212};