Raised This Month: $ Target: $400
 0% 

change player movements


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pillowCloud
Member
Join Date: Aug 2015
Location: AlliedModders
Old 10-22-2015 , 09:02   Re: change player movements
Reply With Quote #1

Quote:
Originally Posted by fysiks View Post
I believe it's more efficient (or more proper) to use FM_CmdStart and not Prethink.
Quote:
Originally Posted by vitorrossi View Post
You could hook pre-think and pev_buttons within this function. Then do a bit check (&) for IN_FORWARD, IN_BACK, IN_MOVERIGHT, IN_MOVELEFT and set_pev pev_buttons to the opposite of what player is pressing. Untested
not sure how to do this,
could i get a little example of this?
pillowCloud is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-22-2015 , 20:39   Re: change player movements
Reply With Quote #2

You can search for FM_CmdStart and the particular IN_* command constants (see hlsdk_const.inc for all the specific values). Other good keywords are pev_buttons and pev_oldbuttons (which you'll see these two stated in hlsdk_const.inc).
__________________
fysiks is offline
pillowCloud
Member
Join Date: Aug 2015
Location: AlliedModders
Old 11-05-2015 , 17:29   Re: change player movements
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
You can search for FM_CmdStart and the particular IN_* command constants (see hlsdk_const.inc for all the specific values). Other good keywords are pev_buttons and pev_oldbuttons (which you'll see these two stated in hlsdk_const.inc).
Thanks alot.
pillowCloud is offline
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 22:04.


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