From 265670cafae94b9b2bb4741e91f16626264507d0 Mon Sep 17 00:00:00 2001 From: Brandon Danyluk Date: Fri, 16 Apr 2021 19:50:00 -0600 Subject: [PATCH] Tweak flight parameters. Add R-77 --- addons/aim120/CfgAmmo.hpp | 69 ++++++++++++++++++++++++++++-- addons/aim120/CfgMagazines.hpp | 24 +++++++++++ addons/aim120/CfgWeapons.hpp | 50 ++++++++++++++++++++++ addons/aim9/CfgAmmo.hpp | 4 +- addons/gbu/CfgAmmo.hpp | 8 ++-- addons/hellfire/CfgAmmo.hpp | 4 +- addons/maverick/CfgAmmo.hpp | 12 +++--- addons/missileguidance/CfgAmmo.hpp | 8 ++-- 8 files changed, 157 insertions(+), 22 deletions(-) diff --git a/addons/aim120/CfgAmmo.hpp b/addons/aim120/CfgAmmo.hpp index 2509e3bd5a..0cfbc7fda0 100644 --- a/addons/aim120/CfgAmmo.hpp +++ b/addons/aim120/CfgAmmo.hpp @@ -1,6 +1,12 @@ class CfgAmmo { class ammo_Missile_AMRAAM_C; + // AIM-120 class GVAR(c): ammo_Missile_AMRAAM_C { + missileLockCone = 30; + missileKeepLockedCone = 30; + missileLockMaxDistance = 16000; + missileLockMinDistance = 500; + author = "Brandon (TCVM)"; maneuvrability = 0; flightProfiles[] = {"Direct", "Loft"}; @@ -9,8 +15,8 @@ class CfgAmmo { class ace_missileguidance { enabled = 1; - pitchRate = 40; // Minium flap deflection for guidance - yawRate = 40; // Maximum flap deflection for guidance + pitchRate = 30; // Minium flap deflection for guidance + yawRate = 30; // Maximum flap deflection for guidance canVanillaLock = 1; // Can this default vanilla lock? Only applicable to non-cadet mode @@ -45,6 +51,11 @@ class CfgAmmo { class ammo_Missile_AMRAAM_D; class GVAR(d): ammo_Missile_AMRAAM_D { + missileLockCone = 45; + missileKeepLockedCone = 45; + missileLockMaxDistance = 16000; + missileLockMinDistance = 500; + author = "Brandon (TCVM)"; maneuvrability = 0; flightProfiles[] = {"Direct", "TopDown"}; @@ -53,8 +64,58 @@ class CfgAmmo { class ace_missileguidance { enabled = 1; - pitchRate = 50; // Minium flap deflection for guidance - yawRate = 50; // Maximum flap deflection for guidance + pitchRate = 45; // Minium flap deflection for guidance + yawRate = 45; // Maximum flap deflection for guidance + + canVanillaLock = 1; // Can this default vanilla lock? Only applicable to non-cadet mode + + // Guidance type for munitions + defaultSeekerType = "DopplerRadar"; + seekerTypes[] = { "DopplerRadar" }; + lockableTypes[] = {"Air"}; + + minimumSpeedFilter = 15; // filter out targets that have a closing velocity less than this + minimumTimeFilter = 0.00005; // filter out targets that are this close to the ground (speed of light) + maxTerrainCheck = 16000; // How far we should check for terrain + + defaultSeekerLockMode = "LOAL"; + seekerLockModes[] = { "LOAL", "LOBL" }; + + defaultNavigationType = "ZeroEffortMiss"; + navigationTypes[] = { "ZeroEffortMiss" }; + + seekLastTargetPos = 0; // seek last target position [if seeker loses LOS of target, continue to last known pos] + seekerAngle = 50; // Angle from the shooter's view that can track the missile + seekerAccuracy = 1; // seeker accuracy multiplier + + seekerMinRange = 75; + seekerMaxRange = 2500; // Range from the missile which the seeker can visually search + + // Attack profile type selection + defaultAttackProfile = "DIR"; + attackProfiles[] = {"DIR", "LOFT"}; + useModeForAttackProfile = 1; + }; + }; + + // R-77 + class ammo_Missile_AA_R77; + class GVAR(r77): ammo_Missile_AA_R77 { + missileLockCone = 50; + missileKeepLockedCone = 50; + missileLockMaxDistance = 16000; + missileLockMinDistance = 500; + + author = "Brandon (TCVM)"; + maneuvrability = 0; + flightProfiles[] = {"Direct", "TopDown"}; + class Direct {}; // dummy to allow for F cycling of missile mode + class TopDown {}; + class ace_missileguidance { + enabled = 1; + + pitchRate = 40; // Minium flap deflection for guidance + yawRate = 40; // Maximum flap deflection for guidance canVanillaLock = 1; // Can this default vanilla lock? Only applicable to non-cadet mode diff --git a/addons/aim120/CfgMagazines.hpp b/addons/aim120/CfgMagazines.hpp index 07b182a332..51998e66aa 100644 --- a/addons/aim120/CfgMagazines.hpp +++ b/addons/aim120/CfgMagazines.hpp @@ -8,6 +8,7 @@ class CfgMagazines { class PylonRack_Missile_AMRAAM_D_x1; class PylonRack_Missile_AMRAAM_D_x2; + // AIM-120 class GVAR(c): magazine_Missile_AMRAAM_C_x1 { author = "Brandon (TCVM)"; displayName = "1x AIM-120C [ACE]"; @@ -56,5 +57,28 @@ class CfgMagazines { ammo = QGVAR(d); pylonWeapon = GVAR(aim120Launcher); }; + + // R-77 + class magazine_Missile_AA_R77_x1; + class PylonMissile_Missile_AA_R77_x1; + class PylonMissile_Missile_AA_R77_INT_x1; + + class GVAR(r77): magazine_Missile_AA_R77_x1 { + author = "Brandon (TCVM)"; + displayName = "1x R77 [ACE]"; + ammo = QGVAR(r77); + }; + class GVAR(PylonMissile_Missile_R77_x1): PylonMissile_Missile_AA_R77_x1 { + author = "Brandon (TCVM)"; + displayName = "1x R77 [ACE]"; + ammo = QGVAR(r77); + pylonWeapon = QGVAR(r77Launcher); + }; + class GVAR(PylonMissile_Missile_R77__INT_x1): PylonMissile_Missile_AA_R77_INT_x1 { + author = "Brandon (TCVM)"; + displayName = "1x R77 [ACE]"; + ammo = QGVAR(r77); + pylonWeapon = QGVAR(r77Launcher); + }; }; diff --git a/addons/aim120/CfgWeapons.hpp b/addons/aim120/CfgWeapons.hpp index ba1aa6d05c..9ab7c2e998 100644 --- a/addons/aim120/CfgWeapons.hpp +++ b/addons/aim120/CfgWeapons.hpp @@ -49,5 +49,55 @@ class CfgWeapons { EGVAR(missileGuidance,attackProfile) = "LOFT"; }; }; + + class weapon_R77Launcher; + class GVAR(r77Launcher): weapon_R77Launcher { + author = "Brandon (TCVM)"; + displayName = "R-77 [ACE]"; + weaponLockDelay = 0.5; + + magazines[] = {QGVAR(r77), QGVAR(PylonMissile_Missile_R77_x1), QGVAR(PylonMissile_Missile_R77__INT_x1)}; + + modes[] = {"Direct", "Loft"}; + class Direct: MissileLauncher { + displayName = "Direct"; + textureType = "direct"; + reloadTime = 0.1; + magazineReloadTime = 0.1; + aiRateOfFire = 15; + aiRateOfFireDispersion = -10; + aiRateOfFireDistance = 10000; + minRange = 800; + minRangeProbab = 0.5; + midRange = 2500; + midRangeProbab = 0.95; + maxRange = 4000; + maxRangeProbab = 1; + sounds[] = {"StandardSound"}; + class StandardSound { + begin1[] = {"A3\Sounds_F\weapons\Rockets\missile_2", 1.12202, 1.3, 1000}; + soundBegin[] = {"begin1", 1}; + weaponSoundEffect = "DefaultRifle"; + }; + soundFly[] = {"A3\Sounds_F\weapons\Rockets\rocket_fly_1", 1, 1.5, 700}; + lockingTargetSound[] = {"\A3\Sounds_F\weapons\Rockets\locked_1", 0.562341, 1}; + lockedTargetSound[] = {"\A3\Sounds_F\weapons\Rockets\locked_3", 0.562341, 2.5}; + + EGVAR(missileGuidance,attackProfile) = "DIR"; + }; + class Loft: Direct { + displayName = "Loft"; + textureType = "topdown"; + + minRange = 4000; + minRangeProbab = 0.5; + midRange = 7000; + midRangeProbab = 0.95; + maxRange = 13000; + maxRangeProbab = 1; + + EGVAR(missileGuidance,attackProfile) = "LOFT"; + }; + }; }; diff --git a/addons/aim9/CfgAmmo.hpp b/addons/aim9/CfgAmmo.hpp index c268587cc2..46a1ba49bc 100644 --- a/addons/aim9/CfgAmmo.hpp +++ b/addons/aim9/CfgAmmo.hpp @@ -46,8 +46,8 @@ class CfgAmmo { class ace_missileguidance { enabled = 1; - pitchRate = 30; // Minium flap deflection for guidance - yawRate = 30; // Maximum flap deflection for guidance + pitchRate = 40; // Minium flap deflection for guidance + yawRate = 40; // Maximum flap deflection for guidance canVanillaLock = 1; // Can this default vanilla lock? Only applicable to non-cadet mode diff --git a/addons/gbu/CfgAmmo.hpp b/addons/gbu/CfgAmmo.hpp index 73c47dbf27..51dc8134d2 100644 --- a/addons/gbu/CfgAmmo.hpp +++ b/addons/gbu/CfgAmmo.hpp @@ -6,8 +6,8 @@ class CfgAmmo { class ace_missileguidance { enabled = 1; - pitchRate = 15; - yawRate = 15; + pitchRate = 5; + yawRate = 5; bangBangGuidance = 1; @@ -43,8 +43,8 @@ class CfgAmmo { class ace_missileguidance { enabled = 1; - pitchRate = 23; - yawRate = 23; + pitchRate = 8; + yawRate = 8; bangBangGuidance = 1; diff --git a/addons/hellfire/CfgAmmo.hpp b/addons/hellfire/CfgAmmo.hpp index afb6b99175..c3ee83e3a4 100644 --- a/addons/hellfire/CfgAmmo.hpp +++ b/addons/hellfire/CfgAmmo.hpp @@ -26,8 +26,8 @@ class CfgAmmo { class ace_missileguidance { enabled = 1; - pitchRate = 40; // degrees per second - yawRate = 40; + pitchRate = 30; // degrees per second + yawRate = 30; canVanillaLock = 0; // Can this default vanilla lock? Only applicable to non-cadet mode diff --git a/addons/maverick/CfgAmmo.hpp b/addons/maverick/CfgAmmo.hpp index 6cfd476b69..bef796a5cd 100644 --- a/addons/maverick/CfgAmmo.hpp +++ b/addons/maverick/CfgAmmo.hpp @@ -12,8 +12,8 @@ class CfgAmmo { class ace_missileguidance { enabled = 1; - pitchRate = 10; - yawRate = 10; + pitchRate = 15; + yawRate = 15; canVanillaLock = 1; @@ -55,8 +55,8 @@ class CfgAmmo { class ace_missileguidance { enabled = 1; - pitchRate = 30; - yawRate = 30; + pitchRate = 15; + yawRate = 15; canVanillaLock = 0; @@ -90,8 +90,8 @@ class CfgAmmo { class ace_missileguidance { enabled = 1; - pitchRate = 45; - yawRate = 45; + pitchRate = 20; + yawRate = 20; canVanillaLock = 0; diff --git a/addons/missileguidance/CfgAmmo.hpp b/addons/missileguidance/CfgAmmo.hpp index 428af791c3..0309a22973 100644 --- a/addons/missileguidance/CfgAmmo.hpp +++ b/addons/missileguidance/CfgAmmo.hpp @@ -20,8 +20,8 @@ class CfgAmmo { class ADDON { enabled = 1; - pitchRate = 50; // degrees per second - yawRate = 50; + pitchRate = 40; // degrees per second + yawRate = 40; canVanillaLock = 0; // Can this default vanilla lock? Only applicable to non-cadet mode @@ -71,8 +71,8 @@ class CfgAmmo { class ADDON { enabled = 1; - pitchRate = 40; // degrees per second - yawRate = 40; + pitchRate = 25; // degrees per second + yawRate = 25; bangBangGuidance = 0;