mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-30 16:44:29 +00:00
Fix swawn stuck
This commit is contained in:
parent
6b3d3c8abf
commit
7514a7b1f0
@ -64,6 +64,9 @@ edict_t *CGameRules::GetPlayerSpawnSpot( CBasePlayer *pPlayer )
|
||||
{
|
||||
edict_t *pentSpawnSpot = EntSelectSpawnPoint( pPlayer );
|
||||
|
||||
if( mp_coop.value )
|
||||
UTIL_CleanSpawnPoint( pentSpawnSpot->v.origin, 100 );
|
||||
|
||||
pPlayer->pev->origin = VARS( pentSpawnSpot )->origin + Vector( 0, 0, 1 );
|
||||
pPlayer->pev->v_angle = g_vecZero;
|
||||
pPlayer->pev->velocity = g_vecZero;
|
||||
|
Loading…
x
Reference in New Issue
Block a user