Add SDB weapon

This commit is contained in:
Bailey Danyluk 2024-05-27 21:17:27 -06:00
parent bcb6ed7c68
commit 1609f4195f
8 changed files with 134 additions and 0 deletions

1
addons/sdb/$PBOPREFIX$ Normal file
View File

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

40
addons/sdb/CfgAmmo.hpp Normal file
View File

@ -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"};
};
};
};

View File

@ -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);
};
};

12
addons/sdb/CfgWeapons.hpp Normal file
View File

@ -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)
};
};
};

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

@ -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)

20
addons/sdb/config.cpp Normal file
View File

@ -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"

View File

@ -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"

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project name="ACE">
<Package name="SDB">
<Key ID="STR_ACE_SDB_39">
<English>GBU-39 [ACE]</English>
</Key>
<Key ID="STR_ACE_SDB_39_1x">
<English>1x GBU-39 [ACE]</English>
</Key>
<Key ID="STR_ACE_SDB_39_4x">
<English>4x GBU-39 [ACE]</English>
</Key>
</Package>
</Project>