public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
if (Main.myPlayer == player.whoAmI) //only on this client
{
int projectileID = Projectile.NewProjectile(Main.MouseWorld.X, Main.MouseWorld.Y, 0, 0, item.shoot, damage, knockBack, player.whoAmI); //Create the projectile at the mouse's position
if (Main.netMode == 1) //when playing as a client
{
NetMessage.SendData(27, -1, -1, null, projectileID); //update the server and all other clients
}
}
return false; //don't shoot the projectile automatically, I've just done it manually
}