You had a very small config mistake that prevented your weapon from fireing, also in the external class references quote only the absolute neccessary inherit references needed for your addon/s. You also forgot to include your last closing }; (statement).
Your ammo and magazine selection was wrong for the 7.62 x 39mm AK round.
Here is your new config
Code:
class CfgPatches
{
class TLWFAA_Weapons
{
units[] = {};
weapons[] = {"TLWFAA_kls"};
requiredVersion = 0.1;
requiredAddons[] = {"CAweapons"};
};
};
class CfgVehicleClasses
{
class TLWFAA_Weapons
{
displayName = "TLWFAA_Weapons";
};
};
class cfgRecoils
{
TLWFAA_klsRecoil[] = {0,0.005,0.005, 0.005,0.01,0.011, 0.09,0.005,-0.0004,0.13,0,0};
};
class CfgMagazines
{
class Default; // External class reference
class CA_Magazine; // External class reference
class 30Rnd_kls: CA_Magazine
{
scope = 2;
displayName = 7.62 iranian;
ammo = "B_762x39_Ball";
count = 30;
initSpeed = 780;
picture = "\CA\weapons\AK\data\equip\M_AK47_CA.paa";
};
};
class Mode_SemiAuto {};
class Mode_Burst: Mode_SemiAuto {};
class Mode_FullAuto: Mode_SemiAuto {};
class cfgWeapons
{
class Default; // External class reference
class RifleCore; // External class reference
class Rifle ; // External class reference
class M4A1;
class TLWFAA_kls: M4A1
{
scope = 2;
value = 0;
model = "\TLWFAAweapons\kls";
displayName = "KLS 7.62";
opticsZoomMin = 0.3;
opticsZoomMax = 0.42;
optics = 1;
drySound[] = {"\TLWFAAweapons\sound\scsdry.wav",0.000316,1};
reloadMagazineSound[] =
{"\TLWFAAweapons\sound\scs90Reload.wav",0.010000,1};
magazines[] = {"30Rnd_kls"};
class Single: Mode_SemiAuto
{
sound[] = {"\TLWFAAweapons\sound\scs90Single.wav",7.943283,1};
reloadTime = 0.1;
recoil = "assaultRifleBase";
recoilProne = "assaultRifleBase";
dispersion = 0.001;
minRange = 2;
minRangeProbab = 0.1;
midRange = 250;
midRangeProbab = 0.7;
maxRange = 400;
maxRangeProbab = 0.05;
};
class Burst: Mode_Burst
{
sound[] = {"\TLWFAAweapons\sound\scs90Burst2.wav",10.000000,1};
recoil = "assaultRifleBase";
recoilProne = "assaultRifleBase";
dispersion = 0.002500;
};
class FullAuto: Mode_FullAuto
{
sound[] = {"\TLWFAAweapons\sound\scs90Burst.wav",5.623414,1};
reloadTime = 0.08;
ffCount = 30;
recoil = "assaultRifleBase";
recoilProne = "assaultRifleBase";
dispersion = 0.0035;
minRange = 2;
minRangeProbab = 0.1;
midRange = 50;
midRangeProbab = 0.7;
maxRange = 60;
maxRangeProbab = 0.05;
};
class Library
{
libTextDesc = "Iranian copy of the AK-74 rifle";
};
};
};
Hope this has helped you