init commit of cruise missile

This commit is contained in:
Brandon Danyluk 2021-05-23 00:24:13 -06:00
parent 22e5596399
commit 2694453b56
9 changed files with 106 additions and 0 deletions

View File

@ -0,0 +1 @@
z\ace\addons\tomahawk

View File

@ -0,0 +1,3 @@
class CfgAmmo {
};

View File

@ -0,0 +1,4 @@
class CfgMagazines {
};

View File

@ -0,0 +1,32 @@
class CfgVehicles {
class StaticWeapon;
class StaticMGWeapon: StaticWeapon {
class Turrets;
};
class B_Ship_MRLS_01_base_F: StaticMGWeapon {
class Turrets: Turrets {
class MainTurret;
};
};
// Use a custom ACE variant due to custom interface for launching
class GVAR(vls): B_Ship_MRLS_01_base_F {
displayName = "[ACE] Mk41 VLS";
class AnimationSources {
class Missiles_revolving {
source = "ammo";
source = "revolving";
weapon = QGVAR(c);
};
};
class Turrets: Turrets {
class MainTurret: MainTurret {
weapons[] = {
QGVAR(c)
};
magazines[] = {
QGVAR(c)
};
};
};
};
};

View File

@ -0,0 +1,7 @@
class CfgWeapons {
class GVAR(c): weapon_VLS_01 {
displayName = "Venator Cruise Missile";
magazines[] = {"magazine_Missiles_Cruise_01_x18", "magazine_Missiles_Cruise_01_Cluster_x18"};
};
};

12
addons/tomahawk/README.md Normal file
View File

@ -0,0 +1,12 @@
ace_tomahawk
===================
Adds UGM-109C Tomahawk cruise missile
## Maintainers
The people responsible for merging changes to this component or answering potential questions.
- [Brandon-TCVM](https://github.com/TheCandianVendingMachine)

View File

@ -0,0 +1,21 @@
#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[] = {"Brandon (TCVM)"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
#include "CfgAmmo.hpp"
#include "CfgMagazines.hpp"
#include "CfgWeapons.hpp"
#include "CfgVehicles.hpp"

View File

@ -0,0 +1,18 @@
#define COMPONENT tomahawk
#define COMPONENT_BEAUTIFIED Tomahawk
#include "\z\ace\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define ENABLE_PERFORMANCE_COUNTERS
#ifdef DEBUG_ENABLED_TOMAHAWK
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_TOMAHAWK
#define DEBUG_SETTINGS DEBUG_SETTINGS_TOMAHAWK
#endif
#include "\z\ace\addons\main\script_macros.hpp"

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project name="ACE">
<Package name="TOMAHAWK">
<Key ID="STR_ACE_TOMAHAWK_c">
<English>BGM-109C</English>
</Key>
</Package>
</Project>