mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Magazine, Ammo and Missile breakout.
This commit is contained in:
parent
2d019abede
commit
9aa84322c7
@ -2,7 +2,7 @@
|
||||
|
||||
class CfgPatches {
|
||||
class ADDON {
|
||||
units[] = {};
|
||||
units[] = {"ACE_Comanche_Test"};
|
||||
weapons[] = {};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
requiredAddons[] = {"ace_common"};
|
||||
|
@ -1,6 +1,6 @@
|
||||
class CfgAmmo {
|
||||
class MissileBase;
|
||||
|
||||
|
||||
class M_PG_AT : MissileBase {
|
||||
irLock = 0;
|
||||
laserLock = 0;
|
||||
@ -8,4 +8,16 @@ class CfgAmmo {
|
||||
manualControl = 0;
|
||||
timeToLive = 120;
|
||||
};
|
||||
|
||||
class ACE_Hydra70_DAGR : M_PG_AT {
|
||||
displayName = "ACE Hydra-70 DAGR Missile";
|
||||
displayNameShort = "$STR_A3_CfgMagazines_24Rnd_PG_missiles_dns";
|
||||
descriptionShort = "$STR_A3_CfgMagazines_24Rnd_PG_missiles1";
|
||||
};
|
||||
|
||||
class ACE_Hellfire_AGM114K : ACE_Hydra70_DAGR {
|
||||
displayName = "$STR_A3_CfgMagazines_24Rnd_PG_missiles0";
|
||||
displayNameShort = "$STR_A3_CfgMagazines_24Rnd_PG_missiles_dns";
|
||||
descriptionShort = "$STR_A3_CfgMagazines_24Rnd_PG_missiles1";
|
||||
};
|
||||
};
|
53
addons/missileguidance/CfgMagazines.hpp
Normal file
53
addons/missileguidance/CfgMagazines.hpp
Normal file
@ -0,0 +1,53 @@
|
||||
class CfgMagazines {
|
||||
class 12Rnd_PG_missiles;
|
||||
|
||||
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";
|
||||
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";
|
||||
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";
|
||||
weight = 72;
|
||||
};
|
||||
|
||||
// Hellfires
|
||||
class 6Rnd_ACE_Hellfire_AGM114K : 12Rnd_PG_missiles {
|
||||
count = 12;
|
||||
ammo = "ACE_Hellfire_AGM114K";
|
||||
displayName = "6Rnd_ACE_Hellfire_AGM114K";
|
||||
displayNameShort = "6Rnd_ACE_Hellfire_AGM114K";
|
||||
descriptionShort = "6Rnd_ACE_Hellfire_AGM114K";
|
||||
weight = 36;
|
||||
|
||||
};
|
||||
class 12Rnd_ACE_Hellfire_AGM114K : 6Rnd_ACE_Hydra70_DAGR {
|
||||
count = 12;
|
||||
displayName = "12Rnd_ACE_Hellfire_AGM114K";
|
||||
displayNameShort = "12Rnd_ACE_Hellfire_AGM114K";
|
||||
descriptionShort = "12Rnd_ACE_Hellfire_AGM114K";
|
||||
weight = 72;
|
||||
};
|
||||
class 24Rnd_ACE_Hellfire_AGM114K : 6Rnd_ACE_Hydra70_DAGR {
|
||||
count = 24;
|
||||
displayName = "24Rnd_ACE_Hellfire_AGM114K";
|
||||
displayNameShort = "24Rnd_ACE_Hellfire_AGM114K";
|
||||
descriptionShort = "24Rnd_ACE_Hellfire_AGM114K";
|
||||
weight = 72;
|
||||
};
|
||||
|
||||
};
|
23
addons/missileguidance/CfgVehicles.hpp
Normal file
23
addons/missileguidance/CfgVehicles.hpp
Normal file
@ -0,0 +1,23 @@
|
||||
class CfgVehicles {
|
||||
class Heli_Attack_01_base_F;
|
||||
|
||||
class B_Heli_Attack_01_F : Heli_Attack_01_base_F {
|
||||
class Turrets {
|
||||
class MainTurret;
|
||||
};
|
||||
}
|
||||
|
||||
class ACE_Comanche_Test : B_Heli_Attack_01_F {
|
||||
displayName = "ACE_Comanche_Test";
|
||||
author = "ACE Team";
|
||||
class Library
|
||||
{
|
||||
libTextDesc = "ACE_Comanche_Test";
|
||||
};
|
||||
class Turrets: Turrets {
|
||||
class MainTurret: MainTurret {
|
||||
magazines[] = {"ACE_500Rnd_20mm_shells_Comanche", "24Rnd_ACE_Hellfire_AGM114K"};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
@ -6,29 +6,8 @@ class CfgWeapons {
|
||||
class RocketPods: LauncherCore {
|
||||
canLock = 1;
|
||||
};
|
||||
class missiles_DAGR: RocketPods {
|
||||
class missiles_DAGR : RocketPods {
|
||||
canLock = 1;
|
||||
magazines[] = {"24Rnd_ACE_Hydra70_DAGR", "12Rnd_ACE_Hydra70_DAGR", "6Rnd_ACE_Hydra70_DAGR", "24Rnd_ACE_Hellfire_AGM114K", "12Rnd_ACE_Hellfire_AGM114K", "6Rnd_ACE_Hellfire_AGM114K" };
|
||||
};
|
||||
/*
|
||||
class autocannon_Base_F: CannonCore {
|
||||
canLock = 1;
|
||||
};
|
||||
class cannon_120mm: CannonCore {
|
||||
canLock = 1;
|
||||
|
||||
class player : Mode_SemiAuto {
|
||||
canLock = 1;
|
||||
};
|
||||
};
|
||||
class gatling_25mm: CannonCore {
|
||||
canLock = 1;
|
||||
};
|
||||
class autocannon_35mm: CannonCore {
|
||||
canLock = 1;
|
||||
};
|
||||
|
||||
class launch_NLAW_F: Launcher_Base_F
|
||||
{
|
||||
canLock = 1;
|
||||
};*/
|
||||
};
|
@ -12,4 +12,6 @@ class CfgPatches {
|
||||
|
||||
#include "CfgEventhandlers.hpp"
|
||||
#include "CfgAmmo.hpp"
|
||||
#include "CfgWeapons.hpp"
|
||||
#include "CfgMagazines.hpp"
|
||||
#include "CfgWeapons.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
|
@ -7,10 +7,15 @@ PARAMS_7(_shooter,_weapon,_muzzle,_mode,_ammo,_magazine,_projectile);
|
||||
if(!local _shooter) exitWith { false };
|
||||
|
||||
|
||||
switch _weapon do {
|
||||
case "missiles_DAGR": {
|
||||
switch _ammo do {
|
||||
case "M_PG_AT": { // Vanilla DAGR missile
|
||||
_this call FUNC(guidance_DAGR);
|
||||
//_this call FUNC(guidance_HellfireII);
|
||||
};
|
||||
case "ACE_Hydra70_DAGR": { // ACE DAGR
|
||||
_this call FUNC(guidance_DAGR);
|
||||
};
|
||||
case "ACE_Hellfire_AGM114K": { // ACE Hellfire AGM-114K
|
||||
_this call FUNC(guidance_HellfireII);
|
||||
};
|
||||
case "GBU12BombLauncher": {
|
||||
_this call FUNC(guidance_LGB);
|
||||
|
Loading…
Reference in New Issue
Block a user