Jump to content
Sign in to follow this  
legion7698

Weapon smoke problems

Recommended Posts

Hey All,

Well anouther model and anouther problem. I've made a static GMG but upon firing it creates a lot of smoke at the end of the barrel, this is fine if your shooting one shot at a time but after a while you cant see anything making it hard to aim effectively. I'm not as to the cause of this as I've inherited from the grenade launcher which creates hardly any smoke upon firing.

Thanks in advance for any help put forward.

Regards,

LEGION7698.

Share this post


Link to post
Share on other sites

Do you have some weaponcloudsMGGun or WeaponCloudsGun cloudlets defined in your static gun config ?

If yes, remove them as they are certainly creating extra-smoke.

If no, you can remove smoke from static/vehicle weapon like this :

Before the class CfgVehicles, add that :

class WeaponCloudsGun {};
class WeaponCloudsMGun: WeaponCloudsGun {};
class WhateverName_MGunClouds: WeaponCloudsMGun
{
cloudletDuration=0;
cloudletAnimPeriod=1;
cloudletSize=0;
cloudletAlpha=0;
cloudletGrowUp=1;
cloudletFadeIn=1;
cloudletFadeOut=1;
cloudletAccY=0;
cloudletMaxYSpeed=0;
cloudletShape="cl_basic";
cloudletColor[]={1,1,1,1};
interval=1;
size=0;
sourceSize=0;
timeToLive=0;
initT=1;
deltaT=0;
class Table
{
	class T0 
	{
		maxT=1; 
		color[] = {1, 1, 1, 1};
	};
};
};

Now look for your static MG class (in the class CfgVehicles) :

class myStaticGun:blablabla
{
your definitions
};

and add the following, so your class will look like this

class myStaticGun:blablabla
{
your definitions
class GunClouds: WhateverName_MGunClouds{};
class MGunClouds: WhateverName_MGunClouds{};
};

That should remove any smoke from your static MG.

Share this post


Link to post
Share on other sites

Hey Sanctuary,

Cheers for the help, I can now see what I'm shooting at, I just need to now larn to aim the thing :).

Regards,

LEGION7698.

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  

×