Jump to content
Sign in to follow this  
mandoble

Mando Missile ArmA for ArmA 2

Recommended Posts

I think the only alternative is the ICE_AircraftHUD, ICE_AH64D_CPG_sights and bd_hellfire.

The way that the targeting view keeps moving after you stop moving the mouse made MMA unusable for me anyway and as it's clearly abandoned there was no hope of this being fixed, which is why I went to ICE.

Share this post


Link to post
Share on other sites
I think the only alternative is the ICE_AircraftHUD, ICE_AH64D_CPG_sights and bd_hellfire.

The way that the targeting view keeps moving after you stop moving the mouse made MMA unusable for me anyway and as it's clearly abandoned there was no hope of this being fixed, which is why I went to ICE.

I would imagine there is an inherent difficulty with implementing ground stabilization in the Arma engine, otherwise the UAV would be useful by now. Have any of those mods you mentioned figured this out? MMA is tricky at first, but once you figure out the performance envelope of the missile/LGB cams, it's cake. A variable-DPI mouse helps a lot, too!

Share this post


Link to post
Share on other sites

I am using Philip Taylors and Konyos M319 and M320 - Mod and would like to give these planes mando-compatibility. The Planes currently do not launch MMA and i have to use the 'classical' lock-on system for their rockets. Now i'm wondering if the following is archiveable:

a) Give the Plane the MMA-HUD for Torpedoes, Sonobuoys and the NAV-HUD, basically the same loadout than the Knighthawk Helicopter, but with far more ammo (e.g. around 30 Buoys, 10 Torpedoes), which can be launched via HUD, NOT! the action menu. So Bacially i would have a ASW-Capable Plane.

Do what is in this post, and I will see if I can help:

Config info needed

Share this post


Link to post
Share on other sites
I would imagine there is an inherent difficulty with implementing ground stabilization in the Arma engine, otherwise the UAV would be useful by now. Have any of those mods you mentioned figured this out?

Probably not but that's not what I meant. I mean how the camera is not moved precisely by the mouse (or joystick) but moves in the direction the mouse was last moved and continues to move like this until the mouse is "centered" (not an easy spot to find with a mouse!). Just too fiddly for me.

Share this post


Link to post
Share on other sites
Probably not but that's not what I meant. I mean how the camera is not moved precisely by the mouse (or joystick) but moves in the direction the mouse was last moved and continues to move like this until the mouse is "centered" (not an easy spot to find with a mouse!). Just too fiddly for me.

Ah. Well, like was saying, it's just a matter of getting your head around the way it actually works. The mouse is your interface to a virtual slew control, like you would find on a HOTAS. The mouse cursor is the head of the slew control stick, and the "targeting box" is the limit of travel of the stick. When the cursor leaves the box, you are basically holding the slew stick where the cursor crossed the boundary. The farther from the center of the box you get, the higher the slew rate. For this reason, I find it ideal to use a lower DPI setting on my mouse. Still, with a clear understanding of the system and a little bit of practice, any mouse will do just fine.

I'm just yammering, by the way, not trying to persuade you to use a mod you have chosen not to use. Everyone is entitled to their preference.

Happy flying!

Share this post


Link to post
Share on other sites
Do what is in this post, and I will see if I can help:

Config info needed

Here we go

French:

"A319MPA ["EADS A319 MPA (Fr)",["ExocetMPAmag","28Rnd_FFAR"],["ExocetMPAWeap","FFARLauncher"]],"

"[Plane],"

German:

"A320MPA ["EADS A320 MPA (Gr)",["KormoranMPAmag"],["KormoranMPAWeap"]],"

"[A319MPA],"

Italian

"A320MPA2 ["EADS A320 MPA (It)",["AGM84MPAmag"],["AGM84MPAWeap"]],"

"[A319MPA],"

I do not know the classnames for the Mando-torpedo and sonobuoys however, they are not already included in the plane, i want to add them.

Edited by Elena

Share this post


Link to post
Share on other sites

I wonder if anyone can help with a problem I'm having.

I'm using Mando's Air Support Console for our group's current Invasion 1944 Missions. Planes and units have been adopted from the Invasion 1944 units and so far most of it is working perfectly.

One problem occurs however when I attempt o use the B17 for the Carpet Bombing portion of the ASC. The plane spawns normally, flies to the correct point and then appears to drop the bombs without opening its bomb-bay doors. At least that's what appears to happen as the plane immediately begins to explode with a series of explosions that has the same timing as the bomb release.

Does anyone know how to ammend Mando's code from the my_console_setup to allow the B17 (csj_B17) to open its bomb bay doors?

I've tried increasing the delay between bomb releases thinking that perhaps the bombs were being released too quickly, but only effect it has was to slow down the rate at which bombs appeared to be blowing up the plane.

I have included the current code;

// End of options setup dialog configuration



["MMA Air Support Console", {(typeOf vehicle player == "LAV25_HQ") && (player == driver vehicle player)}]execVM"mando_missiles\mando_bombs\mando_giveme_console.sqf";

// Carpet bombing custom code global variable for I44_Plane_A_B17_AAF
mando_airsupport_carpetcode = 
{
  private["_plane", "_targetpos", "_widx"];
  _plane = _this select 0;
  _targetpos = _this select 1;
  while {(([getPos _plane select 0, getPos _plane select 1, 0] distance _targetpos) > 2000) && (alive _plane)} do
  {
     Sleep 1;
  };

  if (alive _plane) then
  {
     _widx = [_plane, "B17BombLauncher"] call mando_weaponindex;
     for [{_i=0}, {_i<6}, {_i=_i+1}] do
     {
        _plane action ["useWeapon",_plane,driver _plane, _widx];
        Sleep 0.2;
     };
  };
};

// End of options setup dialog configuration 

Share this post


Link to post
Share on other sites

Theopolus, I don't know if it will help, but I do know I had to add a gunner to Gnat's B-52 in order for it to work correctly. I can't remember if it was blowing up like you are having problems with, or if it was not dropping anything at all.

My mobo died, so I'm waiting for new one to arrive today...

Here is the code I use for the B-52, it may or may not help you:

mando_airsupport_carpetcode = 
{   
  private["_plane", "_targetpos", "_widx"];
  _plane = _this select 0;
  _targetpos = _this select 1;
  [color="#FF0000"]_gunner = (group driver _plane) createUnit ["USMC_Soldier_Pilot",[0,0,30], [], 0, "FORM"];[/color]
  [color="#FF0000"]_gunner setskill 0.5;[/color]
  [color="#FF0000"]_gunner moveInGunner _plane;[/color]
  while {(([getPos _plane select 0, getPos _plane select 1, 0] distance _targetpos) > 1200) && (alive _plane)} do
  {
     Sleep 1;
  };

  if (alive _plane) then
  {      
     _widx = [_plane, "GNTMK82Launcher"] call mando_weaponindex;
     for [{_i=0}, {_i<14}, {_i=_i+1}] do
     {
        _plane action ["useWeapon",_plane,[color="#FF0000"]gunner _plane[/color], _widx];
        Sleep 0.4;
     };
  };
};

I don't use the I-44 mod, so I have no clue how the B-17 is set up

Share this post


Link to post
Share on other sites

Thanks panther42 it doesn't seem to do it either.

The B17 doesn't explode this time, that's good, but it only just flies to the target and then flies past - no bombs are released at all.

Thank you however for the B52 carpet bombing code - i will incorportate this into my groups modern missions where we have air support.

I did manage to find a bombing script that comes with the addon - I just don't know how to incoporate it into the Mando code. The bombem.sqf code reads as follows;

[code

]//drop bombs by CSJ

_plane = _this select 0;

if (local _plane) then

{

for "_i" from 0 to 7 do

{

_bombL = "500lb" createVehicle [0,0,900];

_bombL attachTo [_plane,[-0.5,2.5,-5]];

sleep 0.1;

detach _bombL;

_bombR = "500lb" createVehicle [0,0,900];

_bombR attachTo [_plane,[0.5,2.5,-5]];

sleep 0.1;

detach _bombR;

sleep 0.3;

};

};[/

CODE]

If you could provide a suggestion or example of how i would call this script from within the Mando code that would be very much appreciated.

Thanks.

Share this post


Link to post
Share on other sites

I am hoping that someone in the Community can help me with a problem I am having.

I am attempting to use Mando's Air Support Console as a support tool for my groups I44 missions. So far the ammo crates are spawning and are working with the I44 gear. The only exception to this is the fact that the I44 Backpacks are not considered magz or weap under th Mando code;

they normally can be added to ammo crates via the "this addBackpackCargo" command.

Previously, I had always called these kind of backpack weapons under our group's ACE missions without problem because the ACE versions are considered weapons so I simply included things like portable launchers and mortars and tripods under the "mando_airsupport_weap = " category.

This is not working with the I44 stuff and we do not wish to attempt to integrate ACE with I44.

Does anyone know how I might go about spawning an Ammo Crate under the Mando Air Support Console that contains some of the I44 Backpacks? The classnames of the items I am atttempting to include follow;

"I44_Backpack_M2flamethrower"

"TK_ALICE_Pack_EP1"

"I44_Bag_M1919A4"

"I44_Bag_Tripod_M2_C"

"I44_Bag_M2Mortar"

"I44_Bag_M2MortarBP"

The Ammo Crate Config portion of the "my_console_setup" that is currently working follows;

mando_airsupport_opt5_text = "Ammo Supply Options";
mando_airsupport_opt5_array = ["Basic Ammo", "AT & Explosives","Heavy Weapons Crate"];
mando_airsupport_opt5_action = 
{
     case "Basic Small Arms":
     {  
        mando_airsupport_magz = [["I44_20rd_762x63_Mix_M1918", 20],["I44_20rd_762x63_Tracer_M1918", 20],["I44_20rd_762x63_Ball_M1918", 20],["I44_20rd_762x63_AP_M1918", 20],["I44_50rd_762x63_Mix_M1919", 20],["I44_50rd_762x63_Tracer_M1919", 20],["I44_50rd_762x63_Ball_M1919", 20],["I44_50rd_762x63_AP_M1919", 20],["I44_7rd_1143x23_Ball_M1911", 20],["I44_15rd_762x33_Mix_M1Carbine", 20],["I44_15rd_762x33_Tracer_M1Carbine", 20],["I44_15rd_762x33_Ball_M1Carbine", 20],["I44_8rd_762x63_Mix_M1Garand", 20],["I44_8rd_762x63_Tracer_M1Garand", 20],["I44_8rd_762x63_Ball_M1Garand", 20],["I44_8rd_762x63_AP_M1Garand", 20],["I44_5rd_762x63_Mix_M1903", 20],["I44_5rd_762x63_Tracer_M1903", 20],["I44_5rd_762x63_Ball_M1903", 20],["I44_5rd_762x63_AP_M1903", 20],["I44_4xM19_12ga_00Buckshot_M37", 20],["I44_30rd_1143x23_Mix_M1A1Thompson", 20],["I44_30rd_1143x23_Tracer_M1A1Thompson", 20],["I44_30rd_1143x23_Ball_M1A1Thompson", 20],["I44_30rd_1143x23_Mix_M3Greasegun", 20],["I44_30rd_1143x23_Tracer_M3Greasegun", 20],["I44_30rd_1143x23_Ball_M3Greasegun", 20],["I44_RifleGrenade_M1Mk2", 20],["I44_RifleGrenade_SignalM17A1", 20],["I44_RifleGrenade_M17", 20],["I44_RifleGrenade_M9A1", 20],["I44_RifleGrenade_M1Mk2_M1903", 20],["I44_RifleGrenade_SignalM17A1_M1903", 20],["I44_RifleGrenade_M17_M1903", 20],["I44_HandGrenade_No82", 20],["I44_HandGrenade_Mk2", 20],["I44_HandGrenade_No36M", 20],["I44_SmokeGrenade_ANM8", 20],["I44_SmokeGrenade_M18Red", 20],["I44_SmokeGrenade_M18Green", 20],["I44_SmokeGrenade_M18Violet", 20],["I44_SmokeGrenade_M18Yellow", 20]];
        mando_airsupport_weap = [["I44_M1911A1", 4],["I44_M1Garand_M7", 2],["I44_M1A1Thompson", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
     };

     case "AT & Explosives":
     {
        mando_airsupport_magz = [["I44_Rocket_60mm_M6A1_M1A1Bazooka", 10],["I44_m2_flamethrower_mag", 2],["I44_Mine_AT_M1", 20],["I44_Mine_AT_GrenadeNo75", 10],["I44_Item_M37DemoKit", 10],["I44_Item_M37DemoKitHalf", 10],["I44_Item_M2DemoCharge", 20],["I44_Item_M1A1Bangalore", 10],["I44_throwable_M37", 10],["I44_throwable_M2", 10]];
        mando_airsupport_weap = [["I44_M1A1Bazooka", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
     };

     case "Mortar Crate":
     {
        mando_airsupport_magz = [["I44_250rd_762x63_Mix_M1919_mounted", 8],["I44_Shell_60L12_M302", 10],["I44_Shell_60L12_M49A2", 40],["I44_Shell_60L12_M83A1", 10]];
        mando_airsupport_weap = [["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
     };
  }; 
};

My coding skills are limited - I typically steal and modify what's already working. If someone knows how I could call a crate with the OA type Backpacks inside I would very much appreciate that help.

Thanks.

Share this post


Link to post
Share on other sites

Guys , i need help with something not related directly to this mod !

I want to influence KH29's trajectory in the vanilla game to give it more agility,i have managed to give it more speed,but what i want is making it find its direction to target (after launch) easily ! any ideas where to start ?

Share this post


Link to post
Share on other sites
Thanks panther42 it doesn't seem to do it either.

The B17 doesn't explode this time, that's good, but it only just flies to the target and then flies past - no bombs are released at all.

Thank you however for the B52 carpet bombing code - i will incorportate this into my groups modern missions where we have air support.

I did manage to find a bombing script that comes with the addon - I just don't know how to incoporate it into the Mando code. The bombem.sqf code reads as follows;

[code

]//drop bombs by CSJ


_plane = _this select 0;

if (local _plane) then
{
for "_i" from 0 to 7 do
{
_bombL = "500lb" createVehicle [0,0,900];
_bombL attachTo [_plane,[-0.5,2.5,-5]];
sleep 0.1;
detach _bombL;

_bombR = "500lb" createVehicle [0,0,900];
_bombR attachTo [_plane,[0.5,2.5,-5]];
sleep 0.1;
detach _bombR;
sleep 0.3;
};
};[/

CODE]

If you could provide a suggestion or example of how i would call this script from within the Mando code that would be very much appreciated.

Thanks.[/quote]


Just insert the bombing code you have that works into the code like this:

mando_airsupport_carpetcode = 
{   
  private["_plane", "_targetpos", "_bombL", "_bombR"];
  _plane = _this select 0;
  _targetpos = _this select 1;

  while {(([getPos _plane select 0, getPos _plane select 1, 0] distance _targetpos) > 1200) && (alive _plane)} do
  {
     Sleep 1;
  };

  if ((alive _plane) && (local _plane)) then
  {      

     for "_i" from 0 to 7 do
     {
        _bombL = "500lb" createVehicle [0,0,900];
        _bombL attachTo [_plane,[-0.5,2.5,-5]];
        sleep 0.1;
        detach _bombL;

        _bombR = "500lb" createVehicle [0,0,900];
        _bombR attachTo [_plane,[0.5,2.5,-5]];
        sleep 0.1;
        detach _bombR;
        sleep 0.3;
     };
  };
};

The B-17 I believe is the one from the FEW mod. From this post I found, it doesn't seem to be set up correctly:

B-17

It's an older post, so maybe they have made some changes...

Is that "500lb" valid?

Edited by panther42

Share this post


Link to post
Share on other sites
I am hoping that someone in the Community can help me with a problem I am having.

I am attempting to use Mando's Air Support Console as a support tool for my groups I44 missions. So far the ammo crates are spawning and are working with the I44 gear. The only exception to this is the fact that the I44 Backpacks are not considered magz or weap under th Mando code;

they normally can be added to ammo crates via the "this addBackpackCargo" command.

Previously, I had always called these kind of backpack weapons under our group's ACE missions without problem because the ACE versions are considered weapons so I simply included things like portable launchers and mortars and tripods under the "mando_airsupport_weap = " category.

This is not working with the I44 stuff and we do not wish to attempt to integrate ACE with I44.

Does anyone know how I might go about spawning an Ammo Crate under the Mando Air Support Console that contains some of the I44 Backpacks? The classnames of the items I am atttempting to include follow;

"I44_Backpack_M2flamethrower"

"TK_ALICE_Pack_EP1"

"I44_Bag_M1919A4"

"I44_Bag_Tripod_M2_C"

"I44_Bag_M2Mortar"

"I44_Bag_M2MortarBP"

The Ammo Crate Config portion of the "my_console_setup" that is currently working follows;

mando_airsupport_opt5_text = "Ammo Supply Options";
mando_airsupport_opt5_array = ["Basic Ammo", "AT & Explosives","Heavy Weapons Crate"];
mando_airsupport_opt5_action = 
{
     case "Basic Small Arms":
     {  
        mando_airsupport_magz = [["I44_20rd_762x63_Mix_M1918", 20],["I44_20rd_762x63_Tracer_M1918", 20],["I44_20rd_762x63_Ball_M1918", 20],["I44_20rd_762x63_AP_M1918", 20],["I44_50rd_762x63_Mix_M1919", 20],["I44_50rd_762x63_Tracer_M1919", 20],["I44_50rd_762x63_Ball_M1919", 20],["I44_50rd_762x63_AP_M1919", 20],["I44_7rd_1143x23_Ball_M1911", 20],["I44_15rd_762x33_Mix_M1Carbine", 20],["I44_15rd_762x33_Tracer_M1Carbine", 20],["I44_15rd_762x33_Ball_M1Carbine", 20],["I44_8rd_762x63_Mix_M1Garand", 20],["I44_8rd_762x63_Tracer_M1Garand", 20],["I44_8rd_762x63_Ball_M1Garand", 20],["I44_8rd_762x63_AP_M1Garand", 20],["I44_5rd_762x63_Mix_M1903", 20],["I44_5rd_762x63_Tracer_M1903", 20],["I44_5rd_762x63_Ball_M1903", 20],["I44_5rd_762x63_AP_M1903", 20],["I44_4xM19_12ga_00Buckshot_M37", 20],["I44_30rd_1143x23_Mix_M1A1Thompson", 20],["I44_30rd_1143x23_Tracer_M1A1Thompson", 20],["I44_30rd_1143x23_Ball_M1A1Thompson", 20],["I44_30rd_1143x23_Mix_M3Greasegun", 20],["I44_30rd_1143x23_Tracer_M3Greasegun", 20],["I44_30rd_1143x23_Ball_M3Greasegun", 20],["I44_RifleGrenade_M1Mk2", 20],["I44_RifleGrenade_SignalM17A1", 20],["I44_RifleGrenade_M17", 20],["I44_RifleGrenade_M9A1", 20],["I44_RifleGrenade_M1Mk2_M1903", 20],["I44_RifleGrenade_SignalM17A1_M1903", 20],["I44_RifleGrenade_M17_M1903", 20],["I44_HandGrenade_No82", 20],["I44_HandGrenade_Mk2", 20],["I44_HandGrenade_No36M", 20],["I44_SmokeGrenade_ANM8", 20],["I44_SmokeGrenade_M18Red", 20],["I44_SmokeGrenade_M18Green", 20],["I44_SmokeGrenade_M18Violet", 20],["I44_SmokeGrenade_M18Yellow", 20]];
        mando_airsupport_weap = [["I44_M1911A1", 4],["I44_M1Garand_M7", 2],["I44_M1A1Thompson", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
     };

     case "AT & Explosives":
     {
        mando_airsupport_magz = [["I44_Rocket_60mm_M6A1_M1A1Bazooka", 10],["I44_m2_flamethrower_mag", 2],["I44_Mine_AT_M1", 20],["I44_Mine_AT_GrenadeNo75", 10],["I44_Item_M37DemoKit", 10],["I44_Item_M37DemoKitHalf", 10],["I44_Item_M2DemoCharge", 20],["I44_Item_M1A1Bangalore", 10],["I44_throwable_M37", 10],["I44_throwable_M2", 10]];
        mando_airsupport_weap = [["I44_M1A1Bazooka", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
     };

     case "Mortar Crate":
     {
        mando_airsupport_magz = [["I44_250rd_762x63_Mix_M1919_mounted", 8],["I44_Shell_60L12_M302", 10],["I44_Shell_60L12_M49A2", 40],["I44_Shell_60L12_M83A1", 10]];
        mando_airsupport_weap = [["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
     };
  }; 
};

My coding skills are limited - I typically steal and modify what's already working. If someone knows how I could call a crate with the OA type Backpacks inside I would very much appreciate that help.

Thanks.

Theopolus, how are you running MMA? Are you running a server with MMA loaded on it? Does everyone playing need to have the same version? Are you using the .pbo or the script suite?

The reason I ask, is because it would be easy enough to add some code to the existing mando_airsupportdlg.sqf to make a new global variable for adding backpacks to the ammo crates. However, this could cause problems depending on how you are running this...

Share this post


Link to post
Share on other sites

Panther42,

We're all running the MMA and MMA_XEH pbo's.

As well, we have a dedicated server that is running the MMA stuff as well. That being said the only part of MMA that we are using in our I44 game is the air support console, so we could run our I44 game without the pbo's and just call the scripts as needed.

If it makes it easier to not run the pbo's and just add a set of scripts to each mission (the my_console_setup one having been modified to load OA Backpacks) I would be great with that.

Is that what you are suggesting?

I've included the part of the my_console_setup that has to do with configing the crates below;

mando_airsupport_opt5_text = "Ammo Supply Options";
mando_airsupport_opt5_array = ["Basic Ammo", "AT & Explosives","Heavy Weapons Crate"];
mando_airsupport_opt5_action = 
{
     case "Basic Small Arms":
     {  
        mando_airsupport_magz = [["I44_20rd_762x63_Mix_M1918", 20],["I44_20rd_762x63_Tracer_M1918", 20],["I44_20rd_762x63_Ball_M1918", 20],["I44_20rd_762x63_AP_M1918", 20],["I44_50rd_762x63_Mix_M1919", 20],["I44_50rd_762x63_Tracer_M1919", 20],["I44_50rd_762x63_Ball_M1919", 20],["I44_50rd_762x63_AP_M1919", 20],["I44_7rd_1143x23_Ball_M1911", 20],["I44_15rd_762x33_Mix_M1Carbine", 20],["I44_15rd_762x33_Tracer_M1Carbine", 20],["I44_15rd_762x33_Ball_M1Carbine", 20],["I44_8rd_762x63_Mix_M1Garand", 20],["I44_8rd_762x63_Tracer_M1Garand", 20],["I44_8rd_762x63_Ball_M1Garand", 20],["I44_8rd_762x63_AP_M1Garand", 20],["I44_5rd_762x63_Mix_M1903", 20],["I44_5rd_762x63_Tracer_M1903", 20],["I44_5rd_762x63_Ball_M1903", 20],["I44_5rd_762x63_AP_M1903", 20],["I44_4xM19_12ga_00Buckshot_M37", 20],["I44_30rd_1143x23_Mix_M1A1Thompson", 20],["I44_30rd_1143x23_Tracer_M1A1Thompson", 20],["I44_30rd_1143x23_Ball_M1A1Thompson", 20],["I44_30rd_1143x23_Mix_M3Greasegun", 20],["I44_30rd_1143x23_Tracer_M3Greasegun", 20],["I44_30rd_1143x23_Ball_M3Greasegun", 20],["I44_RifleGrenade_M1Mk2", 20],["I44_RifleGrenade_SignalM17A1", 20],["I44_RifleGrenade_M17", 20],["I44_RifleGrenade_M9A1", 20],["I44_RifleGrenade_M1Mk2_M1903", 20],["I44_RifleGrenade_SignalM17A1_M1903", 20],["I44_RifleGrenade_M17_M1903", 20],["I44_HandGrenade_No82", 20],["I44_HandGrenade_Mk2", 20],["I44_HandGrenade_No36M", 20],["I44_SmokeGrenade_ANM8", 20],["I44_SmokeGrenade_M18Red", 20],["I44_SmokeGrenade_M18Green", 20],["I44_SmokeGrenade_M18Violet", 20],["I44_SmokeGrenade_M18Yellow", 20]];
        mando_airsupport_weap = [["I44_M1911A1", 4],["I44_M1Garand_M7", 2],["I44_M1A1Thompson", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10],[this addBackpackCargoGlobal  "TK_ALICE_Pack_EP1", 4]];
     };

     case "AT & Explosives":
     {
        mando_airsupport_magz = [["I44_Rocket_60mm_M6A1_M1A1Bazooka", 10],["I44_m2_flamethrower_mag", 2],["I44_Mine_AT_M1", 20],["I44_Mine_AT_GrenadeNo75", 10],["I44_Item_M37DemoKit", 10],["I44_Item_M37DemoKitHalf", 10],["I44_Item_M2DemoCharge", 20],["I44_Item_M1A1Bangalore", 10],["I44_throwable_M37", 10],["I44_throwable_M2", 10]];
        mando_airsupport_weap = [["I44_M1A1Bazooka", 2],["I44_M2_flameThrower", 2],this addBackpackCargoGlobal ["I44_Backpack_M2flamethrower", 8],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10],this addBackpackCargoGlobal ["TK_ALICE_Pack_EP1", 4]];
     };

     case "Mortar Crate":
     {
        mando_airsupport_magz = [["I44_250rd_762x63_Mix_M1919_mounted", 8],["I44_Shell_60L12_M302", 10],["I44_Shell_60L12_M49A2", 40],["I44_Shell_60L12_M83A1", 10]];
        mando_airsupport_weap = [this addBackpackCargoGlobal ["I44_Bag_M1919A4", 2],this addBackpackCargoGlobal ["I44_Bag_Tripod_M2_C", 2],this addBackpackCargoGlobal ["I44_Bag_M2Mortar", 2],this addBackpackCargoGlobal ["I44_Bag_M2MortarBP", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10],this addBackpackCargoGlobal ["TK_ALICE_Pack_EP1", 4]];
     };
  }; 
};

// End of options setup dialog configuration

---------- Post added at 05:14 ---------- Previous post was at 04:54 ----------

Just insert the bombing code you have that works into the code like this:

mando_airsupport_carpetcode = 
{   
  private["_plane", "_targetpos", "_bombL", "_bombR"];
  _plane = _this select 0;
  _targetpos = _this select 1;

  while {(([getPos _plane select 0, getPos _plane select 1, 0] distance _targetpos) > 1200) && (alive _plane)} do
  {
     Sleep 1;
  };

  if ((alive _plane) && (local _plane)) then
  {      

     for "_i" from 0 to 7 do
     {
        _bombL = "500lb" createVehicle [0,0,900];
        _bombL attachTo [_plane,[-0.5,2.5,-5]];
        sleep 0.1;
        detach _bombL;

        _bombR = "500lb" createVehicle [0,0,900];
        _bombR attachTo [_plane,[0.5,2.5,-5]];
        sleep 0.1;
        detach _bombR;
        sleep 0.3;
     };
  };
};

The B-17 I believe is the one from the FEW mod. From this post I found, it doesn't seem to be set up correctly:

B-17

It's an older post, so maybe they have made some changes...

Is that "500lb" valid?

Thanks Panther,

I gave it a try my code for the carpet bombing now looks like this;

// Carpet bombing custom code global variable for I44_Plane_A_B17_AAF
mando_airsupport_carpetcode = 
{   
  private["_plane", "_targetpos", "_bombL", "_bombR"];
  _plane = _this select 0;
  _targetpos = _this select 1;

  while {(([getPos _plane select 0, getPos _plane select 1, 0] distance _targetpos) > 1200) && (alive _plane)} do
  {
     Sleep 1;
  };

  if ((alive _plane) && (local _plane)) then
  {      

     for "_i" from 0 to 7 do
     {
        _bombL = "Bo_GBU12_LGB" createVehicle [0,0,900];
        _bombL attachTo [_plane,[-0.5,2.5,-5]];
        sleep 0.1;
        detach _bombL;

        _bombR = "Bo_GBU12_LGB" createVehicle [0,0,900];
        _bombR attachTo [_plane,[0.5,2.5,-5]];
        sleep 0.1;
        detach _bombR;
        sleep 0.3;
     };
  };
};

the end result is a B17 that flies over the target and then goes home. ; (

I wondered about that classname as well "500lb" so i tried it as well as the bomb listed in the addon config file for the B17 "B17_500lb_bombs" and even the LGB from the stock game - ie. "Bo_GBU12_LGB". In all cases no bombs are spawned and the bomber just flies on by.

I even set up a sample mission with a trigger that just calls the script when the B17 reaches it's area - ie. "B17_1 exec "\CSJ_B17\scripts\bombem.sqf";". That doesn't work either.

I'm beginning to wonder if it's broken.

Any thoughts?

Share this post


Link to post
Share on other sites

your code for the trigger should be something like this:

null = [b17_1] execVM ...bla bla (your script is .sqf, not .sqs)

If you find the right bomb, the script should work. As I said, I am not familiar with the I44 mod, but am becoming interested after doing some reading... At one point I was a modder(tinkerer really) with Company of Heroes and was into the WW II thing.

I will see if I can find a working bombing script somewhere on these forums. Again, I don't know the working classnames of bombs that work in I44.

I will also post a mando_airsupportdlg.sqf which supports backpacks...

If you use the same carpet bombing code in regular Arma2/OA, and put in a known working bomb, does it work? I just put a new mobo in my computer, and have not installed the game again, so I can't test

Mediafire is not cooperating right now, can't upload the mando_airsupportdlg.sqf...

Try this carpet bombing code:

// Carpet bombing custom code global variable for I44_Plane_A_B17_AAF
mando_airsupport_carpetcode = 
{   
  private["_plane", "_targetpos", "_bombL", "_bombR"];
  _plane = _this select 0;
  _targetpos = _this select 1;

  while {(([getPos _plane select 0, getPos _plane select 1, 0] distance _targetpos) > 1200) && (alive _plane)} do
  {
     Sleep 1;
  };

  if (alive _plane) then
  {      

     for "_i" from 0 to 7 do
     {
_bombL = "Bo_Mk82" createvehicle [getpos _plane select 0,getpos _plane select 1,3000]; 	//make the bomb 
_bombL setpos (_plane modelToWorld [-0.5,2.5,-5]);
_bombL setdir getdir _plane;
_bombL setVelocity [((velocity _plane) select 0)/3, ((velocity _plane) select 1)/3,-30];
sleep 0.2;
_bombR = "Bo_Mk82" createvehicle [getpos _plane select 0,getpos _plane select 1,3000]; 	//make the bomb 
_bombR setpos (_plane modelToWorld [0.5,2.5,-5]);
_bombR setdir getdir _plane;
_bombR setVelocity [((velocity _plane) select 0)/3, ((velocity _plane) select 1)/3,-30];
sleep 0.2;
     };
  };
};

Ok, here's a link to an edited mando_airsupportdlg.sqf:

pack added mando_airsupportdlg.sqf

The file is named mando_airsupportdlg1.sqf, remove the number 1 from the file name. If this doesn't work right in MP, I may need to change to addBackpackCargoGlobal...

Let me know if this works, again, I have not had time to re-install Arma2/OA after my motherboard decided to die(7 years, I guess I got my monies worth :))

The global variable added is mando_airsupport_pack

Same requirement as far as entering in your console setup: mando_airsupport_pack = array of pairs of [packClassName,quantity] in case you want to add backpack to the default content of ammo boxes.

mando_airsupport_opt5_text = "Ammo Supply Options";
mando_airsupport_opt5_array = ["Basic Ammo", "AT & Explosives","Heavy Weapons Crate"];
mando_airsupport_opt5_action = 
{
     case "Basic Small Arms":
     {  
        mando_airsupport_magz = [["I44_20rd_762x63_Mix_M1918", 20],["I44_20rd_762x63_Tracer_M1918", 20],["I44_20rd_762x63_Ball_M1918", 20],["I44_20rd_762x63_AP_M1918", 20],["I44_50rd_762x63_Mix_M1919", 20],["I44_50rd_762x63_Tracer_M1919", 20],["I44_50rd_762x63_Ball_M1919", 20],["I44_50rd_762x63_AP_M1919", 20],["I44_7rd_1143x23_Ball_M1911", 20],["I44_15rd_762x33_Mix_M1Carbine", 20],["I44_15rd_762x33_Tracer_M1Carbine", 20],["I44_15rd_762x33_Ball_M1Carbine", 20],["I44_8rd_762x63_Mix_M1Garand", 20],["I44_8rd_762x63_Tracer_M1Garand", 20],["I44_8rd_762x63_Ball_M1Garand", 20],["I44_8rd_762x63_AP_M1Garand", 20],["I44_5rd_762x63_Mix_M1903", 20],["I44_5rd_762x63_Tracer_M1903", 20],["I44_5rd_762x63_Ball_M1903", 20],["I44_5rd_762x63_AP_M1903", 20],["I44_4xM19_12ga_00Buckshot_M37", 20],["I44_30rd_1143x23_Mix_M1A1Thompson", 20],["I44_30rd_1143x23_Tracer_M1A1Thompson", 20],["I44_30rd_1143x23_Ball_M1A1Thompson", 20],["I44_30rd_1143x23_Mix_M3Greasegun", 20],["I44_30rd_1143x23_Tracer_M3Greasegun", 20],["I44_30rd_1143x23_Ball_M3Greasegun", 20],["I44_RifleGrenade_M1Mk2", 20],["I44_RifleGrenade_SignalM17A1", 20],["I44_RifleGrenade_M17", 20],["I44_RifleGrenade_M9A1", 20],["I44_RifleGrenade_M1Mk2_M1903", 20],["I44_RifleGrenade_SignalM17A1_M1903", 20],["I44_RifleGrenade_M17_M1903", 20],["I44_HandGrenade_No82", 20],["I44_HandGrenade_Mk2", 20],["I44_HandGrenade_No36M", 20],["I44_SmokeGrenade_ANM8", 20],["I44_SmokeGrenade_M18Red", 20],["I44_SmokeGrenade_M18Green", 20],["I44_SmokeGrenade_M18Violet", 20],["I44_SmokeGrenade_M18Yellow", 20]];
        mando_airsupport_weap = [["I44_M1911A1", 4],["I44_M1Garand_M7", 2],["I44_M1A1Thompson", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
     };

     case "AT & Explosives":
     {
        mando_airsupport_magz = [["I44_Rocket_60mm_M6A1_M1A1Bazooka", 10],["I44_m2_flamethrower_mag", 2],["I44_Mine_AT_M1", 20],["I44_Mine_AT_GrenadeNo75", 10],["I44_Item_M37DemoKit", 10],["I44_Item_M37DemoKitHalf", 10],["I44_Item_M2DemoCharge", 20],["I44_Item_M1A1Bangalore", 10],["I44_throwable_M37", 10],["I44_throwable_M2", 10]];
        mando_airsupport_weap = [["I44_M1A1Bazooka", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
       [color="#FF0000"] mando_airsupport_pack = [["I44_Backpack_M2flamethrower", 2],["I44_Bag_M1919A4", 4],["TK_ALICE_Pack_EP1",4],["I44_Bag_M2Mortar",2]];[/color]
     };

     case "Mortar Crate":
     {
        mando_airsupport_magz = [["I44_250rd_762x63_Mix_M1919_mounted", 8],["I44_Shell_60L12_M302", 10],["I44_Shell_60L12_M49A2", 40],["I44_Shell_60L12_M83A1", 10]];
        mando_airsupport_weap = [["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
     };
  }; 
};

Edited by panther42
added link to mando_airsupportdlg.sqf

Share this post


Link to post
Share on other sites

Panther42,

Thanks for all the hard work. I have only just had a chance to try it.

Unfortunately, something isn't working on my end. I setup an "addon-less" verions of the mission using Mando's mission "mma_script_suite.utes" as an example (basically following the instructions in the MMA Readme). I replaced Mando's original "mando_airsupportdlg.sqf" with the modified version you made (removing the '1' to ensure that it would load when called). The unit has a trigger that calls for;

delta_1 addAction ["Air Support console","mando_missiles\mando_bombs\mando_airsupportdlg.sqf"]

I modified the my_console_setup as follows;

[spoiler]mando_airsupport_opt5_text = "Ammo Supply Options";
mando_airsupport_opt5_array = ["Basic Ammo", "AT & Explosives","Heavy Weapons Crate"];
mando_airsupport_opt5_action = 
{
     case "Basic Ammo":
     {  
        mando_airsupport_magz = [["I44_20rd_762x63_Mix_M1918", 20],["I44_20rd_762x63_Tracer_M1918", 20],["I44_20rd_762x63_Ball_M1918", 20],["I44_20rd_762x63_AP_M1918", 20],["I44_50rd_762x63_Mix_M1919", 20],["I44_50rd_762x63_Tracer_M1919", 20],["I44_50rd_762x63_Ball_M1919", 20],["I44_50rd_762x63_AP_M1919", 20],["I44_7rd_1143x23_Ball_M1911", 20],["I44_15rd_762x33_Mix_M1Carbine", 20],["I44_15rd_762x33_Tracer_M1Carbine", 20],["I44_15rd_762x33_Ball_M1Carbine", 20],["I44_8rd_762x63_Mix_M1Garand", 20],["I44_8rd_762x63_Tracer_M1Garand", 20],["I44_8rd_762x63_Ball_M1Garand", 20],["I44_8rd_762x63_AP_M1Garand", 20],["I44_5rd_762x63_Mix_M1903", 20],["I44_5rd_762x63_Tracer_M1903", 20],["I44_5rd_762x63_Ball_M1903", 20],["I44_5rd_762x63_AP_M1903", 20],["I44_4xM19_12ga_00Buckshot_M37", 20],["I44_30rd_1143x23_Mix_M1A1Thompson", 20],["I44_30rd_1143x23_Tracer_M1A1Thompson", 20],["I44_30rd_1143x23_Ball_M1A1Thompson", 20],["I44_30rd_1143x23_Mix_M3Greasegun", 20],["I44_30rd_1143x23_Tracer_M3Greasegun", 20],["I44_30rd_1143x23_Ball_M3Greasegun", 20],["I44_RifleGrenade_M1Mk2", 20],["I44_RifleGrenade_SignalM17A1", 20],["I44_RifleGrenade_M17", 20],["I44_RifleGrenade_M9A1", 20],["I44_RifleGrenade_M1Mk2_M1903", 20],["I44_RifleGrenade_SignalM17A1_M1903", 20],["I44_RifleGrenade_M17_M1903", 20],["I44_HandGrenade_No82", 20],["I44_HandGrenade_Mk2", 20],["I44_HandGrenade_No36M", 20],["I44_SmokeGrenade_ANM8", 20],["I44_SmokeGrenade_M18Red", 20],["I44_SmokeGrenade_M18Green", 20],["I44_SmokeGrenade_M18Violet", 20],["I44_SmokeGrenade_M18Yellow", 20]];
        mando_airsupport_weap = [["I44_M1911A1", 4],["I44_M1Garand_M7", 2],["I44_M1A1Thompson", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
        mando_airsupport_pack = [["TK_ALICE_Pack_EP1",4]];
     };

     case "AT & Explosives":
     {
        mando_airsupport_magz = [["I44_Rocket_60mm_M6A1_M1A1Bazooka", 10],["I44_m2_flamethrower_mag", 2],["I44_Mine_AT_M1", 20],["I44_Mine_AT_GrenadeNo75", 10],["I44_Item_M37DemoKit", 10],["I44_Item_M37DemoKitHalf", 10],["I44_Item_M2DemoCharge", 20],["I44_Item_M1A1Bangalore", 10],["I44_throwable_M37", 10],["I44_throwable_M2", 10]];
        mando_airsupport_weap = [["I44_M1A1Bazooka", 2],["I44_M2_flameThrower", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
        mando_airsupport_pack = [["I44_Backpack_M2flamethrower", 2],["TK_ALICE_Pack_EP1",4]];

     };

     case "Heavy Weapons Crate":
     {
        mando_airsupport_magz = [["I44_250rd_762x63_Mix_M1919_mounted", 8],["I44_Shell_60L12_M302", 10],["I44_Shell_60L12_M49A2", 40],["I44_Shell_60L12_M83A1", 10]];
        mando_airsupport_weap = [["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
        mando_airsupport_pack = [["I44_Bag_M1919A4", 2],["I44_Bag_Tripod_M2_C", 2],["I44_Bag_M2Mortar",2],["I44_Bag_M2MortarBP", 2],["TK_ALICE_Pack_EP1", 4]];
     };
  }; 
};[/spoiler]

I launch the game without loading the Mando addons (MMA, MMA_XEH) and everything seems to work except when i call for ammo resupply the crates that are provided don't have any of the i44 gear - basically it's not loading the pre-config'd ammo crates in the code above.

Can you see a step that I've missed?

Also, I tried the B17 Carpet Code that you previously provided, it's still not dropping bombs but I've decided to chill on that for a while - read that GNAT is re-doing the planes for I44 and have a feeling that once he's done that, the more traditional Carpet Bombing code that Mando provided may work.

Thanks for all your help and if you can see something that I missed or think of something different to try to make the backpacks work with ammo supply that would be great.

Theopolus

Share this post


Link to post
Share on other sites

Theopolus, do you have my_console_setup.sqf in your mission folder?

I just run []execVM"my_console_setup.sqf"; in my init file, which has ["MMA Air Support Console", {"Laserdesignator" in weapons player}] execVM "mando_missiles\mando_bombs\mando_giveme_console.sqf"; at the bottom.

This adds the action automatically to anyone with a "Laserdesignator"

The way you are doing this, I believe you would need the addaction to launch my_console_setup.sqf instead of "mando_missiles\mando_bombs\mando_airsupportdlg.sqf"

What does you complete my_console_setup.sqf look like? Can you post?

I will dig through the files a bit...

On second thought, this should work like you have it as long as []execVM"my_console_setup.sqf"; is in your init.sqf file

Edited by panther42

Share this post


Link to post
Share on other sites

Panther42,

"my_console_setup" is in the root of my mission.

My complete my_console_setup.sqf follows;

Sleep 1;
//Air Support Console Setup - I44 : USA - Woodland - Full Support
// these lines required to customize Mando Air Support Console
// Init.sqf
mando_support_left_WEST = 16;
mando_support_left_ca_WEST = 8;
mando_support_left_pa_WEST = 8;
mando_support_left_rc_WEST = 8;
mando_support_left_am_WEST = 8;
mando_support_left_ve_WEST = 0;
mando_support_left_re_WEST = 8;
mando_support_left_cp_WEST = 8;
mando_support_left_ev_WEST = 0;
mando_support_left_la_WEST = 0;
mando_support_left_cb_WEST = 8;
mando_airsupport_type = "I44_Plane_A_P38_M64_AAF"; 
mando_airsupport_type_ca = "I44_Plane_A_P38_HVAR_AAF";
mando_airsupport_type_pa = "I44_Plane_A_C47A_AAF";
mando_airsupport_type_pal = "";
mando_airsupport_type_rc = "I44_Plane_A_P51D_AAF";
mando_airsupport_type_ev = "";
mando_airsupport_type_am = "I44_Plane_A_C47A_AAF";
mando_airsupport_type_ve = ""; 
mando_airsupport_type_cp = "I44_Plane_A_P51D_AAF";
mando_airsupport_type_la = "";
mando_airsupport_type_cb = "I44_Plane_A_B17_AAF";
mando_airsupport_max_cas = 3;

mando_reco_cam_pos = [0,3,-2];
mando_airsupport_cmissile = ship1;

mando_airsupport_armedrec = false;
mando_airsupport_armedrec_man = false; // Set it to true for manual guidance for missiles fired from armed reco planes
mando_airsupport_armedrec_max = 16;
mando_airsupport_bomb_altmax = 1000;
mando_ingress_dir = 45;
mando_airsupport_bomb_alt = 150;
mando_airsupport_cmissile_pos = [0,-4, 1];
mando_airsupport_cmissile_alt = 300;

mando_airsupport_jump = true; // reinforcements and airborne assault will land and disembark instead of jump from chopper.

mando_support_no_cas = false;
mando_support_no_br = false;
mando_support_no_ff = false;
mando_support_no_sa = true;
mando_support_no_gs = false;
mando_support_no_ab = false;
mando_support_no_cm = true;
mando_support_no_sat = true;
mando_support_no_rc = false;
mando_support_no_ev = true;
mando_support_no_la = true;
mando_support_no_am = false;
mando_support_no_ve = true;
mando_support_no_re = false;
mando_support_no_cp = false;
mando_support_no_cb = false;

// Info text displayed in the setup / info dialog (this is an structured text)
mando_airsupport_info = "Mission info: <br />Tray altitude between 190m, and 250m for air strikes.<br /><br /><t color='#ff0000'>Objetive:</t><br />Air support will be limited in AO<br />Some ammo resupply is available as well as reinforcements (all the setup is into init.sqf script).<br /><t color='#ffAA00'></t><br /><br />Note that the options you see below are fully customizable using globals (same as this text block), check online help for more info.";

// Setup dialog options 1, 2, 3, 4 and 5 dont set any of these variables if you dont want special options
mando_airsupport_opt1_text = "Gunships Support Type";
mando_airsupport_opt1_array = ["I44_P47A", "I44_Plane_A_P38_HVAR_AAF"];
mando_airsupport_opt1_action = 
{
  private["_item"];
  _item = _this select 0;
  mando_airsupport_type_ca = _item;
};

mando_airsupport_opt2_text = "Airborne Assault Options";
mando_airsupport_opt2_array = ["Fire Team", "Anti Tank Team","Commandos"];
mando_airsupport_opt2_action = 
{
  private["_item"];
  _item = _this select 0;
  switch (_item) do
  {
     case "Fire Team":
     {
        mando_support_infantrytype = ["I44_Man_A_Army_AB_82_CO_M1A1Carbine", "I44_Man_A_Army_AB_82_NCO_M1A1Thompson", "I44_Man_A_Army_AB_82_Medic","I44_Man_A_Army_AB_82_M1919A4","I44_Man_A_Army_AB_82_GunCrew_M1A1Carbine","I44_Man_A_Army_AB_82_GunCrew_M1A1Carbine","I44_Man_A_Army_AB_82_M1Garand","I44_Man_A_Army_AB_82_M1Garand","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_RTO_M1A1Carbine"];
     };

     case "Anti Tank Team":
     {
        mando_support_infantrytype = ["I44_Man_A_Army_AB_82_CO_M1A1Carbine", "I44_Man_A_Army_AB_82_NCO_M1A1Thompson", "I44_Man_A_Army_AB_82_Medic","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_RTO_M1A1Carbine"];
     };

     case "Commandos":
     {
        mando_support_infantrytype = ["I44_Man_B_Army_Commando_CO_StenMk2S", "I44_Man_B_Army_Commando_NCO_StenMk2S", "I44_Man_B_Army_Commando_DeLisle","I44_Man_B_Army_Commando_DeLisle","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S"];
     };
  };
};

mando_airsupport_opt3_text = "Reinforcement Options";
mando_airsupport_opt3_array = ["Fire Team", "Anti Tank Team","Commandos"];
mando_airsupport_opt3_action = 
{
  private["_item"];
  _item = _this select 0;
  switch (_item) do
  {
     case "Fire Team":
     {
        mando_support_infantrytype_re = ["I44_Man_A_Army_AB_82_CO_M1A1Carbine", "I44_Man_A_Army_AB_82_NCO_M1A1Thompson", "I44_Man_A_Army_AB_82_Medic","I44_Man_A_Army_AB_82_M1919A4","I44_Man_A_Army_AB_82_GunCrew_M1A1Carbine","I44_Man_A_Army_AB_82_GunCrew_M1A1Carbine","I44_Man_A_Army_AB_82_M1Garand","I44_Man_A_Army_AB_82_M1Garand","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_RTO_M1A1Carbine"];
     };

     case "Anti Tank Team":
     {
        mando_support_infantrytype_re = ["I44_Man_A_Army_AB_82_NCO_M1A1Thompson", "I44_Man_A_Army_AB_82_Medic","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_RTO_M1A1Carbine"];
     };

     case "Commandos":
     {
        mando_support_infantrytype_re = ["I44_Man_B_Army_Commando_NCO_StenMk2S", "I44_Man_B_Army_Commando_DeLisle","I44_Man_B_Army_Commando_DeLisle","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S"];
     };
  };
};

mando_airsupport_opt4_text = "No Vehicle Supply";
mando_airsupport_opt4_array = ["","","",""];
mando_airsupport_opt4_action = 
{
  private["_item"];
  _item = _this select 0;
  mando_airsupport_type_vehicle = _item;
};

mando_airsupport_opt5_text = "Ammo Supply Options";
mando_airsupport_opt5_array = ["Basic Ammo", "AT & Explosives","Heavy Weapons Crate"];
mando_airsupport_opt5_action = 
{
     case "Basic Small Arms":
     {  
        mando_airsupport_magz = [["I44_20rd_762x63_Mix_M1918", 20],["I44_20rd_762x63_Tracer_M1918", 20],["I44_20rd_762x63_Ball_M1918", 20],["I44_20rd_762x63_AP_M1918", 20],["I44_50rd_762x63_Mix_M1919", 20],["I44_50rd_762x63_Tracer_M1919", 20],["I44_50rd_762x63_Ball_M1919", 20],["I44_50rd_762x63_AP_M1919", 20],["I44_7rd_1143x23_Ball_M1911", 20],["I44_15rd_762x33_Mix_M1Carbine", 20],["I44_15rd_762x33_Tracer_M1Carbine", 20],["I44_15rd_762x33_Ball_M1Carbine", 20],["I44_8rd_762x63_Mix_M1Garand", 20],["I44_8rd_762x63_Tracer_M1Garand", 20],["I44_8rd_762x63_Ball_M1Garand", 20],["I44_8rd_762x63_AP_M1Garand", 20],["I44_5rd_762x63_Mix_M1903", 20],["I44_5rd_762x63_Tracer_M1903", 20],["I44_5rd_762x63_Ball_M1903", 20],["I44_5rd_762x63_AP_M1903", 20],["I44_4xM19_12ga_00Buckshot_M37", 20],["I44_30rd_1143x23_Mix_M1A1Thompson", 20],["I44_30rd_1143x23_Tracer_M1A1Thompson", 20],["I44_30rd_1143x23_Ball_M1A1Thompson", 20],["I44_30rd_1143x23_Mix_M3Greasegun", 20],["I44_30rd_1143x23_Tracer_M3Greasegun", 20],["I44_30rd_1143x23_Ball_M3Greasegun", 20],["I44_RifleGrenade_M1Mk2", 20],["I44_RifleGrenade_SignalM17A1", 20],["I44_RifleGrenade_M17", 20],["I44_RifleGrenade_M9A1", 20],["I44_RifleGrenade_M1Mk2_M1903", 20],["I44_RifleGrenade_SignalM17A1_M1903", 20],["I44_RifleGrenade_M17_M1903", 20],["I44_HandGrenade_No82", 20],["I44_HandGrenade_Mk2", 20],["I44_HandGrenade_No36M", 20],["I44_SmokeGrenade_ANM8", 20],["I44_SmokeGrenade_M18Red", 20],["I44_SmokeGrenade_M18Green", 20],["I44_SmokeGrenade_M18Violet", 20],["I44_SmokeGrenade_M18Yellow", 20]];
        mando_airsupport_weap = [["I44_M1911A1", 4],["I44_M1Garand_M7", 2],["I44_M1A1Thompson", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
        mando_airsupport_pack = [["TK_ALICE_Pack_EP1",4]];
     };

     case "AT & Explosives":
     {
        mando_airsupport_magz = [["I44_Rocket_60mm_M6A1_M1A1Bazooka", 10],["I44_m2_flamethrower_mag", 2],["I44_Mine_AT_M1", 20],["I44_Mine_AT_GrenadeNo75", 10],["I44_Item_M37DemoKit", 10],["I44_Item_M37DemoKitHalf", 10],["I44_Item_M2DemoCharge", 20],["I44_Item_M1A1Bangalore", 10],["I44_throwable_M37", 10],["I44_throwable_M2", 10]];
        mando_airsupport_weap = [["I44_M1A1Bazooka", 2],["I44_M2_flameThrower", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
        mando_airsupport_pack = [["I44_Backpack_M2flamethrower", 2],["TK_ALICE_Pack_EP1",4]];

     };

     case "Mortar Crate":
     {
        mando_airsupport_magz = [["I44_250rd_762x63_Mix_M1919_mounted", 8],["I44_Shell_60L12_M302", 10],["I44_Shell_60L12_M49A2", 40],["I44_Shell_60L12_M83A1", 10]];
        mando_airsupport_weap = [["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
        mando_airsupport_pack = [["I44_Bag_M1919A4", 2],["I44_Bag_Tripod_M2_C", 2],["I44_Bag_M2Mortar",2],["I44_Bag_M2MortarBP", 2],["TK_ALICE_Pack_EP1", 4]];
     };
  }; 
};

// Carpet bombing custom code global variable for I44_Plane_A_B17_AAF
mando_airsupport_carpetcode = 
{   
  private["_plane", "_targetpos", "_bombL", "_bombR"];
  _plane = _this select 0;
  _targetpos = _this select 1;

  while {(([getPos _plane select 0, getPos _plane select 1, 0] distance _targetpos) > 1200) && (alive _plane)} do
  {
     Sleep 1;
  };

  if (alive _plane) then
  {      

     for "_i" from 0 to 7 do
     {
_bombL = "Bo_Mk82" createvehicle [getpos _plane select 0,getpos _plane select 1,3000]; 	//make the bomb 
_bombL setpos (_plane modelToWorld [-0.5,2.5,-5]);
_bombL setdir getdir _plane;
_bombL setVelocity [((velocity _plane) select 0)/3, ((velocity _plane) select 1)/3,-30];
sleep 0.2;
_bombR = "Bo_Mk82" createvehicle [getpos _plane select 0,getpos _plane select 1,3000]; 	//make the bomb 
_bombR setpos (_plane modelToWorld [0.5,2.5,-5]);
_bombR setdir getdir _plane;
_bombR setVelocity [((velocity _plane) select 0)/3, ((velocity _plane) select 1)/3,-30];
sleep 0.2;
     };
  };
};

// End of options setup dialog configuration


["MMA Air Support Console", {(typeOf vehicle player == "LAV25_HQ") && (player == driver vehicle player)}]execVM"mando_missiles\mando_bombs\mando_giveme_console.sqf";

Ok, I just got my head around it - the way you're doing it would mean that if a player had some item - like say the Radio Backpack from I44 "I44_Bag_ABRadio" that I could set up the Init file so that that player would automatically have the Air Support Console option added to the menu.

What would I have to do to have the command look for the Backpack rather than a weapon?

Theopolus.

Share this post


Link to post
Share on other sites

maybe try:

["MMA Air Support Console", {unitBackpack player == "I44_Bag_ABRadio"}] execVM "mando_missiles\mando_bombs\mando_giveme_console.sqf";

for whatever reason, this forum is separating the s and q in .sqf...

just make sure []execVM"my_console_setup.sqf"; is in your init.sqf file

uhg...ok try this:

["MMA Air Support Console", {typeOf unitBackpack player == "I44_Bag_ABRadio"}] execVM "mando_missiles\mando_bombs\mando_giveme_console.sqf";

So your my_console_setup.sqf would look like this:

Sleep 1;
//Air Support Console Setup - I44 : USA - Woodland - Full Support
// these lines required to customize Mando Air Support Console
// Init.sqf
mando_support_left_WEST = 16;
mando_support_left_ca_WEST = 8;
mando_support_left_pa_WEST = 8;
mando_support_left_rc_WEST = 8;
mando_support_left_am_WEST = 8;
mando_support_left_ve_WEST = 0;
mando_support_left_re_WEST = 8;
mando_support_left_cp_WEST = 8;
mando_support_left_ev_WEST = 0;
mando_support_left_la_WEST = 0;
mando_support_left_cb_WEST = 8;
mando_airsupport_type = "I44_Plane_A_P38_M64_AAF"; 
mando_airsupport_type_ca = "I44_Plane_A_P38_HVAR_AAF";
mando_airsupport_type_pa = "I44_Plane_A_C47A_AAF";
mando_airsupport_type_pal = "";
mando_airsupport_type_rc = "I44_Plane_A_P51D_AAF";
mando_airsupport_type_ev = "";
mando_airsupport_type_am = "I44_Plane_A_C47A_AAF";
mando_airsupport_type_ve = ""; 
mando_airsupport_type_cp = "I44_Plane_A_P51D_AAF";
mando_airsupport_type_la = "";
mando_airsupport_type_cb = "I44_Plane_A_B17_AAF";
mando_airsupport_max_cas = 3;

mando_reco_cam_pos = [0,3,-2];
mando_airsupport_cmissile = ship1;

mando_airsupport_armedrec = false;
mando_airsupport_armedrec_man = false; // Set it to true for manual guidance for missiles fired from armed reco planes
mando_airsupport_armedrec_max = 16;
mando_airsupport_bomb_altmax = 1000;
mando_ingress_dir = 45;
mando_airsupport_bomb_alt = 150;
mando_airsupport_cmissile_pos = [0,-4, 1];
mando_airsupport_cmissile_alt = 300;

mando_airsupport_jump = true; // reinforcements and airborne assault will land and disembark instead of jump from chopper.

mando_support_no_cas = false;
mando_support_no_br = false;
mando_support_no_ff = false;
mando_support_no_sa = true;
mando_support_no_gs = false;
mando_support_no_ab = false;
mando_support_no_cm = true;
mando_support_no_sat = true;
mando_support_no_rc = false;
mando_support_no_ev = true;
mando_support_no_la = true;
mando_support_no_am = false;
mando_support_no_ve = true;
mando_support_no_re = false;
mando_support_no_cp = false;
mando_support_no_cb = false;

// Info text displayed in the setup / info dialog (this is an structured text)
mando_airsupport_info = "Mission info: <br />Tray altitude between 190m, and 250m for air strikes.<br /><br /><t color='#ff0000'>Objetive:</t><br />Air support will be limited in AO<br />Some ammo resupply is available as well as reinforcements (all the setup is into init.sqf script).<br /><t color='#ffAA00'></t><br /><br />Note that the options you see below are fully customizable using globals (same as this text block), check online help for more info.";

// Setup dialog options 1, 2, 3, 4 and 5 dont set any of these variables if you dont want special options
mando_airsupport_opt1_text = "Gunships Support Type";
mando_airsupport_opt1_array = ["I44_P47A", "I44_Plane_A_P38_HVAR_AAF"];
mando_airsupport_opt1_action = 
{
  private["_item"];
  _item = _this select 0;
  mando_airsupport_type_ca = _item;
};

mando_airsupport_opt2_text = "Airborne Assault Options";
mando_airsupport_opt2_array = ["Fire Team", "Anti Tank Team","Commandos"];
mando_airsupport_opt2_action = 
{
  private["_item"];
  _item = _this select 0;
  switch (_item) do
  {
     case "Fire Team":
     {
        mando_support_infantrytype = ["I44_Man_A_Army_AB_82_CO_M1A1Carbine", "I44_Man_A_Army_AB_82_NCO_M1A1Thompson", "I44_Man_A_Army_AB_82_Medic","I44_Man_A_Army_AB_82_M1919A4","I44_Man_A_Army_AB_82_GunCrew_M1A1Carbine","I44_Man_A_Army_AB_82_GunCrew_M1A1Carbine","I44_Man_A_Army_AB_82_M1Garand","I44_Man_A_Army_AB_82_M1Garand","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_RTO_M1A1Carbine"];
     };

     case "Anti Tank Team":
     {
        mando_support_infantrytype = ["I44_Man_A_Army_AB_82_CO_M1A1Carbine", "I44_Man_A_Army_AB_82_NCO_M1A1Thompson", "I44_Man_A_Army_AB_82_Medic","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_RTO_M1A1Carbine"];
     };

     case "Commandos":
     {
        mando_support_infantrytype = ["I44_Man_B_Army_Commando_CO_StenMk2S", "I44_Man_B_Army_Commando_NCO_StenMk2S", "I44_Man_B_Army_Commando_DeLisle","I44_Man_B_Army_Commando_DeLisle","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S"];
     };
  };
};

mando_airsupport_opt3_text = "Reinforcement Options";
mando_airsupport_opt3_array = ["Fire Team", "Anti Tank Team","Commandos"];
mando_airsupport_opt3_action = 
{
  private["_item"];
  _item = _this select 0;
  switch (_item) do
  {
     case "Fire Team":
     {
        mando_support_infantrytype_re = ["I44_Man_A_Army_AB_82_CO_M1A1Carbine", "I44_Man_A_Army_AB_82_NCO_M1A1Thompson", "I44_Man_A_Army_AB_82_Medic","I44_Man_A_Army_AB_82_M1919A4","I44_Man_A_Army_AB_82_GunCrew_M1A1Carbine","I44_Man_A_Army_AB_82_GunCrew_M1A1Carbine","I44_Man_A_Army_AB_82_M1Garand","I44_Man_A_Army_AB_82_M1Garand","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_RTO_M1A1Carbine"];
     };

     case "Anti Tank Team":
     {
        mando_support_infantrytype_re = ["I44_Man_A_Army_AB_82_NCO_M1A1Thompson", "I44_Man_A_Army_AB_82_Medic","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_RTO_M1A1Carbine"];
     };

     case "Commandos":
     {
        mando_support_infantrytype_re = ["I44_Man_B_Army_Commando_NCO_StenMk2S", "I44_Man_B_Army_Commando_DeLisle","I44_Man_B_Army_Commando_DeLisle","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S"];
     };
  };
};

mando_airsupport_opt4_text = "No Vehicle Supply";
mando_airsupport_opt4_array = ["","","",""];
mando_airsupport_opt4_action = 
{
  private["_item"];
  _item = _this select 0;
  mando_airsupport_type_vehicle = _item;
};

mando_airsupport_opt5_text = "Ammo Supply Options";
mando_airsupport_opt5_array = ["Basic Ammo", "AT & Explosives","Heavy Weapons Crate"];
mando_airsupport_opt5_action = 
{
     case "Basic Small Arms":
     {  
        mando_airsupport_magz = [["I44_20rd_762x63_Mix_M1918", 20],["I44_20rd_762x63_Tracer_M1918", 20],["I44_20rd_762x63_Ball_M1918", 20],["I44_20rd_762x63_AP_M1918", 20],["I44_50rd_762x63_Mix_M1919", 20],["I44_50rd_762x63_Tracer_M1919", 20],["I44_50rd_762x63_Ball_M1919", 20],["I44_50rd_762x63_AP_M1919", 20],["I44_7rd_1143x23_Ball_M1911", 20],["I44_15rd_762x33_Mix_M1Carbine", 20],["I44_15rd_762x33_Tracer_M1Carbine", 20],["I44_15rd_762x33_Ball_M1Carbine", 20],["I44_8rd_762x63_Mix_M1Garand", 20],["I44_8rd_762x63_Tracer_M1Garand", 20],["I44_8rd_762x63_Ball_M1Garand", 20],["I44_8rd_762x63_AP_M1Garand", 20],["I44_5rd_762x63_Mix_M1903", 20],["I44_5rd_762x63_Tracer_M1903", 20],["I44_5rd_762x63_Ball_M1903", 20],["I44_5rd_762x63_AP_M1903", 20],["I44_4xM19_12ga_00Buckshot_M37", 20],["I44_30rd_1143x23_Mix_M1A1Thompson", 20],["I44_30rd_1143x23_Tracer_M1A1Thompson", 20],["I44_30rd_1143x23_Ball_M1A1Thompson", 20],["I44_30rd_1143x23_Mix_M3Greasegun", 20],["I44_30rd_1143x23_Tracer_M3Greasegun", 20],["I44_30rd_1143x23_Ball_M3Greasegun", 20],["I44_RifleGrenade_M1Mk2", 20],["I44_RifleGrenade_SignalM17A1", 20],["I44_RifleGrenade_M17", 20],["I44_RifleGrenade_M9A1", 20],["I44_RifleGrenade_M1Mk2_M1903", 20],["I44_RifleGrenade_SignalM17A1_M1903", 20],["I44_RifleGrenade_M17_M1903", 20],["I44_HandGrenade_No82", 20],["I44_HandGrenade_Mk2", 20],["I44_HandGrenade_No36M", 20],["I44_SmokeGrenade_ANM8", 20],["I44_SmokeGrenade_M18Red", 20],["I44_SmokeGrenade_M18Green", 20],["I44_SmokeGrenade_M18Violet", 20],["I44_SmokeGrenade_M18Yellow", 20]];
        mando_airsupport_weap = [["I44_M1911A1", 4],["I44_M1Garand_M7", 2],["I44_M1A1Thompson", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
        mando_airsupport_pack = [["TK_ALICE_Pack_EP1",4]];
     };

     case "AT & Explosives":
     {
        mando_airsupport_magz = [["I44_Rocket_60mm_M6A1_M1A1Bazooka", 10],["I44_m2_flamethrower_mag", 2],["I44_Mine_AT_M1", 20],["I44_Mine_AT_GrenadeNo75", 10],["I44_Item_M37DemoKit", 10],["I44_Item_M37DemoKitHalf", 10],["I44_Item_M2DemoCharge", 20],["I44_Item_M1A1Bangalore", 10],["I44_throwable_M37", 10],["I44_throwable_M2", 10]];
        mando_airsupport_weap = [["I44_M1A1Bazooka", 2],["I44_M2_flameThrower", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
        mando_airsupport_pack = [["I44_Backpack_M2flamethrower", 2],["TK_ALICE_Pack_EP1",4]];

     };

     case "Mortar Crate":
     {
        mando_airsupport_magz = [["I44_250rd_762x63_Mix_M1919_mounted", 8],["I44_Shell_60L12_M302", 10],["I44_Shell_60L12_M49A2", 40],["I44_Shell_60L12_M83A1", 10]];
        mando_airsupport_weap = [["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
        mando_airsupport_pack = [["I44_Bag_M1919A4", 2],["I44_Bag_Tripod_M2_C", 2],["I44_Bag_M2Mortar",2],["I44_Bag_M2MortarBP", 2],["TK_ALICE_Pack_EP1", 4]];
     };
  }; 
};

// Carpet bombing custom code global variable for I44_Plane_A_B17_AAF
mando_airsupport_carpetcode = 
{   
  private["_plane", "_targetpos", "_bombL", "_bombR"];
  _plane = _this select 0;
  _targetpos = _this select 1;

  while {(([getPos _plane select 0, getPos _plane select 1, 0] distance _targetpos) > 1200) && (alive _plane)} do
  {
     Sleep 1;
  };

  if (alive _plane) then
  {      

     for "_i" from 0 to 7 do
     {
_bombL = "Bo_Mk82" createvehicle [getpos _plane select 0,getpos _plane select 1,3000]; 	//make the bomb 
_bombL setpos (_plane modelToWorld [-0.5,2.5,-5]);
_bombL setdir getdir _plane;
_bombL setVelocity [((velocity _plane) select 0)/3, ((velocity _plane) select 1)/3,-30];
sleep 0.2;
_bombR = "Bo_Mk82" createvehicle [getpos _plane select 0,getpos _plane select 1,3000]; 	//make the bomb 
_bombR setpos (_plane modelToWorld [0.5,2.5,-5]);
_bombR setdir getdir _plane;
_bombR setVelocity [((velocity _plane) select 0)/3, ((velocity _plane) select 1)/3,-30];
sleep 0.2;
     };
  };
};

// End of options setup dialog configuration


["MMA Air Support Console", {typeOf unitBackpack player == "I44_Bag_ABRadio"}] execVM "mando_missiles\mando_bombs\mando_giveme_console.sqf";

Edited by panther42

Share this post


Link to post
Share on other sites

Panther42,

Thanks again, but I don't seem able to generate crates with backpacks in them. As well, I tried assigning Air Support Console based on having the I44 Radio Backpack;

["MMA Air Support Console", {typeOf unitBackpack player == "I44_Bag_ABRadio"}]execVM"mando_missiles\mando_bombs\mando_giveme_console.sqf";

... no joy.

I'm pretty confident about the backpack name - using Riouken's Selectable Load Out (RSLO) to build loadouts so it provides a clear listing of unit gear and classnames.

Wondered if "Backpack" should actually be "oaBackpack" but wasn't sure, so I didn't change anything.

Crates still spawn with default gear (all the i44 stuff gets removed if there is anomalous code in the setup) - no backpack or backpack weapons are in the crates of modern gear.

Once you get your own machine up and running, you can have a try if you want. Thanks for all the suggestions and if I can somehow figure it out, I will post my resolution.

Theopolus.

Share this post


Link to post
Share on other sites

I should have caught on to this earlier, but since this is a total conversion mod, I'm thinking you either need to try:

A. entering all the default parameters in my_console_setup, especially mando_airsupport_type_ambox for the I44 classname.

Pick one...

US Army Ammo Crates

-------------------

I44_AmmoBox_A -American Ammo Box

I44_AmmoBox_A_H -American Heavy Weapon Ammo Box

I44_WeaponBox_A -American Weapon Box

I44_WeaponBox_A_H -American Heavy Weapon Box

I44_AmmoBox_A_MP -American Multiplayer Ammo/Weapon Box

US Airborne Ammo Crates

-----------------------

I44_AmmoBox_AB -American Airborne Ammo Box

I44_AmmoBox_AB_H -American Airborne Heavy Weapon Ammo Box

I44_WeaponBox_AB -American Airborne Weapon Box

I44_WeaponBox_AB_H -American Airborne Heavy Weapon Box

I44_AmmoBox_AB_MP -American Airborne Multiplayer Ammo/Weapon Box

British Army Ammo Crates

------------------------

I44_AmmoBox_B -British Ammo Box

I44_AmmoBox_B_H -British Heavy Weapon Ammo Box

I44_WeaponBox_B -British Weapon Box

I44_WeaponBox_B_H -British Heavy Weapon Box

I44_AmmoBox_B_MP -British Multiplayer Ammo/Weapon Box

German Army Ammo Crates

-----------------------

I44_AmmoBox_G -German Ammo Box

I44_AmmoBox_G_H -German Heavy Weapon Ammo Box

I44_WeaponBox_G -German Weapon Box

I44_WeaponBox_G_H -German Heavy Weapon Box

I44_AmmoBox_G_MP -German Multiplayer Ammo/Weapon Box

Fallschirmjäger Ammo Crates

-----------------------

I44_AmmoBox_FJ -Fallschirmjäger Ammo Box

I44_AmmoBox_FJ_H -Fallschirmjäger Heavy Weapon Ammo Box

I44_WeaponBox_FJ -Fallschirmjäger Weapon Box

I44_WeaponBox_FJ_H -Fallschirmjäger Heavy Weapon Box

I44_AmmoBox_FJ_MP -Fallschirmjäger Multiplayer Ammo/Weapon Box

If you don't do this, the default ammo box is used, which is USBasicWeaponsBox for West, LocalBasicWeaponsBox for resistance, and RUBasicWeaponsBox for East. These may not work in I44

B. The whole mando_airsupport_dlg may need to be changed to reference the class names of the I44 mod for defaults.

I will download and start playing around with I44 and MMA

Do you know what the sides are in I44? Also, isn't it kinda odd to have an ASC for WWII era stuff?

Share this post


Link to post
Share on other sites

Theopolus, you were missing part of your code for the ammo crates. I have highlighted in the spoiler(red).

Seems to work fine for me...Testing more options now

mando_airsupport_opt5_text = "Ammo Supply Options";
mando_airsupport_opt5_array = ["[color="#0000CD"]Basic Small Arms[/color]", "[color="#0000CD"]AT & Explosives[/color]","[color="#0000CD"]Mortar Crate[/color]"];
mando_airsupport_opt5_action = 
{
[color="#FF0000"]	private["_item"];
  _item = _this select 0;
  switch (_item) do
  {[/color]
     case "[color="#0000CD"]Basic Small Arms[/color]":
     {  
        mando_airsupport_magz = [["I44_20rd_762x63_Mix_M1918", 20],["I44_20rd_762x63_Tracer_M1918", 20],["I44_20rd_762x63_Ball_M1918", 20],["I44_20rd_762x63_AP_M1918", 20],["I44_50rd_762x63_Mix_M1919", 20],["I44_50rd_762x63_Tracer_M1919", 20],["I44_50rd_762x63_Ball_M1919", 20],["I44_50rd_762x63_AP_M1919", 20],["I44_7rd_1143x23_Ball_M1911", 20],["I44_15rd_762x33_Mix_M1Carbine", 20],["I44_15rd_762x33_Tracer_M1Carbine", 20],["I44_15rd_762x33_Ball_M1Carbine", 20],["I44_8rd_762x63_Mix_M1Garand", 20],["I44_8rd_762x63_Tracer_M1Garand", 20],["I44_8rd_762x63_Ball_M1Garand", 20],["I44_8rd_762x63_AP_M1Garand", 20],["I44_5rd_762x63_Mix_M1903", 20],["I44_5rd_762x63_Tracer_M1903", 20],["I44_5rd_762x63_Ball_M1903", 20],["I44_5rd_762x63_AP_M1903", 20],["I44_4xM19_12ga_00Buckshot_M37", 20],["I44_30rd_1143x23_Mix_M1A1Thompson", 20],["I44_30rd_1143x23_Tracer_M1A1Thompson", 20],["I44_30rd_1143x23_Ball_M1A1Thompson", 20],["I44_30rd_1143x23_Mix_M3Greasegun", 20],["I44_30rd_1143x23_Tracer_M3Greasegun", 20],["I44_30rd_1143x23_Ball_M3Greasegun", 20],["I44_RifleGrenade_M1Mk2", 20],["I44_RifleGrenade_SignalM17A1", 20],["I44_RifleGrenade_M17", 20],["I44_RifleGrenade_M9A1", 20],["I44_RifleGrenade_M1Mk2_M1903", 20],["I44_RifleGrenade_SignalM17A1_M1903", 20],["I44_RifleGrenade_M17_M1903", 20],["I44_HandGrenade_No82", 20],["I44_HandGrenade_Mk2", 20],["I44_HandGrenade_No36M", 20],["I44_SmokeGrenade_ANM8", 20],["I44_SmokeGrenade_M18Red", 20],["I44_SmokeGrenade_M18Green", 20],["I44_SmokeGrenade_M18Violet", 20],["I44_SmokeGrenade_M18Yellow", 20]];
        mando_airsupport_weap = [["I44_M1911A1", 4],["I44_M1Garand_M7", 2],["I44_M1A1Thompson", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
        mando_airsupport_pack = [["TK_ALICE_Pack_EP1",4]];
     };

     case "[color="#0000CD"]AT & Explosives[/color]":
     {
        mando_airsupport_magz = [["I44_Rocket_60mm_M6A1_M1A1Bazooka", 10],["I44_m2_flamethrower_mag", 2],["I44_Mine_AT_M1", 20],["I44_Mine_AT_GrenadeNo75", 10],["I44_Item_M37DemoKit", 10],["I44_Item_M37DemoKitHalf", 10],["I44_Item_M2DemoCharge", 20],["I44_Item_M1A1Bangalore", 10],["I44_throwable_M37", 10],["I44_throwable_M2", 10]];
        mando_airsupport_weap = [["I44_M1A1Bazooka", 2],["I44_M2_flameThrower", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
        mando_airsupport_pack = [["I44_Backpack_M2flamethrower", 2],["TK_ALICE_Pack_EP1",4]];

     };

     case "[color="#0000CD"]Mortar Crate[/color]":
     {
        mando_airsupport_magz = [["I44_250rd_762x63_Mix_M1919_mounted", 8],["I44_Shell_60L12_M302", 10],["I44_Shell_60L12_M49A2", 40],["I44_Shell_60L12_M83A1", 10]];
        mando_airsupport_weap = [["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
        mando_airsupport_pack = [["I44_Bag_M1919A4", 2],["I44_Bag_Tripod_M2_C", 2],["I44_Bag_M2Mortar",2],["I44_Bag_M2MortarBP", 2],["TK_ALICE_Pack_EP1", 4]];
     };
  }; 
};

Still very new to I44, I got the flamethrower out of the ammo crate, but have no clue how to use it...:D

oh yeah, and you have to make the names the same for the options as in the array... I have fixed above in blue

Those planes sure are quiet...couldn't hear him til he was right above me

Edited by panther42

Share this post


Link to post
Share on other sites

I will try your suggestions and get back to you if I have some success.

The sides (factions for I44) are listed as;

I44_G_WL

I44_G_WH

I44_G_SS

I44_G_SS_WINTER

I44_A_ARMY

I44_A_ARMY_WINTER

I44_A_AAF

I44_B_ARMY

I44_B_ARMY_WINTER

I44_B_RAF

Also, isn't it kinda odd to have an ASC for WWII era stuff?

I agree - we've limited our Air Support to be stuff that was possible in WWII - ie. no laser, no SADARM, etc. Primarily we will be using it to deliver ammo and troops on site.

Share this post


Link to post
Share on other sites

Give it a try, works fine for me on all three options.

Now to work on that bombing code...

And, we could add more radio backpacks to the list if you need. Right now, you have to be an airborne radioman to get ASC access. We could add the other radiomen if you want.

This carpet bombing code works pretty good. Give it a try:

// Carpet bombing custom code global variable for I44_Plane_A_B17_AAF
mando_airsupport_carpetcode = 
{   
  private["_plane", "_targetpos", "_bombL", "_bombR"];
  _plane = _this select 0;
  _targetpos = _this select 1;

  while {(([getPos _plane select 0, getPos _plane select 1, 0] distance _targetpos) > 500) && (alive _plane)} do
  {
     Sleep 1;
  };

  if (alive _plane) then
  {      

     for "_i" from 0 to 7 do
     {
_bombL = "I44_Bomb_SC250" createvehicle [getpos _plane select 0,getpos _plane select 1,3000]; 	//make the bomb 
_bombL setpos (_plane modelToWorld [-0.5,2.5,-5]);
_bombL setdir getdir _plane;
_bombL setVelocity [((velocity _plane) select 0)/3, ((velocity _plane) select 1)/3,-30];
sleep 0.5;
_bombR = "I44_Bomb_SC250" createvehicle [getpos _plane select 0,getpos _plane select 1,3000]; 	//make the bomb 
_bombR setpos (_plane modelToWorld [0.5,2.5,-5]);
_bombR setdir getdir _plane;
_bombR setVelocity [((velocity _plane) select 0)/3, ((velocity _plane) select 1)/3,-30];
sleep 0.5;
     };
  };
};

I decreased the distance to target position to 500 since these aircraft fly a lot slower than the jets. Also, set your ingress min alt in the ASC to 200 - 250.

If you want them to fly higher, you'll have to adjust the distance to target, and the ingress min alt in the ASC until you find what you like

Edited by panther42

Share this post


Link to post
Share on other sites

Just had a go myself and yes, it works perfectly.

Thanks so much.

I'm posting my final "my_console_setup" here as well as a link to your modified "mando_airsupportdlg.sqf" here http://www.mediafire.com/?nwaz8u075njdo95 for easy reference for anyone following this thread;

Sleep 1;
//Air Support Console Setup - I44 : USA - Woodland - Full Support
// these lines required to customize Mando Air Support Console
// Init.sqf
mando_support_left_WEST = 16;
mando_support_left_ca_WEST = 8;
mando_support_left_pa_WEST = 8;
mando_support_left_rc_WEST = 8;
mando_support_left_am_WEST = 8;
mando_support_left_ve_WEST = 0;
mando_support_left_re_WEST = 8;
mando_support_left_cp_WEST = 8;
mando_support_left_ev_WEST = 0;
mando_support_left_la_WEST = 0;
mando_support_left_cb_WEST = 8;
mando_airsupport_type = "I44_Plane_A_P38_M64_AAF"; 
mando_airsupport_type_ca = "I44_Plane_A_P38_HVAR_AAF";
mando_airsupport_type_pa = "I44_Plane_A_C47A_AAF";
mando_airsupport_type_pal = "";
mando_airsupport_type_rc = "I44_Plane_A_P51D_AAF";
mando_airsupport_type_ev = "";
mando_airsupport_type_am = "I44_Plane_A_C47A_AAF";
mando_airsupport_type_ve = ""; 
mando_airsupport_type_cp = "I44_Plane_A_P51D_AAF";
mando_airsupport_type_la = "";
mando_airsupport_type_cb = "I44_Plane_A_B17_AAF";
mando_airsupport_max_cas = 3;

mando_reco_cam_pos = [0,3,-2];
mando_airsupport_cmissile = ship1;

mando_airsupport_armedrec = false;
mando_airsupport_armedrec_man = false; // Set it to true for manual guidance for missiles fired from armed reco planes
mando_airsupport_armedrec_max = 16;
mando_airsupport_bomb_altmax = 1000;
mando_ingress_dir = 45;
mando_airsupport_bomb_alt = 150;
mando_airsupport_cmissile_pos = [0,-4, 1];
mando_airsupport_cmissile_alt = 300;

mando_airsupport_jump = true; // reinforcements and airborne assault will land and disembark instead of jump from chopper.

mando_support_no_cas = false;
mando_support_no_br = false;
mando_support_no_ff = false;
mando_support_no_sa = true;
mando_support_no_gs = false;
mando_support_no_ab = false;
mando_support_no_cm = true;
mando_support_no_sat = true;
mando_support_no_rc = false;
mando_support_no_ev = true;
mando_support_no_la = true;
mando_support_no_am = false;
mando_support_no_ve = true;
mando_support_no_re = false;
mando_support_no_cp = false;
mando_support_no_cb = false;

// Info text displayed in the setup / info dialog (this is an structured text)
mando_airsupport_info = "Mission info: <br />Tray altitude between 190m, and 250m for air strikes.<br /><br /><t color='#ff0000'>Objetive:</t><br />Air support will be limited in AO<br />Some ammo resupply is available as well as reinforcements (all the setup is into init.sqf script).<br /><t color='#ffAA00'></t><br /><br />Note that the options you see below are fully customizable using globals (same as this text block), check online help for more info.";

// Setup dialog options 1, 2, 3, 4 and 5 dont set any of these variables if you dont want special options
mando_airsupport_opt1_text = "Gunships Support Type";
mando_airsupport_opt1_array = ["I44_P47A", "I44_Plane_A_P38_HVAR_AAF"];
mando_airsupport_opt1_action = 
{
  private["_item"];
  _item = _this select 0;
  mando_airsupport_type_ca = _item;
};

mando_airsupport_opt2_text = "Airborne Assault Options";
mando_airsupport_opt2_array = ["Fire Team", "Anti Tank Team","Commandos"];
mando_airsupport_opt2_action = 
{
  private["_item"];
  _item = _this select 0;
  switch (_item) do
  {
     case "Fire Team":
     {
        mando_support_infantrytype = ["I44_Man_A_Army_AB_82_CO_M1A1Carbine", "I44_Man_A_Army_AB_82_NCO_M1A1Thompson", "I44_Man_A_Army_AB_82_Medic","I44_Man_A_Army_AB_82_M1919A4","I44_Man_A_Army_AB_82_GunCrew_M1A1Carbine","I44_Man_A_Army_AB_82_GunCrew_M1A1Carbine","I44_Man_A_Army_AB_82_M1Garand","I44_Man_A_Army_AB_82_M1Garand","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_RTO_M1A1Carbine"];
     };

     case "Anti Tank Team":
     {
        mando_support_infantrytype = ["I44_Man_A_Army_AB_82_CO_M1A1Carbine", "I44_Man_A_Army_AB_82_NCO_M1A1Thompson", "I44_Man_A_Army_AB_82_Medic","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_RTO_M1A1Carbine"];
     };

     case "Commandos":
     {
        mando_support_infantrytype = ["I44_Man_B_Army_Commando_CO_StenMk2S", "I44_Man_B_Army_Commando_NCO_StenMk2S", "I44_Man_B_Army_Commando_DeLisle","I44_Man_B_Army_Commando_DeLisle","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S"];
     };
  };
};

mando_airsupport_opt3_text = "Reinforcement Options";
mando_airsupport_opt3_array = ["Fire Team", "Anti Tank Team","Commandos"];
mando_airsupport_opt3_action = 
{
  private["_item"];
  _item = _this select 0;
  switch (_item) do
  {
     case "Fire Team":
     {
        mando_support_infantrytype_re = ["I44_Man_A_Army_AB_82_CO_M1A1Carbine", "I44_Man_A_Army_AB_82_NCO_M1A1Thompson", "I44_Man_A_Army_AB_82_Medic","I44_Man_A_Army_AB_82_M1919A4","I44_Man_A_Army_AB_82_GunCrew_M1A1Carbine","I44_Man_A_Army_AB_82_GunCrew_M1A1Carbine","I44_Man_A_Army_AB_82_M1Garand","I44_Man_A_Army_AB_82_M1Garand","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_RTO_M1A1Carbine"];
     };

     case "Anti Tank Team":
     {
        mando_support_infantrytype_re = ["I44_Man_A_Army_AB_82_NCO_M1A1Thompson", "I44_Man_A_Army_AB_82_Medic","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1A1Bazooka","I44_Man_A_Army_AB_82_ATCrew_M3","I44_Man_A_Army_AB_82_M1Garand_M7","I44_Man_A_Army_AB_82_RTO_M1A1Carbine"];
     };

     case "Commandos":
     {
        mando_support_infantrytype_re = ["I44_Man_B_Army_Commando_NCO_StenMk2S", "I44_Man_B_Army_Commando_DeLisle","I44_Man_B_Army_Commando_DeLisle","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S","I44_Man_B_Army_Commando_StenMk2S"];
     };
  };
};

mando_airsupport_opt4_text = "No Vehicle Supply";
mando_airsupport_opt4_array = ["","","",""];
mando_airsupport_opt4_action = 
{
  private["_item"];
  _item = _this select 0;
  mando_airsupport_type_vehicle = _item;
};

mando_airsupport_opt5_text = "Ammo Supply Options";
mando_airsupport_opt5_array = ["Basic Small Arms", "AT & Explosives","Mortar Crate"];
mando_airsupport_opt5_action = 
{
private["_item"];
  _item = _this select 0;
  switch (_item) do
  {
     case "Basic Small Arms":
     {  
        mando_airsupport_magz = [["I44_20rd_762x63_Mix_M1918", 20],["I44_20rd_762x63_Tracer_M1918", 20],["I44_20rd_762x63_Ball_M1918", 20],["I44_20rd_762x63_AP_M1918", 20],["I44_50rd_762x63_Mix_M1919", 20],["I44_50rd_762x63_Tracer_M1919", 20],["I44_50rd_762x63_Ball_M1919", 20],["I44_50rd_762x63_AP_M1919", 20],["I44_7rd_1143x23_Ball_M1911", 20],["I44_15rd_762x33_Mix_M1Carbine", 20],["I44_15rd_762x33_Tracer_M1Carbine", 20],["I44_15rd_762x33_Ball_M1Carbine", 20],["I44_8rd_762x63_Mix_M1Garand", 20],["I44_8rd_762x63_Tracer_M1Garand", 20],["I44_8rd_762x63_Ball_M1Garand", 20],["I44_8rd_762x63_AP_M1Garand", 20],["I44_5rd_762x63_Mix_M1903", 20],["I44_5rd_762x63_Tracer_M1903", 20],["I44_5rd_762x63_Ball_M1903", 20],["I44_5rd_762x63_AP_M1903", 20],["I44_4xM19_12ga_00Buckshot_M37", 20],["I44_30rd_1143x23_Mix_M1A1Thompson", 20],["I44_30rd_1143x23_Tracer_M1A1Thompson", 20],["I44_30rd_1143x23_Ball_M1A1Thompson", 20],["I44_30rd_1143x23_Mix_M3Greasegun", 20],["I44_30rd_1143x23_Tracer_M3Greasegun", 20],["I44_30rd_1143x23_Ball_M3Greasegun", 20],["I44_RifleGrenade_M1Mk2", 20],["I44_RifleGrenade_SignalM17A1", 20],["I44_RifleGrenade_M17", 20],["I44_RifleGrenade_M9A1", 20],["I44_RifleGrenade_M1Mk2_M1903", 20],["I44_RifleGrenade_SignalM17A1_M1903", 20],["I44_RifleGrenade_M17_M1903", 20],["I44_HandGrenade_No82", 20],["I44_HandGrenade_Mk2", 20],["I44_HandGrenade_No36M", 20],["I44_SmokeGrenade_ANM8", 20],["I44_SmokeGrenade_M18Red", 20],["I44_SmokeGrenade_M18Green", 20],["I44_SmokeGrenade_M18Violet", 20],["I44_SmokeGrenade_M18Yellow", 20]];
        mando_airsupport_weap = [["I44_M1911A1", 4],["I44_M1Garand_M7", 2],["I44_M1A1Thompson", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
        mando_airsupport_pack = [["I44_Bag_ABRadio",2],["TK_ALICE_Pack_EP1",4]];
     };

     case "AT & Explosives":
     {
        mando_airsupport_magz = [["I44_Rocket_60mm_M6A1_M1A1Bazooka", 10],["I44_m2_flamethrower_mag", 2],["I44_Mine_AT_M1", 20],["I44_Mine_AT_GrenadeNo75", 10],["I44_Item_M37DemoKit", 10],["I44_Item_M37DemoKitHalf", 10],["I44_Item_M2DemoCharge", 20],["I44_Item_M1A1Bangalore", 10],["I44_throwable_M37", 10],["I44_throwable_M2", 10]];
        mando_airsupport_weap = [["I44_M1A1Bazooka", 2],["I44_M2_flameThrower", 2],["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
        mando_airsupport_pack = [["I44_Backpack_M2flamethrower", 2],["I44_Bag_ABRadio",2],["TK_ALICE_Pack_EP1",4]];

     };

     case "Mortar Crate":
     {
        mando_airsupport_magz = [["I44_250rd_762x63_Mix_M1919_mounted", 8],["I44_Shell_60L12_M302", 10],["I44_Shell_60L12_M49A2", 40],["I44_Shell_60L12_M83A1", 10]];
        mando_airsupport_weap = [["I44_Binocular_M3", 4],["I44_MedpackLarge", 20],["I44_MedpackSmall", 10]];
        mando_airsupport_pack = [["I44_Bag_M1919A4", 2],["I44_Bag_Tripod_M2_C", 2],["I44_Bag_M2Mortar",2],["I44_Bag_M2MortarBP", 2],["I44_Bag_ABRadio",2],["TK_ALICE_Pack_EP1", 4]];
     };
  }; 
};
// Carpet bombing custom code global variable for I44_Plane_A_B17_AAF
mando_airsupport_carpetcode = 
{   
  private["_plane", "_targetpos", "_bombL", "_bombR"];
  _plane = _this select 0;
  _targetpos = _this select 1;

  while {(([getPos _plane select 0, getPos _plane select 1, 0] distance _targetpos) > 500) && (alive _plane)} do
  {
     Sleep 1;
  };

  if (alive _plane) then
  {      

     for "_i" from 0 to 7 do
     {
_bombL = "I44_Bomb_SC250" createvehicle [getpos _plane select 0,getpos _plane select 1,3000]; 	//make the bomb 
_bombL setpos (_plane modelToWorld [-0.5,2.5,-5]);
_bombL setdir getdir _plane;
_bombL setVelocity [((velocity _plane) select 0)/3, ((velocity _plane) select 1)/3,-30];
sleep 0.5;
_bombR = "I44_Bomb_SC250" createvehicle [getpos _plane select 0,getpos _plane select 1,3000]; 	//make the bomb 
_bombR setpos (_plane modelToWorld [0.5,2.5,-5]);
_bombR setdir getdir _plane;
_bombR setVelocity [((velocity _plane) select 0)/3, ((velocity _plane) select 1)/3,-30];
sleep 0.5;
     };
  };
};

// End of options setup dialog configuration

// End of options setup dialog configuration


["MMA Air Support Console", {typeOf unitBackpack player == "I44_Bag_ABRadio"||typeOf unitBackpack player =="I44_Bag_ARadio"||typeOf unitBackpack player =="I44_Bag_BRadio"}]execVM"mando_missiles\mando_bombs\mando_giveme_console.sqf";

And yes, it would be great to add other radio backpacks to provide ASC to players. Would that be something like this?

{typeOf unitBackpack player == "I44_Bag_ABRadio"|""I44_Bag_ARadio"|""I44_Bag_BRadio"}]execVM"mando_missiles\mando_bombs\mando_giveme_console.sqf";

Once again, thank you very much, this will add a great element to our gaming.

Edited by Theopolus

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×