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:
#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