[ H3LP ] Block IN_BACK
Hello, I'm trying to block the velocity that is applied when player press IN_BACK. I tried the following but doesn't work properly.
Code:
Also I tried to disable maxspeed, but doesn't worked. Code:
|
Re: [ H3LP ] Block IN_BACK
You can do this, get user velocity, strip backward velocity, then set his velocity.
|
Re: [ H3LP ] Block IN_BACK
Quote:
I've been looking for a way to do this as well, and finally ended up with this: PHP Code:
|
Re: [ H3LP ] Block IN_BACK
Ok, thanks anyway, but I think be better doesn't use this way. The real problem is when I try to set velocity to "down", is applied a little velocity to backward too, then the player moves diagonally.
|
Re: [ H3LP ] Block IN_BACK
Try this. It may works.
rg_reset_maxspeed(id) |
Re: [ H3LP ] Block IN_BACK
I tried this in the second way.
|
Re: [ H3LP ] Block IN_BACK
Code:
register_forward(FM_UpdateClientData, "Data", 1) |
| All times are GMT -4. The time now is 12:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.