tModLoader How do I move my gun sprite to where the handle is in the players hand?

jaractus

Ice Queen
Hi, more modding trouble.
So, I'm wanting to make it to where the handle of my gun is in the player's hand, but I don't know how.
Please help.

Here's the code of the gun:
Code:
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace MageIsland.Items.Weapons.Ranged
{
    public class DomesticatedUzi : ModItem
    {
        public override void SetStaticDefaults()
        {
            Tooltip.SetDefault("Made this because my dad wanted me to."
                + string.Format("\nYou're welcome dad."));
        }

        public override void SetDefaults()
        {
         
            item.damage = 72;
            item.ranged = true;
            item.width = 49;
            item.height = 46;
            item.useTime = 5;
            item.useAnimation = 5;
            item.useStyle = 5;
            item.noMelee = true;
            item.knockBack = 2;
            item.value = 100000;
            item.rare = -11;
            item.UseSound = SoundID.Item11;
            item.autoReuse = true;
            item.shoot = 10;
            item.shootSpeed = 20f;
            item.useAmmo = AmmoID.Bullet;
        }

        public override bool ConsumeAmmo(Player player)
        {
            return Main.rand.NextFloat() >= .47f;
        }
    }
}

Here's a screenshot of me using it:
20181022210926_1.jpg


Should I upload the sprite?
Anyways thanks for help if possible.
 
Back
Top Bottom