Raised This Month: $ Target: $400
 0% 

Find out if a player is "stuck"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 11-21-2006 , 07:37   Re: Find out if a player is "stuck"
Reply With Quote #6

HLSDK:cbase.cpp

Code:
int	CBaseEntity :: Intersects( CBaseEntity *pOther )
{
	if ( pOther->pev->absmin.x > pev->absmax.x ||
		 pOther->pev->absmin.y > pev->absmax.y ||
		 pOther->pev->absmin.z > pev->absmax.z ||
		 pOther->pev->absmax.x < pev->absmin.x ||
		 pOther->pev->absmax.y < pev->absmin.y ||
		 pOther->pev->absmax.z < pev->absmin.z )
		 return 0;
	return 1;
}
Simon Logic is offline
Send a message via Skype™ to Simon Logic
 



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


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