Ejemplo n.º 1
0
        protected override ItemSpec GetDefaultObject()
        {
            var spec = new ItemSpec();

            spec.SetDescription("Headwear");
            spec.SetName("Headwear");
            spec.SetCost(10);
            spec.SetImageName(Icons.HeadItem);
            spec.SetModelName(Models.TopHat01);
            spec.AddArmourType(ArmourWearLocation.Head);
            spec.SetStackMax(1);

            return(spec);
        }
Ejemplo n.º 2
0
        protected override ItemSpec GetDefaultObject()
        {
            var spec = new ItemSpec();

            spec.SetDescription("Wooden plank - used for building");
            spec.SetName("Wooden plank");
            spec.SetCost(10);
            spec.SetImageName(Icons.WoodenPlank01);
            spec.SetModelName(Models.WoodenPlank01);
            spec.SetResourceAmount(1);
            spec.SetResourceType(ResourceType.Wood);
            spec.SetStackMax(64);

            return(spec);
        }
Ejemplo n.º 3
0
        protected override ItemSpec GetDefaultObject()
        {
            var ret = new ItemSpec();

            ret.SetDescription("Something for the pain\nRight click to use");
            ret.SetName("Health pack");
            ret.SetCost(5);
            ret.SetImageName(Icons.FirstAidKit);
            ret.SetModelName(Models.HealthPack01);

            ret.SetHealAmount(50);
            ret.SetStackMax(5);
            ret.SetBaseUsageTime(3000);

            return(ret);
        }
Ejemplo n.º 4
0
        protected override ItemSpec GetDefaultObject()
        {
            var spec = new ItemSpec();

            spec.SetDescription("Shotgun Ammo");
            spec.SetName("Slugs");
            spec.SetCost(1);
            spec.SetImageName(Icons.ShotgunAmmo);
            spec.SetModelName(Models.AmmoCrate01);
            spec.SetStackMax(16);
            spec.SetAmmoType(AmmoType.ShotgunSlug);
            spec.SetDamageMin(2f);
            spec.SetDamageMax(3f);
            spec.SetDamageType(DamageTypeEnum.LowCaliberBullet);
            return(spec);
        }
Ejemplo n.º 5
0
        protected override ItemSpec GetDefaultObject()
        {
            var spec = new ItemSpec();

            spec.SetDescription("9×19mm Parabellum");
            spec.SetName("9mm");
            spec.SetCost(1);
            spec.SetImageName(Icons.GenericAmmo);
            spec.SetModelName(Models.AmmoCrate01);
            spec.SetStackMax(128);
            spec.SetAmmoType(AmmoType.Bullet9Mm);
            spec.SetDamageMin(4.0f);
            spec.SetDamageMax(5.0f);
            spec.SetDamageType(DamageTypeEnum.LowCaliberBullet);

            return(spec);
        }
Ejemplo n.º 6
0
        protected override ItemSpec GetDefaultObject()
        {
            var ret = new ItemSpec();

            ret.SetDescription("The mauling of a zombie");
            ret.SetName("Grrg Arg");
            ret.SetImageName(Icons.PistolM1911);
            ret.SetModelName(Models.Pistol01);
            ret.SetStackMax(1);
            ret.SetWeaponType(WeaponTypes.ZombieMaul);
            ret.SetWeaponNoiseDistance(2f);

            ret.SetDamageMin(10);
            ret.SetDamageMax(20);
            ret.SetDamageType(DamageTypeEnum.Maul);
            ret.SetMeleeRange(0.5f);
            ret.SetWeaponDelay(15);

            return(ret);
        }
Ejemplo n.º 7
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);
        }
Ejemplo n.º 8
0
        protected override ItemSpec GetDefaultObject()
        {
            var ret = new ItemSpec();

            ret.SetDescription("A solid blank of wood usually used for hitting balls\nWill probably work quite well on zombies at close range");
            ret.SetName("Cricket bat");
            ret.SetImageName(Icons.CricketBat01);
            ret.SetModelName(Models.CricketBat01);
            ret.SetStackMax(1);
            ret.SetWeaponType(WeaponTypes.CricketBat);
            ret.SetWeaponNoiseDistance(1f);

            ret.SetDamageMin(10);
            ret.SetDamageMax(20);
            ret.SetDamageType(DamageTypeEnum.BluntMelee);
            ret.SetMeleeRange(1.3f);
            ret.SetWeaponDelay(50);
            ret.SetCost(10);

            return(ret);
        }
Ejemplo n.º 9
0
        private ItemSpec GenerateImpl(FoodType foodType)
        {
            if (_itemSpec.ContainsKey(foodType))
            {
                return(_itemSpec[foodType]);
            }

            var spec = new ItemSpec();

            spec.SetName(GetItemName(foodType));
            spec.SetImageName(GetImageName(foodType));
            spec.SetDescription(GetItemDescription(foodType));
            spec.SetModelName(Models.AmmoCrate01);
            spec.SetHungerReduceAmount(GetHungerReduceAmount(foodType));
            spec.SetBaseUsageTime(3000);
            spec.SetStackMax(1);

            spec = StaticItemSpecCache.Instance.AddSpec(spec);

            return(spec);
        }
Ejemplo n.º 10
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);
        }
Ejemplo n.º 11
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);
        }