tf2: Allow vscript to set damage for force calc

This fixes https://github.com/ValveSoftware/Source-1-Games/issues/6056
This commit is contained in:
doclic 2025-03-08 14:34:33 +01:00
parent aea94b32cb
commit 40bcf3c43a

View file

@ -5873,7 +5873,7 @@ void CTFGameRules::RadiusDamage( const CTakeDamageInfo &info, const Vector &vecS
//-----------------------------------------------------------------------------
bool CTFGameRules::ApplyOnDamageModifyRules( CTakeDamageInfo &info, CBaseEntity *pVictimBaseEntity, bool bAllowDamage )
{
info.SetDamageForForceCalc( info.GetDamage() );
if (!info.GetDamageForForceCalc()) info.SetDamageForForceCalc( info.GetDamage() );
bool bDebug = tf_debug_damage.GetBool();
CTFPlayer *pVictim = ToTFPlayer( pVictimBaseEntity );