Jumping Detection low CPU
Hello!
Im trying to detect when a player jumps and i want to have so low CPU as possible. So what way is the best way? My code: Code:
public client_PreThink(id) |
Re: Jumping Detection low CPU
Move to FM_CmdStart.
Use get_uc() for buttons instead of get_user_button() Check if player is on ground (get_entity_flags() & FL_ONGROUND). |
Re: Jumping Detection low CPU
Can you PLEASE show me an example? :)
Doesen't get anything of what you mean. |
Re: Jumping Detection low CPU
Search for FM_CmdStart. You can find funciton examples here: http://www.amxmodx.org/funcwiki.php
|
Re: Jumping Detection low CPU
Okey thank you very much, u are awsome! :)
|
Re: Jumping Detection low CPU
So something like this?
Code:
public FM_CmdStart_Pre(id, uc_handle) |
Re: Jumping Detection low CPU
Exolent isn't ham better?
PHP Code:
|
Re: Jumping Detection low CPU
Quote:
Quote:
|
Re: Jumping Detection low CPU
Quote:
|
All times are GMT -4. The time now is 04:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.