From 4e5b72e011b159589e512b400a3056643ac8a578 Mon Sep 17 00:00:00 2001 From: Bailey Danyluk Date: Mon, 9 Sep 2024 23:25:46 -0600 Subject: [PATCH] standardize aim9 --- addons/missile_aim9/CfgAmmo.hpp | 159 ++---------------- .../missileguidance/CfgMissileTypesNato.hpp | 4 +- 2 files changed, 15 insertions(+), 148 deletions(-) diff --git a/addons/missile_aim9/CfgAmmo.hpp b/addons/missile_aim9/CfgAmmo.hpp index efe1a5dbb84..dae888c3561 100644 --- a/addons/missile_aim9/CfgAmmo.hpp +++ b/addons/missile_aim9/CfgAmmo.hpp @@ -1,3 +1,7 @@ +class EGVAR(missileguidance,type_Sidewinder); +class EGVAR(missileguidance,type_ASRAAM); +class EGVAR(missileguidance,type_R73); +class EGVAR(missileguidance,type_R74); class CfgAmmo { class Missile_AA_04_F; class GVAR(m): Missile_AA_04_F { @@ -9,37 +13,8 @@ class CfgAmmo { author = "Dani (TCVM)"; maneuvrability = 0; - class ace_missileguidance { + class ace_missileguidance: EGVAR(missileguidance,type_Sidewinder) { enabled = 1; - - pitchRate = 35; // Minium flap deflection for guidance - yawRate = 35; // Maximum flap deflection for guidance - - canVanillaLock = 1; // Can this default vanilla lock? Only applicable to non-cadet mode - - // Guidance type for munitions - defaultSeekerType = "IR"; - seekerTypes[] = { "IR" }; - - flareDistanceFilter = 100; - flareAngleFilter = 1.6; // can filter out flares that are >= flareAngleFilter to known target velocity - - defaultSeekerLockMode = "LOBL"; - seekerLockModes[] = { "LOBL" }; - - defaultNavigationType = "AugmentedProportionalNavigation"; - navigationTypes[] = { "AugmentedProportionalNavigation" }; - - seekLastTargetPos = 0; // seek last target position [if seeker loses LOS of target, continue to last known pos] - seekerAngle = 45; // Angle from the shooter's view that can track the missile - seekerAccuracy = 0.8; // seeker accuracy multiplier - - seekerMinRange = 75; - seekerMaxRange = 5000; // Range from the missile which the seeker can visually search - - // Attack profile type selection - defaultAttackProfile = "DIR"; - attackProfiles[] = {"DIR"}; }; }; @@ -53,37 +28,16 @@ class CfgAmmo { author = "Dani (TCVM)"; maneuvrability = 0; - class ace_missileguidance { + class ace_missileguidance: EGVAR(missileguidance,type_Sidewinder) { enabled = 1; - - pitchRate = 90; // Minium flap deflection for guidance - yawRate = 90; // Maximum flap deflection for guidance - - canVanillaLock = 1; // Can this default vanilla lock? Only applicable to non-cadet mode - - // Guidance type for munitions - defaultSeekerType = "IR"; - seekerTypes[] = { "IR" }; - + pitchRate = 90; + yawRate = 90; flareDistanceFilter = 50; flareAngleFilter = 0.8; // can filter out flares that are >= flareAngleFilter to known target velocity - - defaultSeekerLockMode = "LOBL"; - seekerLockModes[] = { "LOBL" }; - defaultNavigationType = "ZeroEffortMiss"; navigationTypes[] = { "ZeroEffortMiss" }; - - seekLastTargetPos = 0; // seek last target position [if seeker loses LOS of target, continue to last known pos] - seekerAngle = 120; // Angle from the shooter's view that can track the missile - seekerAccuracy = 0.95; // seeker accuracy multiplier - - seekerMinRange = 75; - seekerMaxRange = 5000; // Range from the missile which the seeker can visually search - - // Attack profile type selection - defaultAttackProfile = "DIR"; - attackProfiles[] = {"DIR"}; + seekerAngle = 120; + seekerAccuracy = 0.95; }; }; @@ -98,37 +52,8 @@ class CfgAmmo { author = "Dani (TCVM)"; maneuvrability = 0; - class ace_missileguidance { + class ace_missileguidance: EGVAR(missileguidance,type_ASRAAM) { enabled = 1; - - pitchRate = 100; // Minium flap deflection for guidance - yawRate = 100; // Maximum flap deflection for guidance - - canVanillaLock = 1; // Can this default vanilla lock? Only applicable to non-cadet mode - - // Guidance type for munitions - defaultSeekerType = "IR"; - seekerTypes[] = { "IR" }; - - flareDistanceFilter = 50; - flareAngleFilter = 0.8; // can filter out flares that are >= flareAngleFilter to known target velocity - - defaultSeekerLockMode = "LOBL"; - seekerLockModes[] = { "LOBL" }; - - defaultNavigationType = "ZeroEffortMiss"; - navigationTypes[] = { "ZeroEffortMiss" }; - - seekLastTargetPos = 0; // seek last target position [if seeker loses LOS of target, continue to last known pos] - seekerAngle = 120; // Angle from the shooter's view that can track the missile - seekerAccuracy = 0.98; // seeker accuracy multiplier - - seekerMinRange = 75; - seekerMaxRange = 8000; // Range from the missile which the seeker can visually search - - // Attack profile type selection - defaultAttackProfile = "DIR"; - attackProfiles[] = {"DIR"}; }; }; @@ -143,37 +68,8 @@ class CfgAmmo { author = "Dani (TCVM)"; maneuvrability = 0; - class ace_missileguidance { + class ace_missileguidance: EGVAR(missileguidance,type_Sidewinder) { enabled = 1; - - pitchRate = 35; // Minium flap deflection for guidance - yawRate = 35; // Maximum flap deflection for guidance - - canVanillaLock = 1; // Can this default vanilla lock? Only applicable to non-cadet mode - - // Guidance type for munitions - defaultSeekerType = "IR"; - seekerTypes[] = { "IR" }; - - flareDistanceFilter = 50; - flareAngleFilter = 0.8; // can filter out flares that are >= flareAngleFilter to known target velocity - - defaultSeekerLockMode = "LOBL"; - seekerLockModes[] = { "LOBL" }; - - defaultNavigationType = "AugmentedProportionalNavigation"; - navigationTypes[] = { "AugmentedProportionalNavigation" }; - - seekLastTargetPos = 0; // seek last target position [if seeker loses LOS of target, continue to last known pos] - seekerAngle = 40; // Angle from the shooter's view that can track the missile - seekerAccuracy = 0.85; // seeker accuracy multiplier - - seekerMinRange = 75; - seekerMaxRange = 5000; // Range from the missile which the seeker can visually search - - // Attack profile type selection - defaultAttackProfile = "DIR"; - attackProfiles[] = {"DIR"}; }; }; @@ -187,37 +83,8 @@ class CfgAmmo { author = "Dani (TCVM)"; maneuvrability = 0; - class ace_missileguidance { + class ace_missileguidance: EGVAR(missileguidance,type_R74) { enabled = 1; - - pitchRate = 50; // Minium flap deflection for guidance - yawRate = 50; // Maximum flap deflection for guidance - - canVanillaLock = 1; // Can this default vanilla lock? Only applicable to non-cadet mode - - // Guidance type for munitions - defaultSeekerType = "IR"; - seekerTypes[] = { "IR" }; - - flareDistanceFilter = 50; - flareAngleFilter = 0.8; // can filter out flares that are >= flareAngleFilter to known target velocity - - defaultSeekerLockMode = "LOBL"; - seekerLockModes[] = { "LOBL" }; - - defaultNavigationType = "AugmentedProportionalNavigation"; - navigationTypes[] = { "AugmentedProportionalNavigation" }; - - seekLastTargetPos = 0; // seek last target position [if seeker loses LOS of target, continue to last known pos] - seekerAngle = 75; // Angle from the shooter's view that can track the missile - seekerAccuracy = 0.95; // seeker accuracy multiplier - - seekerMinRange = 75; - seekerMaxRange = 8000; // Range from the missile which the seeker can visually search - - // Attack profile type selection - defaultAttackProfile = "DIR"; - attackProfiles[] = {"DIR"}; }; }; }; diff --git a/addons/missileguidance/CfgMissileTypesNato.hpp b/addons/missileguidance/CfgMissileTypesNato.hpp index ee4c76890e9..0014abf105e 100644 --- a/addons/missileguidance/CfgMissileTypesNato.hpp +++ b/addons/missileguidance/CfgMissileTypesNato.hpp @@ -612,8 +612,8 @@ class GVAR(type_Redeye) { class GVAR(type_Sidewinder) { enabled = 0; - pitchRate = 25; // Minium flap deflection for guidance - yawRate = 25; // Maximum flap deflection for guidance + pitchRate = 35; // Minium flap deflection for guidance + yawRate = 35; // Maximum flap deflection for guidance canVanillaLock = 1; // Can this default vanilla lock? Only applicable to non-cadet mode