This commit is contained in:
speedvoltage 2025-03-30 17:05:49 -07:00 committed by GitHub
commit d5eb459a0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2152,8 +2152,11 @@ void CBasePlayer::PlayerDeathThink(void)
// wait for all buttons released
if (m_lifeState == LIFE_DEAD)
{
if (fAnyButtonDown)
if ( fAnyButtonDown && ( gpGlobals->curtime > ( m_flDeathTime + 5 ) ) )
{
respawn( this, !IsObserver() );// don't copy a corpse if we're in deathcam.
return;
}
if ( g_pGameRules->FPlayerCanRespawn( this ) )
{