Raised This Month: $ Target: $400
 0% 

how to check vacant place


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jacob
Senior Member
Join Date: Oct 2010
Old 11-14-2010 , 21:37   how to check vacant place
Reply With Quote #1

PHP Code:
stock is_hull_vacant(Float:origin[3], hull) {
 
engfunc(EngFunc_TraceHulloriginorigin0hull00)
 if (!
get_tr2(0TR_StartSolid) && !get_tr2(0TR_AllSolid) && get_tr2(0TR_InOpen)) return true;
 return 
false;

hull = (pev(id, pev_flags) & FL_DUCKING) ? HULL_HEAD : HULL_HUMAN

now i want to check that if there is an ent(not human) on this location,how to change the code.
Jacob is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-14-2010 , 23:41   Re: how to check vacant place
Reply With Quote #2

Quote:
Originally Posted by Jacob View Post
PHP Code:
stock is_hull_vacant(Float:origin[3], hull) {
 
engfunc(EngFunc_TraceHulloriginorigin0hull00)
 if (!
get_tr2(0TR_StartSolid) && !get_tr2(0TR_AllSolid) && get_tr2(0TR_InOpen)) return true;
 return 
false;

hull = (pev(id, pev_flags) & FL_DUCKING) ? HULL_HEAD : HULL_HUMAN

now i want to check that if there is an ent(not human) on this location,how to change the code.
It already does that. Have you even tested it?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Jacob
Senior Member
Join Date: Oct 2010
Old 11-15-2010 , 02:54   Re: how to check vacant place
Reply With Quote #3

sorry,i don't understand this code:
PHP Code:
hull = (pev(idpev_flags) & FL_DUCKING) ? HULL_HEAD HULL_HUMAN 
HULL_HUMAN,is it only for human?
Jacob is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-15-2010 , 03:02   Re: how to check vacant place
Reply With Quote #4

HULL_HUMAN is the hull size for a player standing.
HULL_HEAD is the hull size for a player ducking.

Both of them are for players.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Jacob
Senior Member
Join Date: Oct 2010
Old 11-15-2010 , 04:24   Re: how to check vacant place
Reply With Quote #5

Quote:
Originally Posted by Exolent[jNr] View Post
HULL_HUMAN is the hull size for a player standing.
HULL_HEAD is the hull size for a player ducking.

Both of them are for players.
is there any way to check common entity?
Jacob is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode