Jump to content
Sign in to follow this  
pierremgi

Custom grenade not recognized in GL_3GL_F launcher

Recommended Posts

Hi all,

I've done a custom grenande based on standard smoke shell. Nothing difficult for cfgAmmo and cfgMagazine.

I've added my mag in cfgWeapon:

 class UGL_F : GrenadeLauncher {
        access =2;
        magazines[] += {"1Rnd_MGI_Lacrymo_mag"};
    };

Then I can throw it with EGLM (single burst) GL.

Problem is to make it recognized with GL_3GL_F which is the most employed GL (3 bursts).

For example, i can see this muzzle in MX GL riffles classes, something inherited from UGL_F but I can't change magazines array as for UGL_F.

Any idea?

Thanks

Share this post


Link to post
Share on other sites

Could something like this work?

class UGL_F; GrandeLauncher
	{
		displayName = "CustomGranade";
		muzzles[] = {"this","CustomGrenade"};
		class GL_3GL_F;
		class CustomGrenade_GL_3GL_F: GL_3GL_F
		{
			magazines[] = {"1Rnd_MGL_Lacrymo_mag"};
		};

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  

×