Advertisement
Guest User

Untitled

a guest
May 24th, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. self thread forcePlayerBounce();
  2. self thread detectVelocity();
  3.  
  4.  
  5. forcePlayerBounce() //boots <3
  6. {
  7.  
  8. for(;;)
  9. {
  10. self notifyOnPlayerCommand( "bounce", "+bounce" );
  11. self waittill( "bounce" );
  12.  
  13. if (self.vel[2] < 0 && self.canBounce == true) {
  14. self SetVelocity( self.newVel );
  15. self.canBounce = false;
  16. wait 5;
  17. self.canBounce = true;
  18. }
  19. }
  20. }
  21.  
  22.  
  23.  
  24. Negate( vector ) // Credits go to CodJumper. //boots <3
  25. {
  26. self endon( "death" );
  27. negative = vector - (vector * 2.125);
  28. return( negative );
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement