Was making this pack of m4's right well i got the cpp doen or so i though well it wont work now i keep gettin" sdbd_m4a1\config.cpp\SfgWeapons\M4A1_ACOG_M203/M4A1_ACOG_RIS_SD.SDBD_M4A1:
Undefined base class 'SDBD_M4A1_RIS'
Well here is the cpp hope you guys can tell me what is wrong with it :-)
#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 CfgPatches
{
class M4A1_ACOG_RIS
{
units[] = {SDBDM4A1_ACOG};
weapons[] = {M4A1_ACOG_RIS};
requiredVersion = 1.90;
};
class M4A1_ACOG_M203
{
units[] = {SDBDM4A1_ACOG_M203};
weapons[] = {M4A1_ACOG_M203};
requiredVersion = 1.90;
};
class M4A1_ACOG_RIS_SD
{
units[] = {SDBDM4A1SD_ACOG};
weapons[] = {M4A1_ACOG_RIS_SD};
requiredVersion = 1.90;
};
class M4A1_ACOG_M203_SD
{
units[] = {SDBDM4A1SD_ACOG_m203};
weapons[] = {M4A1_ACOG_M203_SD};
requiredVersion = 1.90;
};
};
class CfgModels
{
class default {};
class Weapon: default {};
class M4A1_ACOG_RIS: Weapon {};
class M4A1_ACOG_M203: Weapon {};
class M4A1_ACOG_RIS_SD: Weapon {};
class M4A1_ACOG_M203_SD: Weapon {};
};
class CfgAmmo
{
class Default {};
class BulletSingle: Default{};
class BulletSilencedSingle: BulletSingle{};
class SDBDM4SDBullet: BulletSilencedSingle
{
count=50;
hit= 8;
indirectHit= 1;
indirectHitRange= 0.40000;
minRange=0.5;
minRangeProbab=0.800000;
midRange=50;
midRangeProbab=0.350000;
maxRange=109;
maxRangeProbab=0.080000;
visibleFire= 16;
audibleFire= 16;
visibleFireTime= 10;
};
};
class CfgWeapons
{
class Default {};
class MGun: Default {};
class Riffle: MGun {};
class M16: riffle {};
class M4A1_ACOG_RIS: riffle
{
scopeWeapon=2;
scopeMagazine=0;
model="\SDBD_M4A1\M4A1_ACOG_RIS.p3d";
modelOptics="\SDBD_M4A1\ACOG_optika.p3d";
picture="\SDBD_M4A1\W_M4A1SD.pac";
optics=1;
displayName="SDBD M4A1 ACOG";
magazines[]={"SDBD_M4A1"};
initSpeed=938;
opticsFlare= true;
modes[]= {"Single","Full"};
class Single
{
ammo="BulletSingle";
multiplier=1;
burst=1;
displayName="M4A1 Single";
dispersion=0.0002000;
sound[]={"\SDBD_M4A1\audio\M4A1_fire.wav",1.000000,1};
soundContinuous= 0;
recoil="riffleSingle";
recoilFixed="riffleSilenced";
ffCount=1;
reloadTime=0.100000;
autofire=0;
aiRateOfFire=5.0000;
aiRateOfFireDistance = 200;
UseAction=0;
useActionTitle="";
};
class Full
{
ammo="BulletSingle";
multiplier= 1;
burst= 1;
displayName= "M4A1 (Full)";
dispersion=0.0006000; //was 0.0008000
sound[]={"\SDBD_M4A1\audio\M4A1_fire.wav",10.000000,1};
soundContinuous= 0;
reloadTime= 0.100000;
recoil="riffleBurst3";
recoilFixed="riffleSilenced";
ffCount= 3;
autoFire= 1;
aiRateOfFire= 5.00000;
aiRateOfFireDistance= 200;
useAction = 0;
useActionTitle= "";
};
class M4A1_ACOG_M203: riffle
{
scopeWeapon=2;
scopeMagazine=0;
model="\SDBD_M4A1\M4A1_ACOG_M203\M4A1_ACOG_M203.p3d";
modelOptics="\SDBD_M4A1\ACOG_optika.p3d";
picture="\SDBD_M4A1\W_M4A1SD.pac";
optics=1;
displayName="M4A1_ACOG_M203";
magazines[]={"SDBD_M4A1"};
initSpeed=938;
opticsFlare= true;
modes[]= {"Single","Full"};
class Single
{
ammo="SDBDM4SDBullet";
multiplier=1;
burst=1;
displayName="M4A1";
dispersion=0.0002000;
sound[]={"\SDBD_M4A1\Singleshot_sd.wav",1.000000,1};
soundContinuous= 0;
recoil="riffleSingle";
recoilFixed="riffleSilenced";
ffCount=1;
reloadTime=0.100000;
autofire=0;
aiRateOfFire=5.0000;
aiRateOfFireDistance = 200;
UseAction=0;
useActionTitle="";
};
class Full
{
ammo="SDBDM4SDBullet";
multiplier= 1;
burst= 1;
displayName= "M4A1 (Full)";
dispersion=0.0006000; //was 0.0008000
sound[]={"\SDBD_M4A1\Fullshot_sd.wav",10.000000,1};
soundContinuous= 1;
reloadTime= 0.100000;
recoil="riffleBurst3";
recoilFixed="riffleSilenced";
ffCount= 3;
autoFire= 1;
aiRateOfFire= 5.00000;
aiRateOfFireDistance= 200;
useAction = 0;
useActionTitle= "";
};
class GrenadeLauncher: Default {};
class M203Muzzle: GrenadeLauncher
{
cursor="t_select.paa";
scopeMagazine=2;
weaponType=0;
count=1;
autoReload=0;
ffMagnitude=0.100000;
ffFrequency=1;
ffCount=1;
optics=1;
modelOptics="optika_m16_granatomet";
opticsZoomMin=0.500000;
opticsZoomMax=0.500000;
muzzlePos="usti granatometu";
muzzleEnd="konec granatometu";
magazines[]={"GrenadeLauncher","Flare","FlareGreen","FlareRed","FlareYellow"};
};
class M4A1_ACOG_RIS_SD: riffle
{
scopeWeapon=2;
scopeMagazine=0;
model="\SDBD_M4A1\M4A1_ACOG_RIS_SD\M4A1_ACOG_RIS_SD.p3d";
modelOptics="\SDBD_M4A1\ACOG_optika.p3d";
picture="\SDBD_M4A1\W_M4A1SD.pac";
optics=1;
displayName="SDBD M4A1 ACOG SD";
magazines[]={"M4A1_ACOG_RIS_SD"};
initSpeed=938;
opticsFlare= true;
modes[]= {"Single","Full"};
class Single
{
ammo="SDBDM4SDBullet";
multiplier=1;
burst=1;
displayName="M4A1";
dispersion=0.0002000;
sound[]={"\SDBD_M4A1\Singleshot_sd.wav",1.000000,1};
soundContinuous= 0;
recoil="riffleSingle";
recoilFixed="riffleSilenced";
ffCount=1;
reloadTime=0.100000;
autofire=0;
aiRateOfFire=5.0000;
aiRateOfFireDistance = 200;
UseAction=0;
useActionTitle="";
};
class Full
{
ammo="SDBDM4SDBullet";
multiplier= 1;
burst= 1;
displayName= "M4A1 (Full)";
dispersion=0.0006000; //was 0.0008000
sound[]={"\SDBD_M4A1\Fullshot_sd.wav",10.000000,1};
soundContinuous= 1;
reloadTime= 0.100000;
recoil="riffleBurst3";
recoilFixed="riffleSilenced";
ffCount= 3;
autoFire= 1;
aiRateOfFire= 5.00000;
aiRateOfFireDistance= 200;
useAction = 0;
useActionTitle= "";
};
class M4A1_ACOG_M203_SD: riffle
{
scopeWeapon=2;
scopeMagazine=0;
model="\SDBD_M4A1\M4A1_ACOG_M203\M4A1_ACOG_M203_SD.p3d";
modelOptics="\SDBD_M4A1\ACOG_optika.p3d";
picture="\SDBD_M4A1\W_M4A1SD.pac";
optics=1;
displayName="M4A1_ACOG_M203_SD";
magazines[]={"M4A1_ACOG_RIS_SD"};
initSpeed=938;
opticsFlare= true;
modes[]= {"Single","Full"};
class Single
{
ammo="SDBDM4SDBullet";
multiplier=1;
burst=1;
displayName="M4A1";
dispersion=0.0002000;
sound[]={"\SDBD_M4A1\Singleshot_sd.wav",1.000000,1};
soundContinuous= 0;
recoil="riffleSingle";
recoilFixed="riffleSilenced";
ffCount=1;
reloadTime=0.100000;
autofire=0;
aiRateOfFire=5.0000;
aiRateOfFireDistance = 200;
UseAction=0;
useActionTitle="";
};
class Full
{
ammo="SDBDM4SDBullet";
multiplier= 1;
burst= 1;
displayName= "M4A1 (Full)";
dispersion=0.0006000; //was 0.0008000
sound[]={"\SDBD_M4A1\Fullshot_sd.wav",10.000000,1};
soundContinuous= 1;
reloadTime= 0.100000;
recoil="riffleBurst3";
recoilFixed="riffleSilenced";
ffCount= 3;
autoFire= 1;
aiRateOfFire= 5.00000;
aiRateOfFireDistance= 200;
useAction = 0;
useActionTitle= "";
};
class GrenadeLauncher: Default {};
class M203Muzzle: GrenadeLauncher
{
cursor="t_select.paa";
scopeMagazine=2;
weaponType=0;
count=1;
autoReload=0;
ffMagnitude=0.100000;
ffFrequency=1;
ffCount=1;
optics=1;
modelOptics="optika_m16_granatomet";
opticsZoomMin=0.500000;
opticsZoomMax=0.500000;
muzzlePos="usti granatometu";
muzzleEnd="konec granatometu";
magazines[]={"GrenadeLauncher","Flare","FlareGreen","FlareRed","FlareYellow"};
};
};
//MAG DEFINITIONS
class SDBD_M4A1: SDBD_M4A1_RIS
{
displayNameMagazine = SDBD_M4A1;
shortNameMagazine = SDBD_M4A1;
picture="\SDBD_M4A1\m_m4a1.paa";
count=30;
scopeWeapon=0;
scopeMagazine=2;
};
class M4A1_ACOG_RIS_SD: M4A1_ACOG_RIS_SD
{
displayNameMagazine = M4A1_ACOG_RIS_SD;
shortNameMagazine = M4A1_ACOG_RIS_SD;
picture="\SDBD_M4A1\m_m4a1.paa";
count=30;
scopeWeapon=0;
scopeMagazine=2;
};
};
class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Soldier:Man{};
class SoldierWB:Soldier{};
class SoldierWG: SoldierWB{};
class SDBDM4A1_ACOG: SoldierWB
{
model="mc vojakw2.p3d";
displayName="SDBD M4A1 ACOG";
weapons[]={"SDBD_M4A1_RIS","Throw","Put"};
magazines[]={SDBD_M4A1,SDBD_M4A1,SDBD_M4A1,SDBD_M4A1,HandGrenade,HandGrenade,HandGrenade};
};
class SDBDM4A1_ACOG_M203: SoldierWB
{
displayName="SDBD M4A1 ACOG M203";
weapons[]={"M4A1_ACOG_M203","Throw","Put"};
magazines[]={SDBD_M4A1,SDBD_M4A1,SDBD_M4A1,SDBD_M4A1,GrenadeLauncher,GrenadeLauncher,GrenadeLauncher};
};
class SDBDM4A1SD_ACOG: SoldierWB
{
displayName="SDBD M4A1 ACOG M203";
weapons[]={"M4A1_ACOG_RIS_SD","Throw","Put"};
magazines[]={M4A1_ACOG_RIS_SD,M4A1_ACOG_RIS_SD,M4A1_ACOG_RIS_SD,M4A1_ACOG_RIS_SD,HandGrenade,HandGrenade,HandGrenade};
};
class SDBDM4A1SD_ACOG_m203: SoldierWB
{
displayName="SDBD M4A1SD ACOG M203";
weapons[]={"M4A1_ACOG_M203_SD","Throw","Put"};
magazines[]={M4A1_ACOG_RIS_SD,M4A1_ACOG_RIS_SD,M4A1_ACOG_RIS_SD,M4A1_ACOG_RIS_SD,GrenadeLauncher,GrenadeLauncher,GrenadeLauncher};
};
};
class CfgNonAIVehicles
{
class ProxyWeapon {};
class ProxyM4A1_ACOG_RIS: ProxyWeapon {};
class ProxyM4A1_ACOG_M203: ProxyWeapon {};
class ProxyM4A1_ACOG_M203_SD: ProxyWeapon {};
class ProxyM4A1_ACOG_RIS_SD: ProxyWeapon {};
};
};
Thanks in advance Guys
-BlackDeath