Home   Help Search Login Register  

Author Topic: Pistol .cpp  (Read 995 times)

0 Members and 1 Guest are viewing this topic.

cpt.Hawkeyez

  • Guest
Pistol .cpp
« on: 26 Jan 2004, 04:57:38 »
can someone point me to a place where I can get help for writing a cpp for a pistol because I need a config.cpp for a pistol I made can anyone write this for me? Thanks
Also on a side not We need members for our mod team okay dont wanna go off topic I cant find a screensot but if anyone watns to see the colt 45 im making ask.
/CymPatheeY

Cpl. Vagabond

  • Guest
Re:Pistol .cpp
« Reply #1 on: 26 Jan 2004, 13:29:56 »
i can give you a pistol config from one of my pistols but you'll have to modify
Code: [Select]
class CfgPatches
{
        class VAG_Nighthawk
        {
           units[]={};
           weapons[]={"VAG_Nighthawk"};
           requiredVersion=1.850000;
           requiredAddons[]={BIS_Weaponpack,BIS_Resistance};
        };
};

class CfgModels
{
        class Default {};
        class Weapon: Default {};
        class VAG_Nighthawk: Weapon {};
};


class CfgRecoils
{
        VAG_NighthawkpistolRecoil[]={0.01,0.01,0.1,0.1,0,0};
};

class CfgAmmo
{
        class Default {};
        class BulletSingle: Default {};
        class VAG_NighthawkAmmo: BulletSingle
        {
           hit=7;
           indirectHit=1;
           indirectHitRange=0.050000;  
           minRange=1;
           minRangeProbab=0.100000;
           midRange=50;
           midRangeProbab=0.900000;
           maxRange=100;
           maxRangeProbab=0.050000;
           cartridge="FxCartridgeSmall";      
        };
};

class CfgWeapons
{
        class Default {};
        class MGun: Default {};
        class Riffle: MGun {};
        class HandGunBase: Riffle {};
// The weapon
        class VAG_Nighthawk: HandGunBase
        {
           access=2;
           scopeWeapon=2;
           scopeMagazine=0;
           weaponType=2;
           autoReload=0;
           model="\VAG_Nighthawk\Nighthawk.p3d";
           modelOptics="\steyr\optika_steyr.p3d";
           picture="\VAG_Nighthawk\hawk.paa";
           uiPicture="\misc\iPistole.paa";
           displayName="Nighthawk";
           modes[]={"Single"};
           magazines[]={"VAG_NighthawkMag"};
        };

// The magazine
        class VAG_NighthawkMag: HandGunBase
        {
           scopeWeapon=0;
           scopeMagazine=2;
           dexterity=2;
//           picture="\VAG_Nighthawk\VAG_NighthawkMag.paa";
           picture="\O\Guns\zasobnik.paa";
           displayNameMagazine="Nighthawk Mag";
                 shortNameMagazine="Nighthawk Mag";
           magazineType=32;
           count=16;
           initSpeed=490;
           reloadTime=0.050000;
           magazineReloadTime=1.2;
           drySound[]={"weapons\M16dry",0.003162,1};
           modes[]={"Single"};
           class Single
           {
              ammo=VAG_NighthawkAmmo;
              multiplier=1;
              burst=1;
              displayName="Nighthawk";
              dispersion=0.002400;
              sound[]={"\VAG_Nighthawk\fire.wav",0.131623,0.95000};
              soundContinuous=0;
              reloadTime=0.100000;
              ffCount=1;
              recoil=VAG_NighthawkpistolRecoil;
              autoFire=0;
              aiRateOfFire=0.500000;
              aiRateOfFireDistance=50;
              useAction=0;
              useActionTitle="";
           };
        };  
};
it yourself