mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-12 13:31:33 +00:00
Force SpawnPlayer on restoring checkpoint when player dead
This commit is contained in:
parent
197f20fe41
commit
6b7ebc770b
@ -899,7 +899,7 @@ bool COOP_ClientCommand( edict_t *pEntity )
|
||||
int i = atoi(CMD_ARGV(1));
|
||||
if( i > 4 )
|
||||
return false;
|
||||
if( pPlayer->gravgunmod_data.m_state != STATE_SPAWNED )
|
||||
if( pPlayer->gravgunmod_data.m_state != STATE_SPAWNED || pPlayer->pev->health < 1 )
|
||||
UTIL_SpawnPlayer( pPlayer );
|
||||
GGM_RestorePosition( pPlayer, &g_pCurrentMap->checkpoints[i].pos );
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user