mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
prevent spawn very very far
This commit is contained in:
parent
18e1772857
commit
e466cc3ab9
@ -87,7 +87,9 @@ edict_t *CGameRules::GetPlayerSpawnSpot( CBasePlayer *pPlayer )
|
||||
if( pPlayer->m_state == STATE_POINT_SELECT )
|
||||
{
|
||||
pPlayer->m_state = STATE_SPAWNED;
|
||||
return pentSpawnSpot;
|
||||
if(pPlayer->pev->origin.Length() > 8192)
|
||||
pPlayer->pev->origin = g_vecZero;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if( mp_coop.value )
|
||||
|
Loading…
x
Reference in New Issue
Block a user