Raised This Month: $ Target: $400
 0% 

is user stuck check


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 01-03-2009 , 05:54   is user stuck check
Reply With Quote #1

is there a way to do a check and see if the location i wanna set some1 will get them stuck eather in another player or wall or something?
whosyourdaddy is offline
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 01-03-2009 , 16:12   Re: is user stuck check
Reply With Quote #2

why am i getting a tag mismatch on this
Code:
stock bool:is_user_stuck(id) 
{ 
  static Float:origin[3]
  new tr = 0; 
  pev(id, pev_origin, origin) 
  engfunc(EngFunc_TraceHull, origin, origin, IGNORE_MONSTERS, pev(id,pev_flags) & FL_DUCKING ? HULL_HEAD : HULL_HUMAN, 0, tr) 
  if(!get_tr2(tr,TR_StartSolid) && !get_tr2(tr,TR_AllSolid) && get_tr2(tr,TR_InOpen))
      return false;
  return true;
}
line
Code:
if(!get_tr2(tr,TR_StartSolid) && !get_tr2(tr,TR_AllSolid) && get_tr2(tr,TR_InOpen))
whosyourdaddy is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 01-03-2009 , 16:45   Re: is user stuck check
Reply With Quote #3

most likely you are including engine and fakemeta (both have TR_* defines)

Try:
Code:
if(!get_tr2(tr,TraceResult:TR_StartSolid) && !get_tr2(tr,TraceResult:TR_AllSolid) && get_tr2(tr,TraceResult:TR_InOpen))
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 01-03-2009 , 18:14   Re: is user stuck check
Reply With Quote #4

thnks no more compiler error
whosyourdaddy is offline
Reply


Thread Tools
Display Modes

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 09:06.


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