diff --git a/addons/missile_vikhr/$PBOPREFIX$ b/addons/missile_vikhr/$PBOPREFIX$ new file mode 100644 index 00000000000..4522cea1660 --- /dev/null +++ b/addons/missile_vikhr/$PBOPREFIX$ @@ -0,0 +1 @@ +z\ace\addons\missile_vikhr \ No newline at end of file diff --git a/addons/missile_vikhr/CfgAmmo.hpp b/addons/missile_vikhr/CfgAmmo.hpp new file mode 100644 index 00000000000..544b9d53a5d --- /dev/null +++ b/addons/missile_vikhr/CfgAmmo.hpp @@ -0,0 +1,17 @@ +class EGVAR(missileguidance,type_Vikhr); +class CfgAmmo { + class M_Scalpel_AT; + class GVAR(9k121): M_Scalpel_AT { + author = "Dani (TCVM)"; + maneuvrability = 0; + + irLock = 0; + laserLock = 0; + manualControl = 0; + + class ace_missileguidance: EGVAR(missileguidance,type_Vikhr) { + enabled = 1; + }; + }; +}; + diff --git a/addons/missile_vikhr/CfgMagazines.hpp b/addons/missile_vikhr/CfgMagazines.hpp new file mode 100644 index 00000000000..93084a98737 --- /dev/null +++ b/addons/missile_vikhr/CfgMagazines.hpp @@ -0,0 +1,53 @@ +class CfgMagazines { + class 2Rnd_LG_scalpel; + class 6Rnd_LG_scalpel; + class 8Rnd_LG_scalpel; + class PylonRack_1Rnd_LG_scalpel; + class PylonMissile_1Rnd_LG_scalpel; + class PylonRack_3Rnd_LG_scalpel; + class PylonRack_4Rnd_LG_scalpel; + + class GVAR(2Rnd): 2Rnd_LG_scalpel { + author = "Dani (TCVM)"; + displayName = CSTRING(2x); + ammo = QGVAR(9k121); + }; + + class GVAR(6Rnd): 6Rnd_LG_scalpel { + author = "Dani (TCVM)"; + displayName = CSTRING(6x); + ammo = QGVAR(9k121); + }; + + class GVAR(8Rnd): 8Rnd_LG_scalpel { + author = "Dani (TCVM)"; + displayName = CSTRING(8x); + ammo = QGVAR(9k121); + }; + + class GVAR(PylonRack_1Rnd): PylonRack_1Rnd_LG_scalpel { + author = "Dani (TCVM)"; + displayName = CSTRING(1x); + ammo = QGVAR(9k121); + pylonWeapon = QGVAR(9k121); + }; + class GVAR(PylonMissile_1Rnd): PylonMissile_1Rnd_LG_scalpel { + author = "Dani (TCVM)"; + displayName = CSTRING(1x); + ammo = QGVAR(9k121); + pylonWeapon = QGVAR(9k121); + }; + class GVAR(PylonRack_3Rnd): PylonRack_3Rnd_LG_scalpel { + author = "Dani (TCVM)"; + displayName = CSTRING(3x); + ammo = QGVAR(9k121); + pylonWeapon = QGVAR(9k121); + }; + class GVAR(PylonRack_4Rnd): PylonRack_4Rnd_LG_scalpel { + author = "Dani (TCVM)"; + displayName = CSTRING(4x); + ammo = QGVAR(9k121); + pylonWeapon = QGVAR(9k121); + }; +}; + diff --git a/addons/missile_vikhr/CfgWeapons.hpp b/addons/missile_vikhr/CfgWeapons.hpp new file mode 100644 index 00000000000..3db46a69ab0 --- /dev/null +++ b/addons/missile_vikhr/CfgWeapons.hpp @@ -0,0 +1,17 @@ +class CfgWeapons { + class missiles_SCALPEL; + class GVAR(9k121): missiles_SCALPEL { + author = "Dani (TCVM)"; + displayName = CSTRING(9k121); + magazines[] = { + QGVAR(2Rnd), + QGVAR(6Rnd), + QGVAR(8Rnd), + QGVAR(PylonRack_1Rnd), + QGVAR(PylonMissile_1Rnd), + QGVAR(PylonRack_3Rnd), + QGVAR(PylonRack_4Rnd) + }; + }; +}; + diff --git a/addons/missile_vikhr/README.md b/addons/missile_vikhr/README.md new file mode 100644 index 00000000000..104d449fd9c --- /dev/null +++ b/addons/missile_vikhr/README.md @@ -0,0 +1,4 @@ +ace_missile_vikhr +=================== + +Adds Vikhr beam-riding ATGM diff --git a/addons/missile_vikhr/config.cpp b/addons/missile_vikhr/config.cpp new file mode 100644 index 00000000000..6b84b38bb70 --- /dev/null +++ b/addons/missile_vikhr/config.cpp @@ -0,0 +1,20 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + name = COMPONENT_NAME; + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"ace_common","ace_missileguidance"}; + author = ECSTRING(common,ACETeam); + authors[] = {"Dani (TCVM)"}; + url = ECSTRING(main,URL); + VERSION_CONFIG; + }; +}; + +#include "CfgAmmo.hpp" +#include "CfgMagazines.hpp" +#include "CfgWeapons.hpp" + diff --git a/addons/missile_vikhr/script_component.hpp b/addons/missile_vikhr/script_component.hpp new file mode 100644 index 00000000000..41f554e77f9 --- /dev/null +++ b/addons/missile_vikhr/script_component.hpp @@ -0,0 +1,18 @@ +#define COMPONENT missile_vikhr +#define COMPONENT_BEAUTIFIED Vikhr +#include "\z\ace\addons\main\script_mod.hpp" + +// #define DEBUG_MODE_FULL +// #define DISABLE_COMPILE_CACHE +// #define ENABLE_PERFORMANCE_COUNTERS + +#ifdef DEBUG_ENABLED_MISSILE_VIKHR + #define DEBUG_MODE_FULL +#endif + +#ifdef DEBUG_SETTINGS_MISSILE_VIKHR + #define DEBUG_SETTINGS DEBUG_SETTINGS_MISSILE_VIKHR +#endif + +#include "\z\ace\addons\main\script_macros.hpp" + diff --git a/addons/missile_vikhr/stringtable.xml b/addons/missile_vikhr/stringtable.xml new file mode 100644 index 00000000000..ae43525bf3d --- /dev/null +++ b/addons/missile_vikhr/stringtable.xml @@ -0,0 +1,26 @@ + + + + + 9k121 Vikhr [ACE] + + + 1x 9k121 Vikhr [ACE] + + + 2x 9k121 Vikhr [ACE] + + + 3x 9k121 Vikhr [ACE] + + + 4x 9k121 Vikhr [ACE] + + + 6x 9k121 Vikhr [ACE] + + + 8x 9k121 Vikhr [ACE] + + +