Skip to content

Commit

Permalink
Missileguidance - Update DAGR (#10024)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCandianVendingMachine authored Aug 23, 2024
1 parent 8d2b2ce commit 4d088fd
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 15 deletions.
11 changes: 6 additions & 5 deletions addons/missileguidance/CfgAmmo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,21 @@ class CfgAmmo {
class ADDON {
enabled = 1;

minDeflection = 0.0005; // Minium flap deflection for guidance
maxDeflection = 0.0025; // Maximum flap deflection for guidance
incDeflection = 0.0005; // The incrmeent in which deflection adjusts.
pitchRate = 40; // degrees per second
yawRate = 40;

canVanillaLock = 0; // Can this default vanilla lock? Only applicable to non-cadet mode

// Guidance type for munitions
defaultSeekerType = "SALH";
seekerTypes[] = { "SALH", "LIDAR", "SARH", "Optic", "Thermal", "GPS", "SACLOS", "MCLOS" };
seekerTypes[] = { "SALH" };

defaultSeekerLockMode = "LOAL";
seekerLockModes[] = { "LOAL", "LOBL" };

defaultNavigationType = "AugmentedProportionalNavigation";
navigationTypes[] = { "AugmentedProportionalNavigation" };

seekerAngle = 90; // Angle in front of the missile which can be searched
seekerAccuracy = 1; // seeker accuracy multiplier

Expand Down Expand Up @@ -68,7 +70,6 @@ class CfgAmmo {
// Begin ACE guidance Configs
class ADDON {
enabled = 1;

minDeflection = 0.00005; // Minium flap deflection for guidance
maxDeflection = 0.025; // Maximum flap deflection for guidance
incDeflection = 0.00005; // The incrmeent in which deflection adjusts.
Expand Down
34 changes: 25 additions & 9 deletions addons/missileguidance/CfgMagazines.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,40 @@ class CfgMagazines {
class 6Rnd_ACE_Hydra70_DAGR: 12Rnd_PG_missiles {
ammo = "ACE_Hydra70_DAGR";
count = 12;
displayName = "6 Round DAGR";
displayNameShort = "6 Round DAGR";
descriptionShort = "6 Round DAGR";
displayName = CSTRING(Hydra70_DAGR_6x);
weight = 36;

};
class 12Rnd_ACE_Hydra70_DAGR: 6Rnd_ACE_Hydra70_DAGR {
count = 12;
displayName = "16 Round DAGR";
displayNameShort = "16 Round DAGR";
descriptionShort = "16 Round DAGR";
displayName = CSTRING(Hydra70_DAGR_12x);
weight = 72;
};
class 24Rnd_ACE_Hydra70_DAGR: 6Rnd_ACE_Hydra70_DAGR {
count = 24;
displayName = "24 Round DAGR";
displayNameShort = "24 Round DAGR";
descriptionShort = "24 Round DAGR";
displayName = CSTRING(Hydra70_DAGR_24x);
weight = 72;
};

class PylonRack_12Rnd_PG_missiles;
class PylonRack_6Rnd_ACE_DAGR: PylonRack_12Rnd_PG_missiles {
ammo = "ACE_Hydra70_DAGR";
displayName = CSTRING(Hydra70_DAGR_6x);
count = 6;
pylonWeapon = QGVAR(dagr);
};

class PylonRack_12Rnd_ACE_DAGR: PylonRack_12Rnd_PG_missiles {
ammo = "ACE_Hydra70_DAGR";
displayName = CSTRING(Hydra70_DAGR_12x);
count = 12;
pylonWeapon = QGVAR(dagr);
};

class PylonRack_24Rnd_ACE_DAGR: PylonRack_12Rnd_PG_missiles {
ammo = "ACE_Hydra70_DAGR";
displayName = CSTRING(Hydra70_DAGR_24x);
count = 24;
pylonWeapon = QGVAR(dagr);
};
};
7 changes: 6 additions & 1 deletion addons/missileguidance/CfgWeapons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ class CfgWeapons {
class missiles_DAGR;

class GVAR(dagr): missiles_DAGR {
EGVAR(laser,canSelect) = 1; // can ace_laser lock (allows switching laser code)
EGVAR(laser,showHud) = 1; // show attack profile / lock on hud
magazines[] = {"6Rnd_ACE_Hydra70_DAGR","12Rnd_ACE_Hydra70_DAGR","24Rnd_ACE_Hydra70_DAGR","PylonRack_6Rnd_ACE_DAGR","PylonRack_12Rnd_ACE_DAGR","PylonRack_24Rnd_ACE_DAGR"};

autoFire = 0;
canLock = 0;
magazines[] = {"6Rnd_ACE_Hydra70_DAGR","12Rnd_ACE_Hydra70_DAGR","24Rnd_ACE_Hydra70_DAGR"};
weaponLockSystem = 0;
lockingTargetSound[] = {"",0,1};
lockedTargetSound[] = {"",0,1};
};
Expand Down
9 changes: 9 additions & 0 deletions addons/missileguidance/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -205,5 +205,14 @@
<Chinese>循環切換開火模式</Chinese>
<Turkish>Ateşleme Modunu Değiştir</Turkish>
</Key>
<Key ID="STR_ACE_MissileGuidance_Hydra70_DAGR_6x">
<English>6x DAGR [ACE]</English>
</Key>
<Key ID="STR_ACE_MissileGuidance_Hydra70_DAGR_12x">
<English>12x DAGR [ACE]</English>
</Key>
<Key ID="STR_ACE_MissileGuidance_Hydra70_DAGR_24x">
<English>24x DAGR [ACE]</English>
</Key>
</Package>
</Project>

0 comments on commit 4d088fd

Please sign in to comment.