Raised This Month: $51 Target: $400
 12% 

Player force to jump


Post New Thread Reply   
 
Thread Tools Display Modes
toazron1
Senior Member
Join Date: Oct 2006
Old 03-16-2010 , 09:30   Re: Player force to jump
Reply With Quote #11

I'm pretty sure its ~=

To check if they are jumping would be

buttons & IN_JUMP

and if they are not jumping

buttons & ~(IN_JUMP)
__________________

Last edited by toazron1; 03-16-2010 at 09:33.
toazron1 is offline
Send a message via AIM to toazron1
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 03-16-2010 , 10:35   Re: Player force to jump
Reply With Quote #12

buttons ~= IN_JUMP

doesn't work. Says its an invalid expression.
__________________
Mecha the Slag is offline
toazron1
Senior Member
Join Date: Oct 2006
Old 03-16-2010 , 11:17   Re: Player force to jump
Reply With Quote #13

Oops, try buttons &= ~IN_JUMP
__________________
toazron1 is offline
Send a message via AIM to toazron1
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 03-16-2010 , 11:44   Re: Player force to jump
Reply With Quote #14

cheers
__________________
Mecha the Slag is offline
Mnkras
Senior Member
Join Date: Mar 2009
Location: 127.0.0.1
Old 03-16-2010 , 20:37   Re: Player force to jump
Reply With Quote #15

just so everyone knows, + and | do the same exact thing
__________________
Mnkras is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 03-17-2010 , 12:41   Re: Player force to jump
Reply With Quote #16

Quote:
Originally Posted by Mnkras View Post
just so everyone knows, + and | do the same exact thing
No they dont.
__________________
plop
p3tsin is offline
toazron1
Senior Member
Join Date: Oct 2006
Old 03-17-2010 , 12:49   Re: Player force to jump
Reply With Quote #17

Quote:
Originally Posted by Mnkras View Post
just so everyone knows, + and | do the same exact thing
Bitwise ops work a little different than normal math

Some Info:
http://www.vipan.com/htdocs/bitwisehelp.html

http://forums.alliedmods.net/showthr...hlight=bitwise
__________________
toazron1 is offline
Send a message via AIM to toazron1
Reply



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 18:22.


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