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_Flaregun
4 {
5 units[]={};
6 weapons[]={};
7 requiredVersion=0.1;
8 requiredAddons[]=
9 {
10 "DZ_Data",
11 "DZ_Pistols"
12 };
13 };
14};
15class Mode_Safe;
16class Mode_SemiAuto;
17class Mode_Single;
18class Mode_Burst;
19class Mode_FullAuto;
21class cfgWeapons
22{
23 class Pistol_Base;
24 class Flaregun_Base: Pistol_Base
25 {
26 scope=0;
27 weight=400;
28 absorbency=0;
29 repairableWithKits[]={1};
30 repairCosts[]={25};
31 PPDOFProperties[]={1,0.5,10,250,4,10};
32 WeaponLength=0.16500001;
33 ShoulderDistance=0.44;
34 ObstructionDistance=0.38299999;
35 barrelArmor=3.125;
36 isSuicideWeapon=0;
37 chamberSize=1;
38 chamberedRound="";
39 magazines[]={};
40 chamberableFrom[]=
41 {
42 "Ammo_Flare",
43 "Ammo_FlareRed",
44 "Ammo_FlareGreen",
45 "Ammo_FlareBlue"
46 };
47 DisplayMagazine=0;
48 ejectType=2;
49 recoilModifier[]={1,1,1};
50 swayModifier[]={0.80000001,0.80000001,0.40000001};
51 class NoiseShoot
52 {
53 strength=40;
54 type="shot";
55 };
56 modes[]=
57 {
58 "Single"
59 };
60 class Single: Mode_Single
61 {
62 soundSetShot[]=
63 {
64 "Flare_Gun_Shot_SoundSet",
65 "Flare_Gun_Tail_SoundSet",
66 "Flare_Gun_InteriorTail_SoundSet"
67 };
68 reloadTime=0.13;
69 dispersion=0.029999999;
70 magazineSlot="magazine";
71 };
72 class OpticsInfo: OpticsInfoPistol
73 {
74 memoryPointCamera="eye";
75 discreteDistance[]={25};
76 discreteDistanceInitIndex=0;
77 modelOptics="-";
78 distanceZoomMin=100;
79 distanceZoomMax=100;
80 };
81 class NoiseFlare
82 {
83 strength=30;
84 type="shot";
85 };
86 weaponStateAnim="dz\anims\anm\player\reloads\Flaregun\w_Flaregun_states.anm";
87 boneRemap[]=
88 {
89 "hammer",
90 "Weapon_Bone_02",
91 "barrel",
92 "Weapon_Bone_01",
93 "trigger",
94 "Weapon_Trigger",
95 "bullet",
96 "Weapon_Bullet"
97 };
98 };
99 class Flaregun: Flaregun_Base
100 {
101 scope=2;
102 displayName="$STR_cfgWeapons_Flaregun0";
103 descriptionShort="$STR_cfgWeapons_Flaregun1";
104 model="\dz\weapons\pistols\flaregun\flaregun.p3d";
105 attachments[]={};
106 itemSize[]={2,2};
107 class DamageSystem
108 {
109 class GlobalHealth
110 {
111 class Health
112 {
113 hitpoints=150;
114 healthLevels[]=
115 {
116
117 {
118 1,
119
120 {
121 "DZ\weapons\pistols\flaregun\data\flaregun.rvmat"
122 }
123 },
124
125 {
126 0.69999999,
127
128 {
129 "DZ\weapons\pistols\flaregun\data\flaregun.rvmat"
130 }
131 },
132
133 {
134 0.5,
135
136 {
137 "DZ\weapons\pistols\flaregun\data\flaregun_damage.rvmat"
138 }
139 },
140
141 {
142 0.30000001,
143
144 {
145 "DZ\weapons\pistols\flaregun\data\flaregun_damage.rvmat"
146 }
147 },
148
149 {
150 0,
151
152 {
153 "DZ\weapons\pistols\flaregun\data\flaregun_destruct.rvmat"
154 }
155 }
156 };
157 };
158 };
159 };
160 class Particles
161 {
162 class OnFire
163 {
164 class SmokeCloud
165 {
166 overrideParticle="weapon_shot_winded_smoke";
167 };
168 class MuzzleFlash
169 {
170 overrideParticle="weapon_shot_fnx_01";
171 ignoreIfSuppressed=1;
172 illuminateWorld=1;
173 positionOffset[]={0,0,0};
174 };
175 };
176 class OnOverheating
177 {
178 maxOverheatingValue=8;
179 shotsToStartOverheating=8;
180 overheatingDecayInterval=1;
181 class SmokingBarrel1
182 {
183 overrideParticle="smoking_barrel_small";
184 onlyWithinOverheatLimits[]={0,1};
185 positionOffset[]={0,0,0};
186 onlyWithinRainLimits[]={0,1};
187 };
188 class OpenChamberSmoke
189 {
190 onlyIfBoltIsOpen=1;
191 overrideParticle="smoking_barrel_small";
192 overridePoint="Nabojnicestart";
193 };
194 };
195 class OnBulletCasingEject
196 {
197 class ChamberSmokeRaise
198 {
199 overrideParticle="weapon_shot_chamber_smoke";
200 overridePoint="Nabojnicestart";
201 };
202 };
203 };
204 };
205};
207{
208 class ProxyAttachment;
209 class ProxyFlaregun: ProxyAttachment
210 {
211 scope=2;
212 inventorySlot="pistol";
213 model="\dz\weapons\pistols\flaregun\flaregun.p3d";
214 };
215};