How to check is player falling
Hello.I have a 1 simple question.How to check if a player falling while he jumping?? Example:
I jumped , and now, I'm going up, and then, I start falling. I need time while player falling , if someone know how to check is player falling, please, help :) Goodbye. |
Re: How to check is player falling
sorry i was know how to get speed falling i mean ( when player fall down what is his speed .. ! ) but i forget that 'couse was'nt my code , so thats mean this guys can help you
|
Re: How to check is player falling
Check if
PHP Code:
PHP Code:
|
Re: How to check is player falling
If you only need the time, you may try this:
1. Hook Ham_Jump and cache get_gametime value. 2. Enable a touch forward between the player and the worldspawn. 3. In the Ham forward above check if the player is on ground( FL_ONGROUND ), then use get_gametime again. 4. Disable the Ham_Touch forward. 5. The time while the player was in the air is the difference between them. I don't quite understood what you want, but you may also check m_flFallVelocity offset. |
Re: How to check is player falling
Thanks you gays, a pogotovo tebi klippy bog ti pomogo hahah :D
|
Re: How to check is player falling
Quote:
|
Re: How to check is player falling
you can check v3x's plugin
https://forums.alliedmods.net/showthread.php?t=23824 |
Re: How to check is player falling
Quote:
|
Re: How to check is player falling
Quote:
|
Re: How to check is player falling
PHP Code:
|
| All times are GMT -4. The time now is 17:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.