Punch! Hit a player to a galaxy far far away! :D

Discussion in 'Archived: Plugin Requests' started by Benjerji, Apr 2, 2013.

?

Is it possible?

  1. Yes!

    66.7%
  2. Nope, immpossible

    33.3%
  1. Offline

    Benjerji

    Basically what this plugin will do is, someone uses the /punch command while behind a player/entity and then the players fist will turn into something like a Knockback 500 fist, and when you use the /punch command it will make them fly far away.
     
  2. Offline

    MysteryManX

    Do you mean like the super punch cheat from San Andreas? Because I'd love to see that! :D
     
  3. Code:
    float knockback = 500;
    player.setVelocity(player.getVelocity().add(player.getLocation().toVector().subtract(damager.getLocation().toVector()).normalize().multiply(knockback)));
    applies knockback 500 to someone when they're hit by someone (Apply to a EntityDamageByEntityEvent), have fun. (20 already made me fly quite a bit)
     

Share This Page