Add Vikhr missile

This commit is contained in:
Bailey Danyluk 2024-05-27 21:16:15 -06:00
parent bcb6ed7c68
commit 11520d03f4
8 changed files with 193 additions and 0 deletions

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

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

46
addons/vikhr/CfgAmmo.hpp Normal file
View File

@ -0,0 +1,46 @@
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 {
enabled = 1;
showTrail = 1;
pitchRate = 60; // Minium flap deflection for guidance
yawRate = 60; // Maximum flap deflection for guidance
canVanillaLock = 1; // Can this default vanilla lock? Only applicable to non-cadet mode
// Guidance type for munitions
defaultSeekerType = "SACLOS";
seekerTypes[] = { "SACLOS" };
defaultSeekerLockMode = "LOBL";
seekerLockModes[] = { "LOBL" };
defaultNavigationType = "Line";
navigationTypes[] = { "Line" };
lineGainP = 8;
lineGainD = 6;
seekLastTargetPos = 0; // seek last target position [if seeker loses LOS of target, continue to last known pos]
seekerAngle = 15; // Angle from the shooter's view that can track the missile
seekerAccuracy = 1; // seeker accuracy multiplier
seekerMinRange = 30;
seekerMaxRange = 12000; // Range from the missile which the seeker can visually search
// Attack profile type selection
defaultAttackProfile = "BEAM";
attackProfiles[] = {"BEAM"};
};
};
};

View File

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

View File

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

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

@ -0,0 +1,12 @@
ace_vikhr
===================
Adds Vikhr beam-riding ATGM
## Maintainers
The people responsible for merging changes to this component or answering potential questions.
- [Dani-TCVM](https://github.com/TheCandianVendingMachine)

20
addons/vikhr/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 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_VIKHR
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_VIKHR
#define DEBUG_SETTINGS DEBUG_SETTINGS_VIKHR
#endif
#include "\z\ace\addons\main\script_macros.hpp"

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<Project name="ACE">
<Package name="Vikhr">
<Key ID="STR_ACE_Vikhr_9k121">
<English>9k121 Vikhr [ACE]</English>
</Key>
<Key ID="STR_ACE_Vikhr_1x">
<English>1x 9k121 Vikhr [ACE]</English>
</Key>
<Key ID="STR_ACE_Vikhr_2x">
<English>2x 9k121 Vikhr [ACE]</English>
</Key>
<Key ID="STR_ACE_Vikhr_3x">
<English>3x 9k121 Vikhr [ACE]</English>
</Key>
<Key ID="STR_ACE_Vikhr_4x">
<English>4x 9k121 Vikhr [ACE]</English>
</Key>
<Key ID="STR_ACE_Vikhr_6x">
<English>6x 9k121 Vikhr [ACE]</English>
</Key>
<Key ID="STR_ACE_Vikhr_8x">
<English>8x 9k121 Vikhr [ACE]</English>
</Key>
</Package>
</Project>