From 7fbe895af86e8585608c76bc9f8cdf6b7a469d93 Mon Sep 17 00:00:00 2001 From: Marxvee Date: Tue, 4 Nov 2025 15:00:13 -0600 Subject: [PATCH] Fix Loose Cannon MvM damage upgrade not scaling entirely The Loose Cannon's overall damage is in 2 parts. Only the 2nd part was being scaled by mult_dmg. This fix allows the 1st part to be scaled too-- due to the Ullapool Caber now holding the same change with both damage instances being scaled by mult_dmg. --- src/game/shared/tf/tf_weapon_grenade_pipebomb.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/shared/tf/tf_weapon_grenade_pipebomb.cpp b/src/game/shared/tf/tf_weapon_grenade_pipebomb.cpp index 9421f01c3b2..ded8edc59f7 100644 --- a/src/game/shared/tf/tf_weapon_grenade_pipebomb.cpp +++ b/src/game/shared/tf/tf_weapon_grenade_pipebomb.cpp @@ -782,6 +782,9 @@ void CTFGrenadePipebombProjectile::PipebombTouch( CBaseEntity *pOther ) float flDistanceSq = (pOther->GetAbsOrigin() - pAttacker->GetAbsOrigin()).LengthSqr(); float flImpactDamage = RemapValClamped( flDistanceSq, 512 * 512, 1024 * 1024, 50, 25 ); + // Scale impact damage with damage attribute + CALL_ATTRIB_HOOK_FLOAT_ON_OTHER( m_hLauncher, flImpactDamage, mult_dmg ); + CTakeDamageInfo info( this, pAttacker, m_hLauncher, vec3_origin, vOrigin, flImpactDamage, GetDamageType(), TF_DMG_CUSTOM_CANNONBALL_PUSH ); pOther->TakeDamage( info );