diff --git a/addons/sdb/$PBOPREFIX$ b/addons/sdb/$PBOPREFIX$ new file mode 100644 index 0000000000..beebd4b824 --- /dev/null +++ b/addons/sdb/$PBOPREFIX$ @@ -0,0 +1 @@ +z\ace\addons\sdb \ No newline at end of file diff --git a/addons/sdb/CfgAmmo.hpp b/addons/sdb/CfgAmmo.hpp new file mode 100644 index 0000000000..44b98bf29c --- /dev/null +++ b/addons/sdb/CfgAmmo.hpp @@ -0,0 +1,40 @@ +class CfgAmmo { + class ammo_Bomb_SDB; + class GVAR(sdb): ammo_Bomb_SDB { + author = "Dani (TCVM)"; + maneuvrability = 0; // no maneuvrability so that default guidance doesnt work + class ace_missileguidance { + enabled = 1; + + pitchRate = 15; + yawRate = 20; + + canVanillaLock = 0; // Can this default vanilla lock? Only applicable to non-cadet mode + + // Guidance type for munitions + defaultSeekerType = "GPS"; + seekerTypes[] = { "GPS" }; + + defaultSeekerLockMode = "LOBL"; + seekerLockModes[] = { "LOBL" }; + + defaultNavigationType = "LINE"; + navigationTypes[] = { "LINE" }; + + lineGainP = 50; + lineGainD = 0; + + seekLastTargetPos = 0; // seek last target position [if seeker loses LOS of target, continue to last known pos] + seekerAngle = 60; // Angle from the shooter's view that can track the missile + seekerAccuracy = 1; // seeker accuracy multiplier + + seekerMinRange = 5; + seekerMaxRange = 4000; // Range from the missile which the seeker can visually search + + // Attack profile type selection + defaultAttackProfile = "JDAM"; + attackProfiles[] = {"JDAM"}; + }; + }; +}; + diff --git a/addons/sdb/CfgMagazines.hpp b/addons/sdb/CfgMagazines.hpp new file mode 100644 index 0000000000..e0a88c9758 --- /dev/null +++ b/addons/sdb/CfgMagazines.hpp @@ -0,0 +1,17 @@ +class CfgMagazines { + class magazine_Bomb_SDB_x1; + class PylonRack_Bomb_SDB_x4; + class GVAR(magazine_bomb_SDB_x1): magazine_Bomb_SDB_x1 { + displayName = CSTRING(39_1x); + author = "Dani (TCVM)"; + ammo = QGVAR(sdb); + }; + + class GVAR(PylonRack_bomb_SDB_x4): PylonRack_Bomb_SDB_x4 { + displayName = CSTRING(39_4x); + author = "Dani (TCVM)"; + ammo = QGVAR(sdb); + pylonWeapon = QGVAR(sdb); + }; +}; + diff --git a/addons/sdb/CfgWeapons.hpp b/addons/sdb/CfgWeapons.hpp new file mode 100644 index 0000000000..1d50c487a0 --- /dev/null +++ b/addons/sdb/CfgWeapons.hpp @@ -0,0 +1,12 @@ +class CfgWeapons { + class weapon_SDBLauncher; + class GVAR(sdb): weapon_SDBLauncher { + author = "Dani (TCVM)"; + displayName = CSTRING(39); + magazines[] = { + QGVAR(magazine_bomb_SDB_x1), + QGVAR(PylonRack_bomb_SDB_x4) + }; + }; +}; + diff --git a/addons/sdb/README.md b/addons/sdb/README.md new file mode 100644 index 0000000000..e9259e9043 --- /dev/null +++ b/addons/sdb/README.md @@ -0,0 +1,12 @@ +ace_sdb +=================== + +Adds GBU-39 SDB + + +## Maintainers + +The people responsible for merging changes to this component or answering potential questions. + +- [Dani-TCVM](https://github.com/TheCandianVendingMachine) + diff --git a/addons/sdb/config.cpp b/addons/sdb/config.cpp new file mode 100644 index 0000000000..6b84b38bb7 --- /dev/null +++ b/addons/sdb/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/sdb/script_component.hpp b/addons/sdb/script_component.hpp new file mode 100644 index 0000000000..310911b691 --- /dev/null +++ b/addons/sdb/script_component.hpp @@ -0,0 +1,18 @@ +#define COMPONENT sdb +#define COMPONENT_BEAUTIFIED Small Diameter Bomb +#include "\z\ace\addons\main\script_mod.hpp" + +// #define DEBUG_MODE_FULL +// #define DISABLE_COMPILE_CACHE +// #define ENABLE_PERFORMANCE_COUNTERS + +#ifdef DEBUG_ENABLED_SDB + #define DEBUG_MODE_FULL +#endif + +#ifdef DEBUG_SETTINGS_SDB + #define DEBUG_SETTINGS DEBUG_SETTINGS_SDB +#endif + +#include "\z\ace\addons\main\script_macros.hpp" + diff --git a/addons/sdb/stringtable.xml b/addons/sdb/stringtable.xml new file mode 100644 index 0000000000..053918c81b --- /dev/null +++ b/addons/sdb/stringtable.xml @@ -0,0 +1,14 @@ + + + + + GBU-39 [ACE] + + + 1x GBU-39 [ACE] + + + 4x GBU-39 [ACE] + + +