FineNerds

ks_double_jump

Dec 2nd, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. /*
  2. *    Black Ops 2 - GSC Studio by iMCSx
  3. *
  4. *    Name : ks_double_jump
  5. *    Description : Double Jump
  6. *    Date : 2014/12/02 - 19:44:33  
  7. *
  8. */ 
  9.  
  10. doDoubleJump()
  11. {
  12.     self endon("disconnect");
  13.     self endon("death");
  14.     self iPrintlnBold("Your Exo is Online! You can double jump!");
  15.     for(;;)
  16.     {
  17.         if(self jumpButtonPressed() && !self isOnGround && self.jumpT == 2)
  18.         {
  19.             self setVelocity(self getVelocity()+(0, 0, 999));
  20.         }
  21.         wait 0.3;
  22.     }
  23. }
  24.  
  25. doubleJumpT()
  26. {
  27.     self endon("death");
  28.     self.jumpT = 0
  29.     for(;;)
  30.     {
  31.         if(self.jumpT = 0 && self jumpButtonPressed())
  32.         {
  33.             self.jumpT++;
  34.         }
  35.         wait 0.3;
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment