Jump to content
Sign in to follow this  
Get Trippy

Helicopter turrets help please

Recommended Posts

How do i make the minigun on my helicopter have muzzle flash and make the barrels of the gun actually spin when firing? Its a ported Black hawk from Arma 2, I'd also like for the gun to have its ammo shell casings falling while firing.

Share this post


Link to post
Share on other sites

For the muzzle flash you'll need a proxy for one of the muzzle flash objects from a3\data_f\proxies\muzzle_flash in the model. 

 

For the gun spinning you'll need the Gatling animation in your model config and the animation source.

 

Model config:

class MachineGun_1: Rotation {
    selection="gatling_1";
    type="rotation";
    axis="gatling_1_axis";
    angle1="-600 * 3.141592654";
    angle0="-3.141593";
    source="Gatling_1";
};
class MachineGun_2: MachineGun_1 {
    selection="gatling_2";
    axis="gatling_2_axis";
    source="Gatling_2";
};

Config - Animation Source: 

class AnimationSources: AnimationSources {
    class Gatling_1 {
         source = "revolving";
         weapon = "16aa_Weapon_Vehicle_M134_minigun_1";
    };
    class Gatling_2 {
         source = "revolving";
         weapon = "16aa_Weapon_Vehicle_M134_minigun_2";
     };
};

Now for the shell ejection and a nice heat haze effect when firing you'll need this in the mingun's weapon config:

 

class CfgWeapons {
	class 16aa_Weapon_Vehicle_M134_minigun_1: M134_minigun {
        displayName = "M134 Minigun";
        class GunParticles{
            class FirstEffect {
                effectName = "machinegun1";
                positionName = "muzzle_1";
                directionName = "chamber_1";
            };
            class effect1 {
                positionName = "eject_1";
                directionName = "eject_1_dir";
                effectName = "MachineGunCartridge";
            };
        };
        muzzlePos = "chamber_1";
        muzzleEnd = "muzzle_1";
        cartridgePos = "eject_1";
        cartridgeVel = "eject_1_dir";
        selectionFireAnim = "zasleh";
    };
};

 

 

All of these configs require the memory points to be set up correctly but you should be able to get them sorted based off the A2 models. But this should give you everything you wanted. 

Share this post


Link to post
Share on other sites

Would you happen to know how to get the helicopter's cargo doors to open and close aswell?

Share this post


Link to post
Share on other sites

I guys ! Thanks a lot for this topic.

Did you now if we can attach laser (like AN PEQ15)  on a m134 minigun, on a helicopter ? 

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  

×