Browse Source

Force SpawnPlayer on restoring checkpoint when player dead

gravgun
mittorn 6 years ago
parent
commit
6b7ebc770b
  1. 2
      dlls/coop.cpp

2
dlls/coop.cpp

@ -899,7 +899,7 @@ bool COOP_ClientCommand( edict_t *pEntity )
int i = atoi(CMD_ARGV(1)); int i = atoi(CMD_ARGV(1));
if( i > 4 ) if( i > 4 )
return false; 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 ); UTIL_SpawnPlayer( pPlayer );
GGM_RestorePosition( pPlayer, &g_pCurrentMap->checkpoints[i].pos ); GGM_RestorePosition( pPlayer, &g_pCurrentMap->checkpoints[i].pos );
return true; return true;

Loading…
Cancel
Save