SpikeLicious
Terrarian
Ok, got past that problem.
I put in a fast firing gun, but when it shoots, the sound doesn't match. It plays the sound every half second even though the gun and go through a stack off 999 fast then the chain gun.
the code:
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace SWBF.Items.Weapons
{
public class DLT19 : ModItem
{
public override void SetDefaults()
{
item.name = "DLT-19";
item.damage = 5;
item.ranged = true;
item.width = 48;
item.height = 18;
item.toolTip = "A weak, but fast firing gun.";
item.useTime = 8;
item.useAnimation = 20;
item.useStyle = 5;
item.noMelee = true;
item.knockBack = 4;
item.value = 10000;
item.rare = 2;
item.useSound = 11;
item.autoReuse = true;
item.shoot = 10;
item.shootSpeed = 8f;
item.useAmmo = ProjectileID.Bullet;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 1);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
I put in a fast firing gun, but when it shoots, the sound doesn't match. It plays the sound every half second even though the gun and go through a stack off 999 fast then the chain gun.
the code:
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace SWBF.Items.Weapons
{
public class DLT19 : ModItem
{
public override void SetDefaults()
{
item.name = "DLT-19";
item.damage = 5;
item.ranged = true;
item.width = 48;
item.height = 18;
item.toolTip = "A weak, but fast firing gun.";
item.useTime = 8;
item.useAnimation = 20;
item.useStyle = 5;
item.noMelee = true;
item.knockBack = 4;
item.value = 10000;
item.rare = 2;
item.useSound = 11;
item.autoReuse = true;
item.shoot = 10;
item.shootSpeed = 8f;
item.useAmmo = ProjectileID.Bullet;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 1);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}