Best way to detect if player is in air
Which one of those is better (lower CPU usage)
1. PHP Code:
PHP Code:
2nd uses amxmodx only, but it detects players on ladders as being in air |
Re: Best way to detect if player is in air
Then use the engine one if the second one is not getting the correct answer every time. It's extremely trivial.
|
Re: Best way to detect if player is in air
I have a question...
Which of those tow are better (lower cpu) or faster? Engine: PHP Code:
PHP Code:
|
Re: Best way to detect if player is in air
The difference is very small. You should just use whichever one you are more comfortable with.
Btw, in your second example, the pev native is from fakemeta and not amxmodx. IIRC, when on a ladder you are given the flag FL_FLY, you can add it to the bitsum to get rid of your bug. Additionally, your velocity check will return that they are on the ground at the max height of their jump. |
Re: Best way to detect if player is in air
Velocity check is also false if you run on a non-flat ground.
|
Re: Best way to detect if player is in air
Quote:
|
Re: Best way to detect if player is in air
Quote:
|
Re: Best way to detect if player is in air
Ok so i will remain with the first one.
And ehh, I didn't know pev native is from fakemeta |
Re: Best way to detect if player is in air
Quote:
|
Re: Best way to detect if player is in air
Quote:
|
| All times are GMT -4. The time now is 14:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.