Skip to content

Commit 82791d2

Browse files
committed
Create CWR3_Tweaks addon
1 parent f646ecd commit 82791d2

File tree

4 files changed

+204
-0
lines changed

4 files changed

+204
-0
lines changed

addons/cwr3_tweaks/$PBOPREFIX$

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
x\arc_misc\addons\cwr3_tweaks

addons/cwr3_tweaks/CfgWeapons.hpp

+173
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
2+
class ItemCore;
3+
class cwr3_b_vest_base: ItemCore
4+
{
5+
class ItemInfo;
6+
};
7+
class cwr3_b_vest_pasgt_oliveDrab: cwr3_b_vest_base
8+
{
9+
author = "drofseh";
10+
descriptionShort = "$STR_A3_SP_AL_II";
11+
displayName = "PASGT Vest (OD)";
12+
hiddenSelections[] = {"hs_vest1"};
13+
hiddenSelectionsTextures[] = {"\cwr3\humans\cwr3_soldiers_usa\vests\data\pasgt_vest_od_co.paa"};
14+
model = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_woodland.p3d";
15+
picture = "\cwr3\humans\cwr3_soldiers_usa\ui\cwr3_v_pasgt_woodland_ca.paa";
16+
scope = 2;
17+
scopeCurator = 2;
18+
scopeArsenal = 2;
19+
class ItemInfo: ItemInfo
20+
{
21+
containerClass = "Supply60";
22+
armor = 10;
23+
hiddenSelections[] = {"hs_vest1"};
24+
mass = 55;
25+
passThrough = 0.5;
26+
uniformModel = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_woodland.p3d";
27+
class HitpointsProtectionInfo
28+
{
29+
class Chest
30+
{
31+
armor = 12;
32+
HitpointName = "HitChest";
33+
PassThrough = 0.4;
34+
};
35+
class Diaphragm
36+
{
37+
armor = 12;
38+
HitpointName = "HitDiaphragm";
39+
PassThrough = 0.4;
40+
};
41+
class Abdomen
42+
{
43+
armor = 12;
44+
hitpointName = "HitAbdomen";
45+
passThrough = 0.4;
46+
};
47+
class Body
48+
{
49+
hitpointName = "HitBody";
50+
passThrough = 0.4;
51+
};
52+
};
53+
};
54+
};
55+
class cwr3_b_vest_pasgt_alice_oliveDrab: cwr3_b_vest_pasgt_oliveDrab
56+
{
57+
author = "drofseh";
58+
displayName = "PASGT Vest ALICE (OD, Rifleman)";
59+
hiddenSelections[] = {"hs_vest1","hs_vest2"};
60+
hiddenSelectionsTextures[] = {"\cwr3\humans\cwr3_soldiers_usa\vests\data\pasgt_vest_od_co.paa","\cwr3\humans\cwr3_soldiers_usa\vests\data\ssgear_alice_co.paa"};
61+
model = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_woodland.p3d";
62+
picture = "\cwr3\humans\cwr3_soldiers_usa\ui\cwr3_v_pasgt_alice_woodland_ca.paa";
63+
class ItemInfo: ItemInfo
64+
{
65+
containerClass = "Supply140";
66+
hiddenSelections[] = {"hs_vest1","hs_vest2"};
67+
uniformModel = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_woodland.p3d";
68+
};
69+
};
70+
class cwr3_b_vest_pasgt_alice_oliveDrab_etool: cwr3_b_vest_pasgt_alice_oliveDrab
71+
{
72+
author = "drofseh";
73+
displayName = "PASGT Vest ALICE (OD, E-Tool)";
74+
hiddenSelections[] = {"hs_vest1","hs_vest2"};
75+
hiddenSelectionsTextures[] = {"\cwr3\humans\cwr3_soldiers_usa\vests\data\pasgt_vest_od_co.paa","\cwr3\humans\cwr3_soldiers_usa\vests\data\ssgear_alice_co.paa"};
76+
model = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_etool_woodland.p3d";
77+
class ItemInfo: ItemInfo
78+
{
79+
containerClass = "Supply120";
80+
hiddenSelections[] = {"hs_vest1","hs_vest2"};
81+
uniformModel = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_etool_woodland.p3d";
82+
};
83+
};
84+
class cwr3_b_vest_pasgt_alice_oliveDrab_ar: cwr3_b_vest_pasgt_alice_oliveDrab
85+
{
86+
author = "drofseh";
87+
displayName = "PASGT Vest ALICE (OD, Autorifleman)";
88+
hiddenSelections[] = {"hs_vest1","hs_vest2"};
89+
hiddenSelectionsTextures[] = {"\cwr3\humans\cwr3_soldiers_usa\vests\data\pasgt_vest_od_co.paa","\cwr3\humans\cwr3_soldiers_usa\vests\data\ssgear_alice_co.paa"};
90+
model = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_ar_woodland.p3d";
91+
class ItemInfo: ItemInfo
92+
{
93+
containerClass = "Supply160";
94+
hiddenSelections[] = {"hs_vest1","hs_vest2"};
95+
uniformModel = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_ar_woodland.p3d";
96+
};
97+
};
98+
class cwr3_b_vest_pasgt_alice_oliveDrab_gl: cwr3_b_vest_pasgt_alice_oliveDrab
99+
{
100+
author = "drofseh";
101+
displayName = "PASGT Vest ALICE (OD, Grenadier)";
102+
hiddenSelections[] = {"hs_vest1","hs_vest2","hs_vest3"};
103+
hiddenSelectionsTextures[] = {"\cwr3\humans\cwr3_soldiers_usa\vests\data\pasgt_vest_od_co.paa","\cwr3\humans\cwr3_soldiers_usa\vests\data\ssgear_alice_co.paa","\cwr3\humans\cwr3_soldiers_usa\vests\data\gear_nadevest_co.paa"};
104+
model = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_grenadier_woodland.p3d";
105+
picture = "\cwr3\humans\cwr3_soldiers_usa\ui\cwr3_v_pasgt_alice_gl_woodland_ca.paa";
106+
class ItemInfo: ItemInfo
107+
{
108+
containerClass = "Supply220";
109+
hiddenSelections[] = {"hs_vest1","hs_vest2","hs_vest3"};
110+
uniformModel = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_grenadier_woodland.p3d";
111+
};
112+
};
113+
class cwr3_b_vest_pasgt_alice_oliveDrab_mg: cwr3_b_vest_pasgt_alice_oliveDrab
114+
{
115+
author = "drofseh";
116+
displayName = "PASGT Vest ALICE (OD, Machinegunner)";
117+
hiddenSelections[] = {"hs_vest1","hs_vest2"};
118+
hiddenSelectionsTextures[] = {"\cwr3\humans\cwr3_soldiers_usa\vests\data\pasgt_vest_od_co.paa","\cwr3\humans\cwr3_soldiers_usa\vests\data\ssgear_alice_co.paa"};
119+
model = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_mg_woodland.p3d";
120+
picture = "\cwr3\humans\cwr3_soldiers_usa\ui\cwr3_v_pasgt_alice_woodland_mg_ca.paa";
121+
class ItemInfo: ItemInfo
122+
{
123+
containerClass = "Supply160";
124+
hiddenSelections[] = {"hs_vest1","hs_vest2"};
125+
uniformModel = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_mg_woodland.p3d";
126+
};
127+
};
128+
class cwr3_b_vest_pasgt_alice_oliveDrab_officer: cwr3_b_vest_pasgt_alice_oliveDrab
129+
{
130+
author = "drofseh";
131+
displayName = "PASGT Vest ALICE (OD, Officer)";
132+
hiddenSelections[] = {"hs_vest1","hs_vest2","hs_vest3"};
133+
hiddenSelectionsTextures[] = {"\cwr3\humans\cwr3_soldiers_usa\vests\data\pasgt_vest_od_co.paa","\cwr3\humans\cwr3_soldiers_usa\vests\data\ssgear_alice_co.paa","\cwr3\humans\cwr3_soldiers_usa\vests\data\ssgear_frame_co.paa"};
134+
model = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_officer_woodland.p3d";
135+
picture = "\cwr3\humans\cwr3_soldiers_usa\ui\cwr3_v_pasgt_alice_woodland_officer_ca.paa";
136+
class ItemInfo: ItemInfo
137+
{
138+
containerClass = "Supply120";
139+
hiddenSelections[] = {"hs_vest1","hs_vest2","hs_vest3"};
140+
uniformModel = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_officer_woodland.p3d";
141+
};
142+
};
143+
class cwr3_b_vest_pasgt_alice_oliveDrab_light: cwr3_b_vest_pasgt_alice_oliveDrab
144+
{
145+
author = "drofseh";
146+
displayName = "PASGT Vest ALICE (OD, Light)";
147+
hiddenSelections[] = {"hs_vest1","hs_vest2"};
148+
hiddenSelectionsTextures[] = {"\cwr3\humans\cwr3_soldiers_usa\vests\data\pasgt_vest_od_co.paa","\cwr3\humans\cwr3_soldiers_usa\vests\data\ssgear_alice_co.paa"};
149+
model = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_medic_woodland.p3d";
150+
picture = "\cwr3\humans\cwr3_soldiers_usa\ui\cwr3_v_pasgt_alice_woodland_med_ca.paa";
151+
class ItemInfo: ItemInfo
152+
{
153+
containerClass = "Supply120";
154+
hiddenSelections[] = {"hs_vest1","hs_vest2"};
155+
uniformModel = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_medic_woodland.p3d";
156+
};
157+
};
158+
class cwr3_b_vest_pasgt_alice_oliveDrab_medic: cwr3_b_vest_pasgt_alice_oliveDrab_light
159+
{
160+
author = "drofseh";
161+
scope = 1;
162+
displayName = "PASGT Vest ALICE (OD, Light)";
163+
hiddenSelections[] = {"hs_vest1","hs_vest2"};
164+
hiddenSelectionsTextures[] = {"\cwr3\humans\cwr3_soldiers_usa\vests\data\pasgt_vest_od_co.paa","\cwr3\humans\cwr3_soldiers_usa\vests\data\ssgear_alice_co.paa"};
165+
model = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_medic_woodland.p3d";
166+
picture = "\cwr3\humans\cwr3_soldiers_usa\ui\cwr3_v_pasgt_alice_woodland_med_ca.paa";
167+
class ItemInfo: ItemInfo
168+
{
169+
containerClass = "Supply120";
170+
hiddenSelections[] = {"hs_vest1","hs_vest2"};
171+
uniformModel = "\cwr3\humans\cwr3_soldiers_usa\vests\cwr3_pasgt_alice_medic_woodland.p3d";
172+
};
173+
};

addons/cwr3_tweaks/config.cpp

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#include "script_component.hpp"
2+
3+
class CfgPatches
4+
{
5+
class ADDON
6+
{
7+
name = "ARC Misc: CWR 3 Tweaks";
8+
author = "drofseh";
9+
url = "https://github.com/ARCOMM/arc_misc";
10+
units[] = {};
11+
weapons[] = {
12+
"cwr3_b_vest_pasgt_oliveDrab",
13+
"cwr3_b_vest_pasgt_alice_oliveDrab",
14+
"cwr3_b_vest_pasgt_alice_oliveDrab_etool",
15+
"cwr3_b_vest_pasgt_alice_oliveDrab_ar",
16+
"cwr3_b_vest_pasgt_alice_oliveDrab_gl",
17+
"cwr3_b_vest_pasgt_alice_oliveDrab_mg",
18+
"cwr3_b_vest_pasgt_alice_oliveDrab_officer",
19+
"cwr3_b_vest_pasgt_alice_oliveDrab_light",
20+
"cwr3_b_vest_pasgt_alice_oliveDrab_medic"
21+
};
22+
requiredVersion = REQUIRED_VERSION;
23+
requiredAddons[] = {"cwr3_soldiers_us"};
24+
VERSION_CONFIG;
25+
};
26+
};
27+
28+
#include "CfgWeapons.hpp"
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#define COMPONENT cwr3_tweaks
2+
#include "\x\arc_misc\addons\main\script_macros.hpp"

0 commit comments

Comments
 (0)