mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2026-08-03 20:24:36 +02:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user