Example #1
0
        protected override ItemSpec GetDefaultObject()
        {
            var ret = new ItemSpec();

            ret.SetDescription("A single-action, semi-automatic,\nmagazine-fed, recoil-operated handgun.");
            ret.SetName("Pistol");
            ret.SetImageName(Icons.PistolM1911);
            ret.SetModelName(Models.Pistol01);
            ret.SetStackMax(1);
            ret.SetAmmoType(AmmoType.Bullet9Mm);
            ret.SetWeaponType(WeaponTypes.Pistol);
            ret.SetReloadClipSize(-1);
            ret.SetStartReloadTime(500);
            ret.SetReloadTime(2500);
            ret.SetStopReloadTime(1);
            ret.SetClipSize(12);
            ret.SetWeaponNoiseDistance(50f);
            ret.SetCost(10);

            return(ret);
        }
Example #2
0
        protected override ItemSpec GetDefaultObject()
        {
            var ret = new ItemSpec();

            ret.SetDescription("Spray happy");
            ret.SetName("Uzi");
            ret.SetImageName(Icons.PistolM1911);
            ret.SetModelName(Models.Pistol01);
            ret.SetStackMax(1);
            ret.SetAmmoType(AmmoType.Bullet9Mm);
            ret.SetWeaponType(WeaponTypes.Uzi);
            ret.SetReloadClipSize(-1);
            ret.SetStartReloadTime(500);
            ret.SetReloadTime(2500);
            ret.SetStopReloadTime(1);
            ret.SetClipSize(28);
            ret.SetWeaponNoiseDistance(50f);
            ret.SetCost(10);
            ret.SetWeaponDelay(3);

            return(ret);
        }
Example #3
0
        protected override ItemSpec GetDefaultObject()
        {
            var spec = new ItemSpec();

            spec.SetDescription("A big fat shotgun");
            spec.SetName("Shotgun");
            spec.SetCost(35);
            spec.SetImageName(Icons.Shotgun);
            spec.SetModelName(Models.Pistol01);
            spec.SetStackMax(1);
            spec.SetAmmoType(AmmoType.ShotgunSlug);
            spec.SetWeaponType(WeaponTypes.Shotgun);
            spec.SetReloadClipSize(1);
            spec.SetStartReloadTime(0);
            spec.SetReloadTime(500);
            spec.SetStopReloadTime(50);
            spec.SetClipSize(8);
            spec.SetBulletSpread(0.4f);
            spec.SetWeaponNoiseDistance(80f);

            return(spec);
        }