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
committed by EricS-Valve
parent c623a7c30d
commit facc9078e8
+1 -1
View File
@@ -5913,7 +5913,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 );