Jump to content
Sign in to follow this  
granQ

Cfgammo handgun problem

Recommended Posts

Hello i am working on a rifle don't want it to use tracers.. but i can't just put "ammo=cz75" for instance since then it won't be so very good for a rifle.. so this is what i have done (it doesn't fire) so help me with this one please or if you know another way to get rid of tracer..

class CfgAmmo

{

class Default {};

class MGun: Default {};

class Riffle: MGun {};

class HandGun: Riffle {};

class CZ75: HandGun {};

class sfpak5ammo: Cz75

{

airLock=1;

hit=14;

cost=5;

tracerColor[]={1,0.25000,0.12500,0};

minRange=1;

minRangeProbab=0.9;

midRange=500;

midRangeProbab=0.75;

maxRange=1000;

maxRangeProbab=0.25;

};

};

Share this post


Link to post
Share on other sites

Why are you using classes from cfgWeapons in cfgAmmo? Should be something like

class Default{};

class BulletSingle : Default{};

class sfpak5ammo : BulletSingle {

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

};

Share this post


Link to post
Share on other sites

course i am a newbie?

thanks anyway kege.. wink.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  

×