From 7806f8f36b466021fb85d2887969396a527af3b9 Mon Sep 17 00:00:00 2001 From: Ashetf2 Date: Tue, 6 Jan 2026 00:44:31 -0500 Subject: [PATCH] Fix throwables bouncing off brush entities instead of exploding --- src/game/shared/tf/tf_weapon_jar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/shared/tf/tf_weapon_jar.cpp b/src/game/shared/tf/tf_weapon_jar.cpp index 31227daa07..d603642304 100644 --- a/src/game/shared/tf/tf_weapon_jar.cpp +++ b/src/game/shared/tf/tf_weapon_jar.cpp @@ -593,9 +593,9 @@ void CTFProjectile_Jar::VPhysicsCollision( int index, gamevcollisionevent_t *pEv OnHitWorld(); } - // Break if we hit the world. - bool bIsDynamicProp = ( NULL != dynamic_cast( pHitEntity ) ); - if ( ExplodesOnHit() && pHitEntity && ( pHitEntity->IsWorld() || bIsDynamicProp ) ) + // Break if we hit anything that isn't a player (the world, doors, etc). + // bool bIsDynamicProp = ( NULL != dynamic_cast( pHitEntity ) ); + if ( ExplodesOnHit() && pHitEntity && ( !pHitEntity->IsPlayer() ) ) { // Explode immediately next frame. (Can't explode in the collision callback.) m_vCollisionVelocity = pEvent->preVelocity[index];