mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 03:24:52 +00:00
Merge a5b8bea4b9
into 0565403b15
This commit is contained in:
commit
59c9b2d4ac
2 changed files with 1 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue