File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -971,23 +971,7 @@ float CTFWeaponBaseMelee::GetForceScale( void )
971971float 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 );
You can’t perform that action at this time.
0 commit comments