-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.cpp
138 lines (128 loc) · 3.41 KB
/
config.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
class CfgPatches
{
class AMP_Breaching_Charge
{
// Meta information for editor
name = "Breaching Charge";
author = "Ampersand";
url = "";
requiredVersion = 1.000000;
requiredAddons[] = {
"ace_explosives",
"A3_Weapons_F_Explosives"
};
units[] = {"AMP_Breaching_Charge","AMP_Breaching_Charge_Place"};
weapons[] = {"AMP_Breaching_Charge_Muzzle"};
};
};
class CfgFunctions {
class AMP_Breaching_Charge {
tag = "AMP";
class functions {
file = "\AMP_Breaching_Charge\functions";
class breachObstacle;
class plantBreachingCharge;
class rotateAmmoObj;
class nearestDoor;
class getDoor;
};
};
};
class CfgAmmo
{
class ClaymoreDirectionalMine_Remote_Ammo;
class AMP_Breaching_Charge_Ammo: ClaymoreDirectionalMine_Remote_Ammo
{
hit = 10;
indirectHit = 10;
indirectHitRange = 3;
model = "\A3\Weapons_F\Explosives\mine_SLAM_directional";
mineModelDisabled = "\A3\Weapons_F\Explosives\mine_SLAM_directional";
defaultMagazine = "AMP_Breaching_Charge_Mag";
ace_explosives_magazine = "AMP_Breaching_Charge_Mag";
ace_explosives_Explosive = "AMP_Breaching_Charge_Ammo_Scripted";
};
class AMP_Breaching_Charge_Ammo_Scripted: AMP_Breaching_Charge_Ammo
{
};
class AMP_Breaching_Charge_Timer_Ammo: AMP_Breaching_Charge_Ammo
{
mineTrigger = "TimeTrigger";
};
class AMP_Breaching_Charge_Command_Ammo: AMP_Breaching_Charge_Ammo
{
mineTrigger = "RemoteTrigger";
};
};
class CfgMagazines
{
class SLAMDirectionalMine_Wire_Mag;
class AMP_Breaching_Charge_Mag: SLAMDirectionalMine_Wire_Mag
{
scope = 2;
scopeArsenal = 2;
author = "Ampersand";
ammo = "AMP_Breaching_Charge_Ammo";
mass = 10;
model = "\A3\Weapons_F\Explosives\mine_SLAM_directional_i";
picture = "\A3\Weapons_F\Data\UI\gear_mine_SLAM_directional_CA.paa";
descriptionShort = "A breaching charge takes down obstacles like walls and doors with minimal collateral damage.";
class Library
{
libTextDesc = "A breaching charge takes down obstacles like walls and doors with minimal collateral damage.";
};
displayName = "Breaching Charge";
ace_explosives_SetupObject = "AMP_Breaching_Charge_Place";
class ACE_Triggers
{
SupportedTriggers[] = {"Timer","Command"};
/*
class Timer
{
ammo = "AMP_Breaching_Charge_Timer_Ammo";
};
class Command
{
ammo = "AMP_Breaching_Charge_Command_Ammo";
fuseTime = 0.5;
};
*/
};
};
};
class CfgVehicles
{
class SLAMDirectionalMine;
class AMP_Breaching_Charge: SLAMDirectionalMine
{
author = "Ampersand";
editorPreview = "\A3\EditorPreviews_F\Data\CfgVehicles\SLAMDirectionalMine.jpg";
_generalMacro = "AMP_Breaching_Charge";
ammo = "AMP_Breaching_Charge_Ammo";
model = "\A3\Weapons_F\Explosives\mine_SLAM_directional";
displayName = "Breaching Charge";
};
class ACE_Explosives_Place_SLAM;
class AMP_Breaching_Charge_Place: ACE_Explosives_Place_SLAM
{
author = "Ampersand";
displayName = "Breaching Charge";
class EventHandlers
{
Init = "(_this # 0) call AMP_fnc_plantBreachingCharge;";
Deleted = "(_this # 0) call AMP_fnc_rotateAmmoObj;";
};
};
};
class CfgWeapons
{
class Default;
class Put: Default {
muzzles[] += {AMP_Breaching_Charge_Muzzle};
class PutMuzzle: Default{};
class AMP_Breaching_Charge_Muzzle: PutMuzzle {
magazines[] = {"AMP_Breaching_Charge_Mag"};
displayName = "Breaching Charge";
};
};
};