OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Wildebeest 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
-
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
-
Thanks but that didn't work.
The solution I found was the following: At the beginning of config.cpp:
#define TracerNColor 0,0,0
#define TracerNColorF {TracerNColor,0.00}
#define TRACER_N_ALWAYS tracerColor[]=TracerNColorF;tracerColorR[]=TracerNColorF
Then in CfgAmmo:
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