change player movements
I want to change player movements, for example:
If player is pressing W (move forward), then he will move backward, and also for both right and left. Thanks in advance :wink: |
Re: change player movements
Is this possible?
|
Re: change player movements
Most likely yes but why would anyone want to do that?
|
Re: change player movements
Reverse-Motion grenade for example. :\
|
Re: change player movements
Well, this should be a part of a deathrun event,
just to make things more funnier. I will be grateful for any help. |
Re: change player movements
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
|
Re: change player movements
Quote:
|
Re: change player movements
Quote:
Quote:
could i get a little example of this? |
Re: change player movements
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).
|
Re: change player movements
Quote:
|
| All times are GMT -4. The time now is 22:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.