From abc0a4259d5ccfd6aaeaf3601b9b82948e89f562 Mon Sep 17 00:00:00 2001 From: blackletum Date: Mon, 30 Mar 2026 03:45:46 -0400 Subject: [PATCH] [HL2MP] Only show sparks out of water Issue: Explosions would show spark underwater. The check was inverted here. Fix: Invert back the check for if the explosion happened underwater. This is simply re-submitting a previous PR that was closed without being merged because the original creator deleted their repo: https://github.com/ValveSoftware/source-sdk-2013/pull/1112 --- src/game/server/explode.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/game/server/explode.cpp b/src/game/server/explode.cpp index 42d8df35117..4b2cc1ac5cf 100644 --- a/src/game/server/explode.cpp +++ b/src/game/server/explode.cpp @@ -352,8 +352,7 @@ void CEnvExplosion::InputExplode( inputdata_t &inputdata ) SetNextThink( gpGlobals->curtime + 0.3 ); // Only do these effects if we're not submerged - if ( UTIL_PointContents( GetAbsOrigin() ) & CONTENTS_WATER ) - { + if ( !( UTIL_PointContents( GetAbsOrigin() ) & CONTENTS_WATER ) ) { // draw sparks if ( !( m_spawnflags & SF_ENVEXPLOSION_NOSPARKS ) ) {