Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. public override bool Shoot(Player player, ref Vector2 position, ref float velo, ref int shoot, ref int damage, ref float knockBack)
  2. {
  3.  
  4. for (int i = 0; i < 2; i++)
  5. {
  6. float f = Main.rand.NextFloat() * ((float)Math.PI * 2f);
  7. Vector2 vector19 = position + f.ToRotationVector2() * MathHelper.Lerp(20f, 60f, Main.rand.NextFloat());
  8. Vector2 velo = Main.MouseWorld - vector19;
  9. velo.Normalize();
  10. Projectile.NewProjectile(vector19.X, vector19.Y, velo, shoot, damage, knockBack, player.whoAmI, 0f, 0f);
  11. }
  12. return false;
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement