mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-12 16:07:57 +00:00
Add fallback
This commit is contained in:
parent
259bd92fb6
commit
0338b0729a
@ -1591,6 +1591,7 @@ void CBasePlayer::AddPoints( int score, BOOL bAllowNegativeScore )
|
||||
char cmd[10] = {};
|
||||
snprintf( cmd, 10, "kick %d\n", ENTINDEX(pev->pContainingEntity) - 1 );
|
||||
SERVER_COMMAND( cmd );
|
||||
pev->frags = 0;
|
||||
}
|
||||
|
||||
MESSAGE_BEGIN( MSG_ALL, gmsgScoreInfo );
|
||||
@ -2680,7 +2681,7 @@ edict_t *EntSelectSpawnPoint( CBaseEntity *pPlayer )
|
||||
while( pSpot = UTIL_FindEntityByClassname( pSpot, "info_player_start" ) )
|
||||
{
|
||||
TraceResult tr;
|
||||
UTIL_TraceHull( pSpot->pev->origin, pSpot->pev->origin , missile, 1, NULL, &tr );
|
||||
UTIL_TraceHull( pSpot->pev->origin, pSpot->pev->origin , missile, human_hull, NULL, &tr );
|
||||
if( !tr.fStartSolid && !tr.fAllSolid && !FNullEnt( pSpot ) )
|
||||
goto ReturnSpot;
|
||||
}
|
||||
@ -2694,6 +2695,9 @@ edict_t *EntSelectSpawnPoint( CBaseEntity *pPlayer )
|
||||
goto ReturnSpot;
|
||||
}
|
||||
|
||||
if( FNullEnt( pSpot ) )
|
||||
pSpot = UTIL_FindEntityByClassname( NULL, "info_player_start" );
|
||||
|
||||
ReturnSpot:
|
||||
if( FNullEnt( pSpot ) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user