<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class CfgPatches
{
class shotgun
{
units[]={"shotgunCivilian6"};
weapons[]={"shotgunBase","shotgun","shotgunMag"};
requiredVersion=1.750000;
};
};
class CfgModels
{
class default {};
class Weapon: default {};
class shotgun: Weapon {};
};
class CfgRecoils
{
Shotgun3Recoil[]={0.090000,0.090000,0.01600,0.12500,0,0};
};
class CfgAmmo
{
class default {};
class BulletSingle: default {}
class shotgunAmmo: BulletSingle
{
hit=7;
indirectHit=0;
indirectHitRange=0.000000;
minRange=0
minRangeProbab=0.00000;
midRange=1
midRangeProbab=0.700000;
maxRange=3.5
maxRangeProbab=0.0350000;
};
};
class CfgWeapons
{
class Default {};
class MGun: Default {};
class Riffle: MGun {};
class HandGunBase: Riffle {};
class shotgunBase: HandGunBase
{
access=2;
scopeWeapon=2;
scopeMagazine=0;
aiRateOfFire=0.900000;
aiRateOfFireDistance=50
model="\so-shotgun\SWI_shotgun";
modelOptics="\mossberg\optika_kozlice";
displayName="Sawed-off Shotgun";
displayNameMagazine="Sawed-off Shotgun Buckshot";
shortNameMagazine="Shotgun Buckshot";
count=20;
weaponType=2;
magazineType=32;
reloadTime=0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
;
magazineReloadTime=8.000;
autoReload=0;
drySound[]={"\finmod\Sounds\Guns\m16_dry.wss",0.000316,1};
reloadSound[]={"\finmod\Sounds\Guns\shotgun_reload_pump.wss",0.000316,1};
reloadMagazineSound[]={"\finmod\Sounds\Guns\shotgun_reload.wss",0.000316,1};
sound[]={"\finmod\Sounds\Guns\shotgun_pump_action.wss",1.000000,0.98};
magazines[]={"shotgunMag"};
recoil="Shotgun3Recoil";
backgroundReload=0;
ammo="shotgunAmmo";
burst=10;
multiplier=1;
autoFire=0;
initSpeed=490;
dispersion=0.270000;
flash=""
flashSize=0
};
class shotgun: shotgunBase
{
picture="\so-shotgun\w_shot.paa";
scopeWeapon=2;
scopeMagazine=0;
};
class shotgunMag: shotgunBase
{
scopeWeapon=0;
scopeMagazine=2;
displayNameMagazine="Sawed-off Shotgun Buckshot";
shortNameMagazine="Shotgun Buckshot";
picture="\so-shotgun\w_shot.paa";
};
};
class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Land: AllVehicles {};
class Man: Land {};
class Civilian: Man {};
class Civilian6: Civilian {}
class shotgunCivilian6: Civilian6
{
access=2
displayName="Man 6 (Sawed-off Shotgun)";
weapons[]={"Throw","Put","shotgun"};
magazines[]={"shotgunMag","shotgunMag","shotgunMag","shotgunMag"};
};
}
That's config. I don't use any program called "TXTpathswap". I put textures to my gun whit o2 program.