mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 03:24:52 +00: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:
parent
aea94b32cb
commit
40bcf3c43a
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue