Jump to content

Photo
- - - - -

How to add flare magazine to helicopter?


  • Please log in to reply
14 replies to this topic
Thread Starter
roguetrooper
roguetrooper

    Master Sergeant

  • Members
  • 672 posts

  • Joined: 19-December 2007

Posted 24 March 2012 - 19:13 #1

How can you add (more) flares ("60Rnd_CMFlareMagazine_H_DLC1") to the Hind?

I've tried many combinations with addmagazine and addmagazineturret.

To be honest, I've never understood the thing with the turrets [0,1] etc...

Jedra
Jedra

    Warrant Officer

  • Members
  • 2048 posts

  • Joined: 07-March 2011

Posted 25 March 2012 - 08:37 #2

Hello mate,

You need to add the flares to the pilot's turret. So, assuming your helicopter is called helo1...


helo1 addMagazineTurret ["60Rnd_CMFlareMagazine_H_DLC1",[-1]]


The pilot's turret is always '-1'.

Hope this helps?
Jedra's Addons
Arma 2 : Enhanced Skills Slider
Take On Helicopters : Take On Taxi | Jedra's Time Trials | Weapon Indicators | No Radar

Thread Starter
roguetrooper
roguetrooper

    Master Sergeant

  • Members
  • 672 posts

  • Joined: 19-December 2007

Posted 25 March 2012 - 08:49 #3

Thanks... this surely is a matter for headbonkonthedesk.

Though being off-topic concerning this thread's title, I have another question: how do you moveIn'Copilot' a unit into a helicopter, such as the Little Bird?

Jedra
Jedra

    Warrant Officer

  • Members
  • 2048 posts

  • Joined: 07-March 2011

Posted 25 March 2012 - 09:41 #4

Slightly more convoluted this one;


this moveInTurret [helo1,[0]];


In the init line of of the person you want to be co-pilot. Again, helo1 is the light helicopter you are dealing with.

Edited by Jedra, 25 March 2012 - 09:43.
speeellling eror

Jedra's Addons
Arma 2 : Enhanced Skills Slider
Take On Helicopters : Take On Taxi | Jedra's Time Trials | Weapon Indicators | No Radar

BeePee
BeePee

    Sergeant

  • Members
  • 199 posts

  • Joined: 27-July 2011

Posted 20 April 2012 - 08:41 #5

I have similar question. Is it possible to add some kind of grenade launcher to helicopter? I want to create scenario where light heli goes to recon mission, finds some targets, then marks them using some smoke/flare shooting weapon. Then calls his big brother (Hind) to destroy those targets. Is it possible?
Posted Image

Jedra
Jedra

    Warrant Officer

  • Members
  • 2048 posts

  • Joined: 07-March 2011

Posted 20 April 2012 - 15:50 #6

Hi BeePee,

Probably the easiest way is to add an action using addaction to the helo which executes the following;


smoke1 = "SmokeShellred" createVehicle (position (vehicle player));


This will create a smokeshell (a red one in this case) at the players position which will fall to the ground.

A very simple addaction in the initline of the player/helo...


 pldropsmoke = this addAction ["Drop Smoke", "dropsmoke.sqf"];


Edited by Jedra, 20 April 2012 - 16:03.

Jedra's Addons
Arma 2 : Enhanced Skills Slider
Take On Helicopters : Take On Taxi | Jedra's Time Trials | Weapon Indicators | No Radar

BeePee
BeePee

    Sergeant

  • Members
  • 199 posts

  • Joined: 27-July 2011

Posted 20 April 2012 - 17:58 #7

Tnx Jedra but that's not exactly what I want. With your script it wouldn't be possible to aim the smokeshell. I want to be able to fire it like a rocket. I've managed to add M16A2GL to helicopter and can fire its primary ammo - 20Rnd_556x45_Stanag (yes! it's possible!) but I can't switch to M203... Anyone knows how to do this?
Posted Image

Jedra
Jedra

    Warrant Officer

  • Members
  • 2048 posts

  • Joined: 07-March 2011

Posted 20 April 2012 - 18:29 #8

What about an M32 grenade launcher and some M203 smoke or flare grenades. Not sure they are in ToH but they are definitely in Arma.
Jedra's Addons
Arma 2 : Enhanced Skills Slider
Take On Helicopters : Take On Taxi | Jedra's Time Trials | Weapon Indicators | No Radar

BeePee
BeePee

    Sergeant

  • Members
  • 199 posts

  • Joined: 27-July 2011

Posted 20 April 2012 - 18:38 #9

I think that would do the trick! Unfortunatelly M32 is available in Operation Arrowhead only and I don't have it :/
Posted Image

Jedra
Jedra

    Warrant Officer

  • Members
  • 2048 posts

  • Joined: 07-March 2011

Posted 20 April 2012 - 19:35 #10

Without some config work I don't think you are going to achieve it.

What you could do instead is go back to my idea, but give the smoke shell some velocity (same as the helo) and a direction (same as the helo). This way it will 'fire' the smoke shell in a fashion that is 'aimed'.
Jedra's Addons
Arma 2 : Enhanced Skills Slider
Take On Helicopters : Take On Taxi | Jedra's Time Trials | Weapon Indicators | No Radar

Codfish
Codfish

    Private

  • Members
  • 8 posts

  • Joined: 05-December 2001

Posted 02 May 2012 - 12:07 #11

Would it be possible to add the operation arrowhead flares (e.g. the ones in ACE on the various choppers) to a ToH helicopter? The merged games makes for some awesome screwing around with helicopters and military hardware sessions, but any ToH chopper is very vulnerable to stinger missiles!! :(

Jedra
Jedra

    Warrant Officer

  • Members
  • 2048 posts

  • Joined: 07-March 2011

Posted 02 May 2012 - 18:25 #12

In principal there is no reason why you couldn't do this - as long as you have the classname it should be similar to the way I described in post #2 should it not?
Jedra's Addons
Arma 2 : Enhanced Skills Slider
Take On Helicopters : Take On Taxi | Jedra's Time Trials | Weapon Indicators | No Radar

Codfish
Codfish

    Private

  • Members
  • 8 posts

  • Joined: 05-December 2001

Posted 04 May 2012 - 12:30 #13

I thought it must but I am still failing. I've had a search online and dug up some class names etc but no joy. Sorry to keep using you as the all wise master of scripts but any idea what I'm doing wrong. I'm using

helo1 addMagazineTurret ["120Rnd_CMFlare_Chaff_Magazine",[-1]]; helo1 addweapon "CMFlareLauncher";

also tried

helo1 addMagazineTurret ["120Rnd_CMFlareMagazine",[-1]]

in the init line for helo1.


I fear there may be more stuff that needs to be added. Like the radar and radar warning which I presume is hidden in the vehicle cfg. either way I get no change to the ToH heavy chopper that I am testing on :(

Cheers

Jedra
Jedra

    Warrant Officer

  • Members
  • 2048 posts

  • Joined: 07-March 2011

Posted 04 May 2012 - 17:07 #14

I don't think this is possible with script if the helicopter doesn't have that weapon defined in the config. What we need is for them to implement addWeaponTurret command.

If you want a heavy with a flare, you are going to have to dig into the config and write a replacement.

Here's what you can do with some config changes...

RkioY_X2Wao

I have written a small replacement config that you might find useful - it basically adds flares to all Heavy choppers in ToH (the Hinds addon is required). You can download it here. Let me know if it needs tweaking.

Edited by Jedra, 04 May 2012 - 18:37.

Jedra's Addons
Arma 2 : Enhanced Skills Slider
Take On Helicopters : Take On Taxi | Jedra's Time Trials | Weapon Indicators | No Radar

goldblaze
goldblaze

    Private First Class

  • Members
  • 19 posts

  • Joined: 04-December 2010

Posted 06 August 2012 - 03:19 #15

Is there any way to add the flares to the pilots seat to launch with the R button? Basically try to load flares to addons that seem to have bugs there.