Jump to content
Sign in to follow this  
KTM_Calle

Flames or smoke on rpg/at?

Recommended Posts

Heya, is it possible to add a "Muzzle flash" (but behind the gun) for rpg's/laws and such?

And also, is it possible to get lots of smoke behind it when you fire off a round?

i believe the smoke will works, have no idea how though, not very good at scripting sad.gif

Share this post


Link to post
Share on other sites

No it's not via cpp. Only the man can have smoke, ie. every time he fires

Share this post


Link to post
Share on other sites

cant you determine via script wich gun he fires with, and add some "dkmm'ish" smoke? maybe not in the cpp but in the mission editor maybe?

Share this post


Link to post
Share on other sites
Guest jacobaby

You can add a "fired" eventhandler to your guy, then call a script which checks the weapon type, if it is rpg, then do the deed with a drop script.

Share this post


Link to post
Share on other sites

You can allready check in the cpp what weapon is fired, you just have the problem that only this special guy would produce a lot of smoke with a RPG.

Share this post


Link to post
Share on other sites

thanks, any good ideas of where i can find help on smoke scripts?

Share this post


Link to post
Share on other sites
Guest BratZ

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (KTM_Calle @ April 10 2003,15:32)</td></tr><tr><td id="QUOTE">thanks, any good ideas of where i can find help on smoke scripts?<span id='postcolor'>

http://home.arcor.de/vektorboson/en/index.html

Share this post


Link to post
Share on other sites
Guest BratZ

NP, altho Jacob,Rast and Suss? All are good scripters...you got good help on this one,lol

Share this post


Link to post
Share on other sites

this is the original 1.90 config of Missile Smoke :

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

class CfgCloudlets

{

class CloudletsMissile

{

access=3;

interval=0.005000;

cloudletSize=3;

cloudletAlpha=0.500000;

cloudletDuration=0.450000;

cloudletAnimPeriod=1;

cloudletGrowUp=0.050000;

cloudletFadeIn=0.000000;

cloudletFadeOut=0.500000;

cloudletAccY=0;

cloudletMinYSpeed=-10;

cloudletMaxYSpeed=10;

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

initT=0;

deltaT=0;

class Table

{

class T0

{

maxT=0;

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

};

};

cloudletShape="missileSmoke";

};

class CloudletsMissileManual : CloudletsMissile

{

cloudletSize=0.500000;

cloudletAlpha=0.400000;

};

class CloudletsScud : CloudletsMissile

{

cloudletSize=8;

cloudletAlpha=0.500000;

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

cloudletFadeIn=0;

cloudletDuration=1.500000;

cloudletFadeOut=0.500000;

cloudletGrowUp=1;

cloudletAccY=0;

cloudletMinYSpeed=-1000;

cloudletMaxYSpeed=1000;

interval=0.020000;

size=8.000000;

sourceSize=1.000000;

};

};

<span id='postcolor'>

Hope it's help you ..

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  

×