This commit is contained in:
speedvoltage 2025-04-02 23:17:34 -04:00 committed by GitHub
commit 59c9b2d4ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 11 deletions

View file

@ -390,16 +390,6 @@ bool CMoveHelperServer::PlayerFallingDamage( void )
}
if ( m_pHostPlayer->m_iHealth <= 0 )
{
if ( g_pGameRules->FlPlayerFallDeathDoesScreenFade( m_pHostPlayer ) )
{
color32 black = {0, 0, 0, 255};
UTIL_ScreenFade( m_pHostPlayer, black, 0, 9999, FFADE_OUT | FFADE_STAYOUT );
}
return(false);
}
return(true);
}

View file

@ -283,7 +283,7 @@ public:
virtual bool ShouldUseRobustRadiusDamage(CBaseEntity *pEntity) { return false; }
virtual void RadiusDamage( const CTakeDamageInfo &info, const Vector &vecSrc, float flRadius, int iClassIgnore, CBaseEntity *pEntityIgnore );
// Let the game rules specify if fall death should fade screen to black
virtual bool FlPlayerFallDeathDoesScreenFade( CBasePlayer *pl ) { return TRUE; }
virtual bool FlPlayerFallDeathDoesScreenFade( CBasePlayer *pl ) { return FALSE; }
virtual bool AllowDamage( CBaseEntity *pVictim, const CTakeDamageInfo &info ) = 0;