OK, I did some reading, and fixed the initial error, however I just can't seem to get this updated config to work. Shit...all I wanted to do was reduce the ammo slot of the 203 from 2 to 1. I tried to edit the config.bin, but when I recompiled it, something must have gotten chopped off, because OFP flipped out.
the latest error:
m203a\config.cpp/CfgWeapons/M203LauncherGun/: undefined base class 'M203LauncherGun'
Can someone please check out this config, and let me know what I did wrong?
class CfgPatches
{
class M203Launcher
{
units[] = {};
weapons[] = {M203Launcher};
requiredVersion = 1.75;
};
};
class CfgAmmo
{
class Default {};
class Grenade: Default{};
class 40MMGrenade: Grenade
{
hit=20;
indirectHit=18;
indirectHitRange=7;
minRange=15;
minRangeProbab=0.300000;
midRange=80;
midRangeProbab=0.550000;
maxRange=150;
maxRangeProbab=0.000000;
model="granat";
cost=40;
simulation="shotShell";
simulationStep=0.050000;
soundHit[]={"M203A\Explosions\expl3",10.000000,1};
soundFly[]={"M203A\objects\noise",0.000032,1};
soundEngine[]={"",0.000100,4};
visibleFire=2;
audibleFire=0.250000;
visibleFireTime=0;
};
};
class CfgWeapons
{
class Default{};
class GrenadeLauncher: Default{};
class M203Launcher: GrenadeLauncher
{
cursor="t_select.paa";
scopeMagazine=2;
weaponType=0;
magazineType="1 * 256";
ammo="40MMGrenade";
displayName="GRENADE";
displayNameMagazine="40MM GRENADE";
shortNameMagazine="GRENADE";
count=1;
reloadTime=0;
sound[]={"M203A\Weapons\grenade_launch",0.000316,1};
reloadSound[]={"M203A\Weapons\M16load",0.000316,1};
initSpeed=60;
canLock=0;
autoReload=0;
ffMagnitude=0.100000;
ffFrequency=1;
ffCount=1;
recoil="Empty";
dispersion=0.015000;
aiDispersionCoefY=2.000000;
maxLeadSpeed=15;
optics=0;
muzzlePos="usti granatometu";
muzzleEnd="konec granatometu";
uiPicture="igrenadier";
};
class M16GrenadeLauncher{};
class M203LauncherGun: M16GrenadeLauncher
{
scopeWeapon=2;
scopeMagazine=0;
weaponType=1;
valueWeapon=2;
valueMagazine=2;
displayName="M16 + M203A";
model="M203A\m16_pmp_granatomet";
picture="";
uiPicture="M203A\igrenadier";
muzzles[]={"M16Muzzle","M203Muzzle"};
class M16: M16GrenadeLauncher{};
class M16Muzzle: M16
{
magazines[]={"M16"};
};
class M203Muzzle: M203LauncherGun
{
displayName="M203 Launcher";
sound[]={"M203A\weapons\M16GrenadeLaunch",0.000316,1};
magazines[]={"M203Launcher","Flare","FlareGreen","FlareRed","FlareYellow"};
};
canDrop=1;
};
};
class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Soldier:Man{};
class SoldierWB:Soldier{};
class SoldierWG:SoldierWB
class M203Soldier:SoldierWG
{
displayName = "Soldier (M203A)";
weapons[]={"M203Launcher","Throw","Put"};
magazines[]={M16,M16,M16,M16,M203Launcher,M203Launcher,M203Launcher,M203Launcher,M203Launcher,M203Launcher};
};
};
class CfgNonAIVehicles
{
class ProxyWeapon {};
class ProxyM203Launcher: ProxyWeapon {};
};