Right, I tried the changes you said.. But :'(
It didn't work
I mucked around for a while, it fired a mag called Riffle (It must be from the inheritance stuff)
And I kept trying (I musta rePBOed the CPP, in a different PBO, and in the weapon PBO about 30 times
)
So, I got the PBO of a Minime machine gun (Pretty similar weapons), and edited it.. it's nearly there, but I can't get the hang of the inheritance stuff
Heres the config I've got now :
//---------------------------------------------------------------------------------------
// some basic defines
//---------------------------------------------------------------------------------------
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
#define true 1
#define false 0
// type scope
#define private 0
#define protected 1
#define public 2
#define WeaponNoSlot 0// dummy weapons
#define WeaponSlotPrimary 1// primary weapons
#define WeaponSlotSecondary 16// secondary weapons
#define WeaponSlotItem 256// items
#define WeaponSlotBinocular 4096// binocular
#define WeaponHardMounted 65536
//------------------------
class CfgModels
{
};
//---------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------
class CfgWeapons
{
class Default {};
class MGun: Default {};
class Riffle: MGun {};
class MachineGun7_6: MGun {};
class MachineGun7_6Manual: MachineGun7_6 {};
class Weapon: Default{};
class Chech_LSW : Weapon
{
units[] = {};
weapons[] = {"Chech_LSW","Chech_LSWmag"};
requiredVersion = 1.46;
};
class Chech_LSWMag : Chech_LSW
{
scopeWeapon = 0;
scopeMagazine = 2;
displayNameMagazine = "L86 5.56 mag";
shortNameMagazine = "5.56 Mag";
picture="\Chech_LSW\m_LSW.pac";
uiPicture="\Chech_LSW\m_LSW.pac";
count=30;
weaponType=1;
magazineType="3 * 256";
magazineReloadTime=6.0;
dexterity=0.7;
reloadMagazineSound[]={"\Chech_LSW\LSWreload.wav",db-40,1};
ammo="BulletFullAutoW";
drySound[]={"weapons\M16dry",0.010000,1};
sound[]={\Chech_LSW\LSWfire.wav,1,1};
soundContinuous=0;
reloadTime=0.10000;
dispersion=0.005000;
initSpeed=1000;
maxLeadSpeed=300;
ffCount=10;
aiDispersionCoefX=5;
ffMagnitude=0.500000;
ffFrequency=11;
recoil="riffleBurst3";
autoFire=true;
aiRateOfFire=0.5;
aiRateOfFireDistance=900;
useAction=0;
useActionTitle="";
};
class Chech_LSW
{
scopeWeapon = 2;
scopeMagazine = 0;
displayName = "L86 LSW";
picture="\Chech_LSW\p_LSW.pac";
uiPicture="\Chech_LSW\p_LSW.pac";
model="\Chech_LSW\ChechLSW.p3d";
reloadMagazineSound[]={"\Chech_LSW\lswreload.wav",db-40,1};
drySound[]={"weapons\M16dry",db-40,1};
modelOptics="\Chech_LSW\optika_lsw.p3d";
optics = true;
opticsZoomMin=0.350000;
opticsZoomMax=0.350000;
distanceZoomMin=400;
distanceZoomMax=400;
magazines[]={"Chech_LSWMag"};
};
};
Please help!! :'(
It's just the something : somethingelse {}; stuff, I think.. But I can't work it out
Help!!!
You'll be creditied in the readme, and the mods website
Thanks so much
- Ben