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_Nonlethal_Shockpistol
4 {
5 units[]=
6 {
7 "Shockpistol"
8 };
9 weapons[]={};
10 requiredVersion=0.1;
11 requiredAddons[]=
12 {
13 "DZ_Data",
14 "DZ_Nonlethal"
15 };
16 };
17};
18class Mode_Safe;
19class Mode_SemiAuto;
20class Mode_Burst;
21class Mode_FullAuto;
22class cfgWeapons
23{
24 class NonlethalPistol;
25 class Shockpistol_Base: NonlethalPistol
26 {
27 scope=0;
28 absorbency=0;
29 repairableWithKits[]={1};
30 repairCosts[]={25};
31 value=0;
32 chamberSize=1;
33 chamberedRound="";
34 magazines[]=
35 {
36 "Mag_ShockCartridge"
37 };
38 chamberableFrom[]=
39 {
40 "Ammo_9x19"
41 };
42 ejectType=1;
43 recoilModifier[]={1,1,1};
44 hiddenSelections[]=
45 {
46 "camo"
47 };
48 modes[]=
49 {
50 "Single"
51 };
52 class Single: Mode_SemiAuto
53 {
54 soundSetShot[]=
55 {
56 "Shockpistol_Shot_SoundSet",
57 "Shockpistol_Tail_SoundSet",
58 "Shockpistol_InteriorTail_SoundSet"
59 };
60 reloadTime=0.13;
61 recoil="recoil_shockpistol";
62 recoilProne="recoil_shockpistol";
63 dispersion=0.0060000001;
64 magazineSlot="magazine";
65 };
66 class Damage
67 {
68 tex[]={};
69 mat[]=
70 {
71 "DZ\weapons\nonlethal\shockpistol\data\shockpistol_main.rvmat",
72 "DZ\weapons\nonlethal\shockpistol\data\shockpistol_main_damage.rvmat",
73 "DZ\weapons\nonlethal\shockpistol\data\shockpistol_main_destruct.rvmat"
74 };
75 };
76 };
77 class Shockpistol: Shockpistol_Base
78 {
79 scope=2;
80 displayName="$STR_cfgWeapons_Shockpistol0";
81 descriptionShort="$STR_cfgWeapons_Shockpistol1";
82 model="\dz\weapons\nonlethal\shockpistol\shockpistol.p3d";
83 itemSize[]={4,3};
84 weight=1000;
85 modelOptics="-";
86 distanceZoomMin=100;
87 distanceZoomMax=100;
88 hiddenSelections[]=
89 {
90 "camo"
91 };
92 hiddenSelectionsTextures[]=
93 {
94 "\dz\weapons\nonlethal\shockpistol\data\shockpistol_main_yel_co.paa"
95 };
96 };
97 class Shockpistol_Black: Shockpistol
98 {
99 descriptionShort="$STR_cfgWeapons_Shockpistol_Black0";
100 hiddenSelections[]=
101 {
102 "camo"
103 };
104 hiddenSelectionsTextures[]=
105 {
106 "\dz\weapons\nonlethal\shockpistol\data\shockpistol_main_bk_co.paa"
107 };
108 };
109};
111{
112 class ProxyAttachment;
113 class ProxyShockpistol: ProxyAttachment
114 {
115 scope=2;
116 inventorySlot="pistol";
117 model="\dz\weapons\nonlethal\shockpistol\shockpistol.p3d";
118 };
119};