Home   Help Search Login Register  

Author Topic: Disable tracers?  (Read 1191 times)

0 Members and 1 Guest are viewing this topic.

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Disable tracers?
« on: 08 Nov 2005, 11:08:42 »
Hi!

I'm making a weapon and I want to disable the tracers in "config.cpp". How do I do this? I can't seem to find a tutorial that mentions this.

Thanks guys
Weeee...

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Disable tracers?
« Reply #1 on: 08 Nov 2005, 14:32:05 »
In CfgAmmo there are lines that define tracer colours, for example BulletSingleW:

tracerColor[]={0.8,0.5,0.1,0.04};
tracerColorR[]={0,0,0,0.005};

I imagine changing this to something like:

tracerColor[]={0,0,0,0};
tracerColorR[]={0,0,0,0.};

Might do the trick......then again I've never played with weapons and ammo much.


Planck
I know a little about a lot, and a lot about a little.

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Re:Disable tracers?
« Reply #2 on: 08 Nov 2005, 21:13:04 »
Thanks but that didn't work.

The solution I found was the following: At the beginning of config.cpp:

Code: [Select]
#define TracerNColor 0,0,0
#define TracerNColorF {TracerNColor,0.00}
#define TRACER_N_ALWAYS tracerColor[]=TracerNColorF;tracerColorR[]=TracerNColorF

Then in CfgAmmo:

Code: [Select]
class CfgAmmo
{
   class Default {};
   class BulletSingle : Default {};

// Here I put the first TRACER_N_ALWAYS:

   class BulletBurst: BulletSingle {TRACER_N_ALWAYS;};

   
class tommyammosingle : BulletSingle
   {
      hit=7.5;indirectHit=1;indirectHitRange=0.050000;
      visibleFire=14;
      audibleFire=14;
      visibleFireTime=2;

      minRange=76;minRangeProbab=0.100000;
      midRange=150;midRangeProbab=0.700000;
      maxRange=200;maxRangeProbab=0.040000;

// Here I put the second one:

      TRACER_N_ALWAYS;

That made the tracers go away.

Thanks again, topic solved
« Last Edit: 08 Nov 2005, 21:16:13 by Wildebeest »
Weeee...