FL_ONGROUND counts standing on entity
Hello,
So FL_ONGROUND counts as standing on entity ? Is there a work around or check if player is standing on entity or on map ground ? I tried xPaws code: PHP Code:
PHP Code:
|
Re: FL_ONGROUND counts standing on entity
Worldspawn is. Also the ground entity its id is 0
|
Re: FL_ONGROUND counts standing on entity
Quote:
PHP Code:
Edit: another problem if player hits a slope or falls down it also activates :D any work around ? I am thinking of making an entity in the middle of the player and check whenever it touches something maybe it'll work ? |
Re: FL_ONGROUND counts standing on entity
I didnt get you explain more...
What are you trying to achieve.. |
Re: FL_ONGROUND counts standing on entity
Okay so if the player touches worldspawn entity while sprinting, it stops the sprinting and creates a sprite, everything works fine but if player falls on ground, touches a small slope on ground or stairs like in de_dust2 it it counts as touching, any work around for this ?
Sprite code: PHP Code:
|
Re: FL_ONGROUND counts standing on entity
You have to check the player velocity might not be hooking the touch fwd is the best choice
|
Re: FL_ONGROUND counts standing on entity
Thanks got it to work somehow with get_user_velocity( id, ... ); vector_length( ... ); :).
Another question is it possible to keep another player in front of another player by some units ? Like charger from l4d for example. Right now I used velocity but if one player gets stuck while the carried player moves forward. PHP Code:
|
Re: FL_ONGROUND counts standing on entity
Check entities distances if they are far move 1 to the other
|
Re: FL_ONGROUND counts standing on entity
PHP Code:
|
| All times are GMT -4. The time now is 23:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.