Skip to content

Commit 135a254

Browse files
committed
Revert "fix jag damage"
This reverts commit b961075.
1 parent 7768288 commit 135a254

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

src/game/shared/tf/tf_weaponbase_melee.cpp

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -971,23 +971,7 @@ float CTFWeaponBaseMelee::GetForceScale( void )
971971
float CTFWeaponBaseMelee::GetMeleeDamage( CBaseEntity *pTarget, int* piDamageType, int* piCustomDamage )
972972
{
973973
float flDamage = m_pWeaponInfo->GetWeaponData( m_iWeaponMode ).m_nDamage;
974-
if (GetWeaponID() == TF_WEAPON_WRENCH && dynamic_cast<CBaseObject*>(pTarget))
975-
{
976-
// Don't stack damage mults for buildings if we're using a wrench.
977-
// This is so that damage vs sappers and buildings are similar
978-
// Sappers use a static value of 65 base damage, modified by the building damage multiplier
979-
// However, buildings **are** usually affected by the base multiplier
980-
float flDamageBuildingMult = 1.0f;
981-
CALL_ATTRIB_HOOK_FLOAT(flDamageBuildingMult, mult_dmg_vs_buildings);
982-
if (flDamageBuildingMult == 1.0f)
983-
{
984-
CALL_ATTRIB_HOOK_FLOAT(flDamage, mult_dmg);
985-
}
986-
}
987-
else
988-
{
989-
CALL_ATTRIB_HOOK_FLOAT( flDamage, mult_dmg );
990-
}
974+
CALL_ATTRIB_HOOK_FLOAT( flDamage, mult_dmg );
991975

992976
int iCritDoesNoDamage = 0;
993977
CALL_ATTRIB_HOOK_INT( iCritDoesNoDamage, crit_does_no_damage );

0 commit comments

Comments
 (0)