Jump to content
Sign in to follow this  
colonel_klink

No gun smoke needed

Recommended Posts

Does anybody know how to eliminate gun smoke to simulate smokeless cartridges? Also eliminate the gun flash too?

Share this post


Link to post
Share on other sites

Have not tried but

flash=;

flash="";

flashSize=0; ??

Share this post


Link to post
Share on other sites

Yep, tried those Scud. They seem to control the zasleh muzzle flash part. have eliminated those but still get a puff of smoke.

Share this post


Link to post
Share on other sites

You could do it through MGunClouds (or whatever it's called).

Either set the alpha to 0, or the size very small.

You could eliminate the gun flash by just not having zasleh

in the model.

Share this post


Link to post
Share on other sites

ok going with footmunch's suggestion the following eliminates the smoke for a given vehicle:

This code below is OUTSIDE of the cfgvehicles part:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class WeaponCloudsNoSmoke // custom name

{

access=3;

cloudletDuration=0.300000;

cloudletAnimPeriod=1.000000;

cloudletSize=5.000000;

cloudletAlpha=0.000000;

cloudletGrowUp=30.01;

cloudletFadeIn=0.510000;

cloudletFadeOut=90;

cloudletAccY=0.050000;

cloudletMinYSpeed=0.100000;

cloudletMaxYSpeed=0.100000;

cloudletShape="cl_basic";

cloudletColor[]={1,1,1,0};

interval=0.050000;

size=0;

sourceSize=0.500000;

timeToLive=0;

initT=0;

deltaT=60;

class Table

{

class T0

{

maxT=0;

color[]={1.0,1.0,1.0,0};

};

class T1

{

maxT=1800;

color[]={0.6,0.6,0.6,0};

};

class T2

{

maxT=3500;

color[]={0.55,0.54,0.52,0};

};

};

};

This code below is INSIDE of the cfgvehicles part:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

//note use custom smoke name as above

class GunFire: WeaponCloudsNoSmoke {};

class GunClouds: WeaponCloudsNoSmoke {};

class MGunFire: WeaponCloudsNoSmoke {};

class MGunClouds: WeaponCloudsNoSmoke {};

Share this post


Link to post
Share on other sites

Sorry to ressurect this, but methinks this is on topic.

Will this code work with weapons as well?

I have a weapon that I want to have no gun smoke coming out of.

Thanks.

Share this post


Link to post
Share on other sites

Rifle or Handgun...prolly not as parts are needed within cfgvehicles.

A static Mgun , yes

Share this post


Link to post
Share on other sites

Just want to check incase this has been solved but

Quote[/b] ]Also eliminate the gun flash too?

well has it crazy_o.gif

cheers

Share this post


Link to post
Share on other sites
Rifle or Handgun...prolly not as parts are needed within cfgvehicles.

A static Mgun , yes

Actually, it seems to have worked! smile_o.gif

Share this post


Link to post
Share on other sites

No... it actually didn't work. I just didn't have a muzzle position set in the model. sad_o.gif

Share this post


Link to post
Share on other sites

I think you cant make a weapon with no smoke. You only can change cfgclouds for you soldier. You will have a solder with no gun smoke but on all weapons he is firering. But this is only a theory.

Share this post


Link to post
Share on other sites
I think you cant make a weapon with no smoke. You only can change cfgclouds for you soldier. You will have a solder with no gun smoke but on all weapons he is firering. But this is only a theory.

yep you are correct there. works cool on aircraft tho

Share this post


Link to post
Share on other sites
You only can change cfgclouds for you soldier. You will have a solder with no gun smoke but on all weapons he is firering. But this is only a theory.

Any idea on how to do that? I don't see cfgClouds in the commented configs.. am I missing it?

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  

×