|
|
@ -65,12 +65,12 @@ Vector FixupSpawnPoint(Vector spawn) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int i = 0; |
|
|
|
int i = 0; |
|
|
|
// predict that spawn point is almost correct
|
|
|
|
// predict that spawn point is almost correct
|
|
|
|
while( i < 10 ) // 10 player heights
|
|
|
|
while( i < 2 ) // 2 player heights
|
|
|
|
{ |
|
|
|
{ |
|
|
|
Vector point = spawn + Vector( 0, 0, 36 * i ); |
|
|
|
Vector point = spawn + Vector( 0, 0, 36 * i ); |
|
|
|
TraceResult tr; |
|
|
|
TraceResult tr; |
|
|
|
UTIL_TraceHull( point, point, missile, 1, NULL, &tr ); |
|
|
|
UTIL_TraceHull( point, point, ignore_monsters, 1, NULL, &tr ); |
|
|
|
if( !tr.fStartSolid ) |
|
|
|
if( !tr.fStartSolid && !tr.fAllSolid ) |
|
|
|
return point; |
|
|
|
return point; |
|
|
|
i = -i; |
|
|
|
i = -i; |
|
|
|
if( i >= 0 ) |
|
|
|
if( i >= 0 ) |
|
|
|