Jump to content
Sign in to follow this  
Taconic

Some config.cpp questions

Recommended Posts

I've been working on this lately and have recently run up against a few walls.

#1: Is there any way to change a magazine picture without creating a new magazine class? Changing the picture in the weapon class changes both the weapon and mag pictures to the same thing. Because of the nature of the project, I can't exactly create a new magazine class to use as ammo since that would break compatability.

#2: Can somebody offer me a brief explaination of the following since none of these things were explained in the commented BIS config.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#define TracerEColor 0.2,0.8,0.1

#define TracerWColor 0.8,0.5,0.1

#define TracerGColor 0.7,0.7,0.5

#define TracerNColor 0,0,0 // used for sniper / silenced rifles

#define TracerEColorF {TracerEColor,0.040}

#define TracerWColorF {TracerWColor,0.040}

#define TracerGColorF {TracerGColor,0.040}

#define TracerNColorF {TracerNColor,0.005}

#define TracerSEColorF {TracerEColor,0.25}

#define TracerSWColorF {TracerWColor,0.25}

#define TRACER_W_ALWAYS tracerColor[]=TracerWColorF;tracerColorR[]=TracerWColorF

#define TRACER_W_OPTIONAL tracerColor[]=TracerWColorF;tracerColorR[]=TracerNColorF

#define TRACER_W_STRONG tracerColor[]=TracerSWColorF;tracerColorR[]=TracerSWColorF

#define TRACER_E_ALWAYS tracerColor[]=TracerEColorF;tracerColorR[]=TracerEColorF

#define TRACER_E_OPTIONAL tracerColor[]=TracerEColorF;tracerColorR[]=TracerNColorF

#define TRACER_E_STRONG tracerColor[]=TracerSEColorF;tracerColorR[]=TracerSEColorF

#define TRACER_G_ALWAYS tracerColor[]=TracerGColorF;tracerColorR[]=TracerGColorF

#define TRACER_G_OPTIONAL tracerColor[]=TracerGColorF;tracerColorR[]=TracerNColorF

I know that the number represents RGB/Alpha on a 0-1 decimal scale, but what is, for example, TracerWColorF? What does {TracerWColor,0.040} do? Is it adding 0.040? To what, R, G, B, or the alpha? That's the kind of thing that I'd like explained.

Thanks for any input.

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  

×