Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
slatts

Creating a new Muzzle

Recommended Posts

Back again to this part of the forums :D

So I tried copying BIS as best I could, however it just won't work. Trying to make a new Muzzle class to be the M26 shotgun attached to the M4 (like the 203) however I keep getting a "no entry config.bin/cfgweapons/M26Muzzle error.

In the CfgClasses I got

class CfgClasses
{
class GrenadeLauncher;
class M26Muzzle: GrenadeLauncher
{
	displayName = "M26 MASS";
	modeloptics = "-";
	optics = 1;
	cameradir = "GL look";
	magazines[] = {"8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_Pellets"};
};
};

And in CfgWeapons

	
class M26Muzzle;

class SLTS_M4_M26_RDS: SLTS_M4_CQC
{
	displayName = "M4 M26 RDS";
	model = "\SLTS_M4_2015\M4_M26_RDS.p3d";
	muzzles[] = {"this", "M26Muzzle"};
	handanim[] = {"OFP2_ManSkeleton", "\CA\weapons2\Data\Anim\XM8GL.rtm"};
	irdistance = 5;
	irlaserend = "laser dir";
	irlaserpos = "laser pos";
};

Any ideas how I can make this work?

Share this post


Link to post
Share on other sites

got it to work, will upload the code foe future reference soon

Share this post


Link to post
Share on other sites
Sign in to follow this  

×