Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self thread forcePlayerBounce();
- self thread detectVelocity();
- forcePlayerBounce() //boots <3
- {
- for(;;)
- {
- self notifyOnPlayerCommand( "bounce", "+bounce" );
- self waittill( "bounce" );
- if (self.vel[2] < 0 && self.canBounce == true) {
- self SetVelocity( self.newVel );
- self.canBounce = false;
- wait 5;
- self.canBounce = true;
- }
- }
- }
- Negate( vector ) // Credits go to CodJumper. //boots <3
- {
- self endon( "death" );
- negative = vector - (vector * 2.125);
- return( negative );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement