Raised This Month: $ Target: $400
 0% 

Ham_Player_Jump


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 10-12-2012 , 12:24   Re: Ham_Player_Jump
Reply With Quote #9

Quote:
Originally Posted by xDrugz View Post
Hook player keys and detect when he press space key.
Then increase your variable by 1 every time he uses space key.
Better way
PHP Code:
#define IN_JUMP                         (1<<1) 
then check if velocity[2] is more than 1.0 and less than -1.0, this will means that player is in air.
.Dare Devil. is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode