OK, have a look.
You might need to chnage some of the model names and display names to suit your preferences.
// BW's G36 Range
// config by
// Lean Bear
// version 0.1 BETA
// Here's your config.cpp
// Feel free to edit it etc.
// There are probably some errors/ bugs so send me a PM
// telling me what they are and I'll fix 'em for you ^_^
// There are 4 units under the West side under "BW Men"
// You can change this to whatever you want though.
// here's yer basic defines etc.
#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
#define private 0
#define protected 1
#define public 2
#define WeaponNoSlot
#define WeaponSlotPrimary
#define WeaponSlotSecondary
#define WeaponSlotItem
#define WeaponSlotBinocular
#define WeaponHardMounted
class CfgPatches
{
class g36BWAddon
{
units[]={"g36Man","g36shortMan","g36grenMan","g36shortgrenMan"};
weapons[]={"g36","g36short","g36gren","g36shortgren"};
requiredVersion=1.85;
};
};
class CfgAmmo
{
class default {};
class BulletSingle: default {};
class G36a: BulletSingle {};
class g36: G36A
{
hit=11;
indirectHit=1;
indirectHitRange=0.1;
};
};
class CfgWeapons
{
class Default {};
class MGun:Default {};
class Riffle:MGun {};
class G36aBase:Riffle
class g36: G36aBase
{
scopeWeapon=2;
scopeMagazine=2;
model="\G36A\g36.p3d"; // You may need to change this to your model .p3d filename
modelOptics="\G36A\G36_optics";
picture="\G36A\w_g36.paa";
optics=1;
opticsZoomMin=0.28;
opticsZoomMax=0.28;
distanceZoomMin=300;
distanceZoomMax=300;
displayName="G36 BW";
magazines[]={"g36"};
modes[]={"Single","Burst","Fullauto"};
class Single
{
ammo="g36";
multiplier=1;
burst=1;
displayName="$STR_DN_ADD_G36";
dispersion=0.0002;
sound[]={"\G36A\g36a.wss",1.0,1};
soundContinuous=0;
reloadTime=0.1;
ffCount=1;
recoil="riffleSingle";
autoFire=0;
aiRateOfFire=0.5;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
class Burst
{
ammo="g36";
multiplier=1;
burst=3;
displayName="$STR_DN_ADD_G36_BURST";
dispersion=0.001;
sound[]={"\G36A\g36a_burst",1.0,1};
soundContinuous=0;
reloadTime=0.1;
ffCount=3;
recoil="riffleBurst3";
autoFire=0;
aiRateOfFire=0.5;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
class FullAuto
{
ammo="g36";
multiplier=1;
burst=1;
displayName="G36 Auto";
dispersion=0.0003;
sound[]={"\G36A\g36a_full",1.0,1};
soundContinuous=0;
reloadTime=0.07;
ffCount=1;
recoil="riffleBurst3";
autoFire=1;
aiRateOfFire=0.5;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
};
class G36aMag:G36aBase
class g36Mag: G36aMag
{
scopeMagazine=2;
picture="\G36a\m_G36.paa";
};
class G36a:G36aBase
class g36: G36a
{
scopeWeapon=2;
magazines[]={"g36Mag"};
};
class g36short: g36
{
model="\G36A\g36short.p3d"; // You may need to change this to your model .p3d filename
displayName="G36 Short BW";
class GrenadeLauncher: Default {};
class M16GrenadeLauncher: GrenadeLauncher {};
class g36gren: M16GrenadeLauncher
{
//--
scopeWeapon = public;
scopeMagazine = private;
weaponType = WeaponSlotPrimary;
valueWeapon = 2;
valueMagazine = 2;
displayName = "G36 w/ Grenade;
model="\G36BW\g36gren.p3d"; // You might need to change this to suit your .p3d filename
picture="";
uiPicture = igrenadier;
muzzles[] = {g36Muzzle, g36grenMuzzle};
class M16Muzzle : M16
class g36Muzzle : M16Muzzle
{
magazines[] = {g36};
};
class M203Muzzle : GrenadeLauncher
class g36grenMuzzle : M203Muzzle
{
displayName="G36 Grenade";
sound[]={weapons\M16GrenadeLaunch, db-70,1};
magazines[] = {GrenadeLauncher, Flare, FlareGreen, FlareRed, FlareYellow};
//optics = true;
//opticsZoomMin=0.40;
//opticsZoomMax=0.40;
//modelOptics="optika_m16_granatomet";
}
canDrop = true;
};
class g36shortgren: g36gren
{
//--
scopeWeapon = public;
scopeMagazine = private;
displayName = "G36 Short w/ Grenade;
model="\G36BW\g36shortgren.p3d"; // You might need to change this to suit your .p3d filename
picture="";
uiPicture = igrenadier;
};
};
class CfgVehicles
{
class All {};
class AllVehicles:All {};
class Land:AllVehicles {};
class Man:Land {};
class Soldier:Man {};
class SoldierWB:Soldier {};
class SoldierWG36a:SoldierWB {};
class g36Man: SoldierWG36a
{
displayName="BW G36 Soldier";
vehicleClass"BW Men";
weapons[]={"g36","Throw","Put"};
magazines[]={"g36Mag","g36Mag","g36Mag","g36Mag","g36Mag","HandGrenade","HandGrenade","HandGrenade","HandGrenade","HandGrenade"};
};
class g36shortMan: g36Man
{
displayName="BW G36 Short Soldier";
weapons[]={"g36short","Throw","Put"};
magazines[]={"g36Mag","g36Mag","g36Mag","g36Mag","g36Mag","HandGrenade","HandGrenade","HandGrenade","HandGrenade","HandGrenade"};
};
class g36grenMan: g36Man
{
displayName="BW G36 Grenade Soldier";
weapons[]={"g36gren","Throw","Put"};
magazines[]={"g36Mag","g36Mag","g36Mag","g36Mag","GrenadeLauncher","GrenadeLauncher","HandGrenade","HandGrenade","HandGrenade","HandGrenade"};
};
class g36shortgrenMan: g36Man
{
dislplayName="BW G36 S G SOldier";
weapons[]={"g36shortgren","Throw","Put"};
magazines[]={"g36Mag","g36Mag","g36Mag","g36Mag","GrenadeLauncher","GrenadeLauncher","HandGrenade","HandGrenade","HandGrenade","HandGrenade"};
};
};
class CfgNonAIVehicles
{
class ProxyWeapon {};
class ProxyG36:ProxyWeapon
{
};
};