Jump to content
Sign in to follow this  
XPETIT

How use tracercolor command?

Recommended Posts

Hi,

I would like to know what is the signification about the four number in the tracercolor command? Because I'm finishing Redwolf chopper and I want to use it to generate a red light...

Thank's for your help.

Xavier.

Share this post


Link to post
Share on other sites

I believe its just a color array. You know, {red, green, blue, alpha}, all on a scale from 0 (dark & transparent) to 1 (bright and solid). Hope that helps smile_o.gif

Share this post


Link to post
Share on other sites

There's a nifty little tool that generates the RGB numbers for you. I'd recommend searching the OFPEC Editor's Depot.

Share this post


Link to post
Share on other sites

add this at top of cpp

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

#define TracerNColor 0,0,0

#define TracerNColorF {TracerNColor,0.00}

#define TRACER_N_ALWAYS tracerColor[]=TracerNColorF;tracerColorR[]=TracerNColorF

then in your ammo class add

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> tracerColor[]={1.000000,0.000600,0.500000,1.000000};

tracerColorR[]={1.000000,0.006000,0.500000,1.000000};

and in wepon class useing the ammo and this

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

hope this helps

Share this post


Link to post
Share on other sites

Yeah. On the section that defines the tracer color, could you list some examples of different colors. I've been trying to figure out how to add brighter tracer rounds to some machine guns for example.

Chris G.

aka-Miles Teg<GD>

Share this post


Link to post
Share on other sites

Ok. I have a beautifull red light but it come from the center of the chopper. It is to up. What must I change to put the start in front of the podlaser?rock.gif

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  

×