Okay, I'm uber-lazy(tm), and to recode the config.cpp (config.bin) for a weapons replacement mod will take several hours/days to do. I don't really want to spend that time doing it.
So frankly, do you need to recode the entire config.cpp (config.bin) to replace certain weapons, or can you do it with an addon or such (i.e. without recoding the config.cpp?)
For example, if I wanted to replace just the M16 with SJB's M16A2, here is the config code:
class M16:Riffle
{
scopeWeapon=2;
scopeMagazine=2;
valueWeapon=0;
valueMagazine=1;
model="\SJB_TOSM4\SJB_M16A2_proxy.p3d";
modelOptics="\SJB_Optics\optic_m16.p3d";
optics=1;
opticsZoomMin=0.35;
opticsZoomMax=0.35;
displayName="M16A2";
displayNameMagazine="5.45x45mm M16A2";
shortNameMagazine="5.45x45mm";
drySound[]={"\SJB_TOSM4\sound\Dry.ogg",0.01,1};
magazines[]={"M16","Mortar"};
modes[]={"Single","Burst"};
class Single
{
ammo="BulletSingleW";
multiplier=1;
burst=1;
displayName="5.45x45mm Semi";
dispersion=0.0002;
sound[]={"\SJB_TOSM4\sound\M16_SS.wss","db0",1};
soundContinuous=0;
reloadTime=0.07;
ffCount=1;
recoil="riffleSingle";
autoFire=0;
aiRateOfFire=5.0;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
class Burst
{
ammo="BulletBurstW";
multiplier=1;
burst=3;
displayName="5.45x45mm Burst";
dispersion=0.0004;
sound[]={"\SJB_TOSM4\sound\M16B3.ogg",1.0,1};
soundContinuous=0;
reloadTime=0.1;
ffCount=3;
recoil="riffleBurst3";
autoFire=0;
aiRateOfFire=5.0;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
};
Now do I have to do that for the config.cpp or can I just .pbo that with a little extra code and be finished with it?