[Orpheu] Disabling some movements
How can I simple block some movements like jump and duck efficiently with orpheu?
|
Re: [Orpheu] Disabling some movements
Have to tried to simply supercede PM_Jump and PM_Duck ?
|
Re: [Orpheu] Disabling some movements
I really don't know how to start, so I did something like this:
PHP Code:
PHP Code:
|
Re: [Orpheu] Disabling some movements
Far to be fine. You do things without thinking.
You need to hook PM_Jump, PM_Duck. You need a signature file. There is pack somewhere in a tutorial containing all the PM_. Also, you can find severals plugins in scripting or request section where such functions were used. |
Re: [Orpheu] Disabling some movements
Take care that player id won't be called in PM_ callbacks.
If you need player id you have to store pmove when PM_Move is passed and than when any function is executed you can retrieve strcture member player_index and add 1 because player indexes are stored based on 0. |
Re: [Orpheu] Disabling some movements
Ok, with the same way it works for duck, but not for jump:
PHP Code:
|
Re: [Orpheu] Disabling some movements
Quote:
|
Re: [Orpheu] Disabling some movements
Quote:
Anyway, please show more code, where you retrieve player index, when you assign alive and ct values, etc... |
| All times are GMT -4. The time now is 20:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.