Add Kh25ML Laser Guided AGMs (#5912)

This commit is contained in:
xrufix 2018-01-01 01:01:09 +01:00 committed by PabstMirror
parent 94d58f7552
commit d3e93c9dc1
6 changed files with 118 additions and 8 deletions

View File

@ -6,7 +6,7 @@ class CfgAmmo {
class Missile_AGM_02_F : MissileBase {};
class GVAR(L) : Missile_AGM_02_F {
author = "rufix";
author = "xrufix";
autoSeekTarget = 0;
irLock = 0;
laserLock = 0;
@ -39,4 +39,37 @@ class CfgAmmo {
attackProfiles[] = {"maverick"};
};
};
class Missile_AGM_01_F : MissileBase {};
class ace_kh25ml : Missile_AGM_01_F {
author = "xrufix";
irLock = 0
missileLockMaxDistance = 10000;
weaponLockSystem = 4;
class ace_missileguidance {
enabled = 1;
minDeflection = 0.0005;
maxDeflection = 0.01;
incDeflection = 0.005;
canVanillaLock = 0;
defaultSeekerType = "SALH";
seekerTypes[] = {"SALH"};
defaultSeekerLockMode = "LOAL";
seekerLockModes[] = {"LOAL"};
seekLastTargetPos = 1;
seekerAngle = 40;
seekerAccuracy = 1;
seekerMinRange = 1;
seekerMaxRange = 10000;
defaultAttackProfile = "maverick";
attackProfiles[] = {"maverick"};
};
};
};

View File

@ -71,4 +71,43 @@ class CfgMagazines {
displayNameShort = CSTRING(L_MAG_short);
pylonWeapon = QGVAR(L_Launcher);
};
// KH-25
class 4Rnd_Missile_AGM_01_F;
class PylonRack_1Rnd_Missile_AGM_01_F : 4Rnd_Missile_AGM_01_F {};
class magazine_Missile_AGM_KH25_x1 : VehicleMagazine {};
class PylonMissile_Missile_AGM_KH25_x1 : magazine_Missile_AGM_KH25_x1 {};
class PylonMissile_Missile_AGM_KH25_INT_x1 : PylonMissile_Missile_AGM_KH25_x1 {};
class ace_kh25ml_pylonrack_x1 : PylonRack_1Rnd_Missile_AGM_01_F {
ammo = "ace_kh25ml";
author = "xrufix";
descriptionShort = CSTRING(KH25ML_MAG_DESCR);
displayName = CSTRING(KH25ML_MAG_x1);
displayNameShort = CSTRING(L_MAG_short);
pylonWeapon = "ace_kh25ml_launcher";
};
class ace_kh25ml_magazine_x1 : magazine_Missile_AGM_KH25_x1 {
ammo = "ace_kh25ml";
author = "xrufix";
descriptionShort = CSTRING(KH25ML_MAG_DESCR);
displayName = CSTRING(KH25ML_MAG_x1);
displayNameShort = CSTRING(L_MAG_short);
};
class ace_kh25ml_pylonmissile_x1 : PylonMissile_Missile_AGM_KH25_x1 {
ammo = "ace_kh25ml";
author = "xrufix";
descriptionShort = CSTRING(KH25ML_MAG_DESCR);
displayName = CSTRING(KH25ML_MAG_x1);
displayNameShort = CSTRING(L_MAG_short);
pylonWeapon = "ace_kh25ml_launcher";
};
class ace_kh25ml_pylonmissile_int_x1 : PylonMissile_Missile_AGM_KH25_INT_x1 {
ammo = "ace_kh25ml";
author = "xrufix";
descriptionShort = CSTRING(KH25ML_MAG_DESCR);
displayName = CSTRING(KH25ML_MAG_x1);
displayNameShort = CSTRING(L_MAG_short);
pylonWeapon = "ace_kh25ml_launcher";
};
};

View File

@ -45,4 +45,22 @@ class CfgWeapons {
EGVAR(laser,showHud) = 1; // show attack profile / lock on hud
GVAR(enabled) = 1;
};
class weapon_AGM_KH25Launcher : MissileLauncher {};
class ace_kh25ml_launcher : weapon_AGM_KH25Launcher {
author = "xrufix";
displayName = CSTRING(KH25ML);
magazines[] = {
"ace_kh25ml_pylonrack_x1",
"ace_kh25ml_magazine_x1",
"ace_kh25ml_pylonmissile_x1",
"ace_kh25ml_pylonmissile_int_x1"
};
weaponLockDelay = 0.1;
weaponLockSystem = 0;
EGVAR(laser,canSelect) = 1; // can ace_laser lock (allows switching laser code)
EGVAR(laser,showHud) = 1; // show attack profile / lock on hud
GVAR(enabled) = 1;
};
};

View File

@ -1,11 +1,12 @@
ace_maverick
==========
Adds pylon magazines with laser guided AGM-65 Maverick L.
Adds pylon magazines with laser guided AGM-65 Maverick L and KH25ML.
* The magazines can be added to every plane the vanilla Macer II can be added to.
* The Mavericks can be added to every plane the vanilla Macer II can be added to.
* The KH25ML can be added to every plane the vanilla KH25 and Sharur missiles can be added to.
* The missile uses laser guidance based on ACE's Advanced Missile Guidance framework.
* The PylonWeapon from CfgWeapons is added to planes with pylons automatically.
* The PylonWeapon is added to planes with pylons automatically.
![Laser guided Maverick](https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/US_Navy_041128-N-5345W-016_Aviation_Ordnanceman_3rd_Class_William_Miller_arms_a_AGM-65_Maverick_laser-guided_missile.jpg/1280px-US_Navy_041128-N-5345W-016_Aviation_Ordnanceman_3rd_Class_William_Miller_arms_a_AGM-65_Maverick_laser-guided_missile.jpg)

View File

@ -4,13 +4,14 @@ class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_hellfire"};
requiredAddons[] = {"ace_missileguidance"};
author = ECSTRING(common,ACETeam);
authors[] = {"xrufix"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
ammo[] = {
GVAR(L)
GVAR(L),
"ace_kh25ml"
};
magazines[] = {
QGVAR(L_magazine_x1),
@ -19,11 +20,15 @@ class CfgPatches {
QGVAR(L_pylonRack_1Rnd),
QGVAR(L_PylonRack_3Rnd),
QGVAR(L_PylonRack_x1),
QGVAR(L_PylonRack_x2)
QGVAR(L_PylonRack_x2),
"ace_kh25ml_magazine_x1",
"ace_kh25ml_pylonmissile_x1",
"ace_kh25ml_pylonmissile_int_x1"
};
weapons[] = {
GVAR(L_Launcher_Plane),
GVAR(L_Launcher)
GVAR(L_Launcher),
"ace_kh25ml_launcher"
};
units[] = {};
};

View File

@ -47,6 +47,15 @@
<Chinesesimp>雷射导引</Chinesesimp>
<Korean>레이저 유도</Korean>
</Key>
<Key ID="str_ace_maverick_kh25ml_mag_descr">
<English>Kh-25ML, Laser Guided Air-to-Ground-Missile</English>
<German>Ch-25ML, Lasergelenkte Luft-Boden-Rakete</German>
</Key>
<Key ID="str_ace_maverick_kh25ml_mag_x1">
<English>1x Kh-25ML [ACE]</English>
<German>1x Ch-25ML [ACE]</German>
<Russian>1x Х-25МЛ [ACE]</Russian>
</Key>
</Container>
<Container name="weapons">
<Key ID="str_ace_maverick_l">
@ -58,6 +67,11 @@
<Chinesesimp>AGM-65"小牛"飞弹L型</Chinesesimp>
<Korean>AGM-65 Maverick L</Korean>
</Key>
<Key ID="str_ace_maverick_kh25ml">
<English>Kh-25ML</English>
<German>Ch-25ML</English>
<Russian>Х-25МЛ</English>
</Key>
</Container>
</Package>
</Project>