mp/src/game/server/sdk/da_spawngenerator.cpp
void CSpawnPointGenerator::BoundsForDir( int dir, int *xmod, int *ymod)
{
	switch(dir)
	{
		case DIR_LEFT:
			{
			*xmod = iMaxX;
			break;
			}
		case DIR_RIGHT:
			{
			*xmod = iCurMinX;
			break;
			}
		case DIR_FRONT:
			{
			*ymod = iCurMinY;
			break;
			}
		// defaults to back dir
		default:
			*ymod = iMaxY;
	}
}
// based on given dir set x or y to the furthest point in that direction
based on given dir set x or y to the furthest point in that direction
based on given dir set x or y to the furthest point in that direction
void CSpawnPointGenerator::BoundsForDir( int dir, int *xmod, int *ymod)
{
	switch(dir)
	{
		case DIR_LEFT:
			{
			*xmod = iMaxX;
			break;
			}
		case DIR_RIGHT:
			{
			*xmod = iCurMinX;
			break;
			}
		case DIR_FRONT:
			{
			*ymod = iCurMinY;
			break;
			}
		default:
			*ymod = iMaxY;
	}
}
void CSpawnPointGenerator :: BoundsForDir ( int dir , int * xmod , int * ymod ) { switch ( dir ) { case DIR_LEFT : { * xmod = iMaxX ; break ; } case DIR_RIGHT : { * xmod = iCurMinX ; break ; } case DIR_FRONT : { * ymod = iCurMinY ; break ; } default : * ymod = iMaxY ; } }
based on given dir set x or y to the furthest point in that direction
based on given dir set x or y to the furthest point in that direction
// defaults to back dir