Home   Help Search Login Register  

Author Topic: How to fire tracers? ...and other questions.  (Read 1605 times)

0 Members and 1 Guest are viewing this topic.

Offline Abs

  • Members
  • *
How to fire tracers? ...and other questions.
« on: 02 Nov 2010, 04:46:42 »
Hi,

I tried asking at the BIS forums, so I'm hoping people here are a bit frindlier. :)

I've only just learned how to config a few days ago, and I'm still a novice by all meanings of the word. Although I have my weapon in game and it's firing...but there are three outstanding questions I have.

1. How do I get it to fire tracers?
2. How do I stop it from firing the smoke particles?
3. Can I change the light colour from the muzzleflash?

The following is my config:
Code: [Select]
#define PHASER tracerColor[]={0,0,1,0};tracerColorR[]={0,0,1,0}; //I've tried both 0 and 1 as the alpha values.


class cfgPatches
{
class STA2_Weapons
{
units[] = {};
weapons[] =
{
"STA2_Type2"
};
requiredVersion = 1;
requiredAddons[] =
{
"CAData","CA_Anims_Char"
};
};
};
class cfgWeapons
{
class PistolCore;
class Pistol: PistolCore{};
class STA2_Type2: Pistol
{
scope = 2;
displayName = "Type 2 Phaser";
model = "\STA2_Weapons\Type2";
autoFire = 1;
picture = "";
sound[]={"\STA2_Weapons\data\phaser.wav",db0,1};
drySound[]={\ca\Weapons\Data\Sound\T33_dry_v1, db-80,1};
reloadMagazineSound[]={\ca\Weapons\Data\Sound\pistol_reload,db-30,1};
magazines[]={STA2_PhaserClip};

dispersion = 0;

};
};

class cfgAmmo
{
class Default;
class BulletCore;
class BulletBase : BulletCore {};
class STA2_Phaser: BulletBase
{
hit = 20;
visibleFire=0.035;
audibleFire=0.035;
visibleFireTime=2;
cost = 5;
aiRateOfFire = 0; //continuous weapon
aiRateOfFireDistance = 500;
typicalSpeed=1500;
tracersEvery = 1;
model = "\ca\Weapons\Data\bullettracer\tracer_green";
tracerScale = 3;
tracerStartTime = 0;
tracerEndTime = 4;
airFriction = -0.0000;
PHASER
};
};

class cfgMagazines
{
class Default;
class STA2_Magazine : Default
{
scope = public;
model="\ca\weapons\mag_univ.p3d"; //Model Of Magazine On Ground
reloadAction = ManActReloadMagazine;  //Animation Of Magazine Reloading
};
class STA2_PhaserClip : STA2_Magazine
{
scope = public;
type = WeaponSlotHandgunItem;
displayname = "Phaser Clip";
picture="\Ca\weapons\Data\Equip\m_m9_beretta_CA.paa";
ammo = STA2_Phaser;
count = 3000;
initSpeed = 1500;
};
};

Any help is appreciated, as I'm pulling my hair out of my head trying to answer my own questions.

Abs


Offline Gnat

  • Addons Depot
  • Former Staff
  • ****
  • I Bite!
    • Gnats
Re: How to fire tracers? ...and other questions.
« Reply #1 on: 02 Nov 2010, 11:02:05 »
(1)
tracersEvery =
That goes in CFGMagazines

You have a rouge "PHASER" text out of place below.

(2)
Change
Quote
class cfgAmmo
{
   class Default;
   class BulletCore;
   class BulletBase : BulletCore {};
   class STA2_Phaser: BulletBase
   {


to

Quote
class cfgAmmo
{
   class BulletBase;
   class STA2_Phaser: BulletBase
   {

And try adding this to your buttet definition.
Quote
muzzleEffect = "";

As for the flash colour ..... not sure.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: How to fire tracers? ...and other questions.
« Reply #2 on: 02 Nov 2010, 11:11:22 »
Quote from: Gnat
You have a rouge "PHASER" text out of place below.
It's a tracercolor macro, nothing wrong with it..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Abs

  • Members
  • *
Re: How to fire tracers? ...and other questions.
« Reply #3 on: 02 Nov 2010, 23:04:37 »
That's done it! Thanks a lot, gentlemen.  :clap:

Abs