Find out if a player is "stuck"
How to find out if a player is stuck into another (solid) entity
maybe get the size of the entity and see if the player is in it? get_distance ?? entity_get_vector(ent,EV_VEC_mins,mins) entity_get_vector(ent,EV_VEC_maxs,maxs) i'm not sure of how to do this. Thanks, Ramon. |
Re: Find out if a player is "stuck"
The hull tracing code from VEN's teleport smoke grenade plugin may help you: http://forums.alliedmods.net/showthread.php?t=47245
|
Re: Find out if a player is "stuck"
That code is a bit hard to understand. :o
|
Re: Find out if a player is "stuck"
I write an example,in engine:
Code:
Trace hull return a value of the object which is touched by trace hull:walls,ids,... and for fakemeta: Code:
enumCode:
|
Re: Find out if a player is "stuck"
When u duck it says your stuck, and there are some other bugs, i only want to check it a player is stuck in a other player.
Thanks, Ramon. Edit: by looking into the smoke teleport plugin i found out how to fix it, Change to hull_head if ducking. |
Re: Find out if a player is "stuck"
HLSDK:cbase.cpp
Code:
int CBaseEntity :: Intersects( CBaseEntity *pOther ) |
Re: Find out if a player is "stuck"
Can you/somone translate that to pawn please?
|
Re: Find out if a player is "stuck"
I think this is the correct translation, well you can always try.
Code:
|
Re: Find out if a player is "stuck"
Quote:
Code:
|
| All times are GMT -4. The time now is 06:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.