From fc5234feb371d37a609e16cbd6f26f73f4cddb68 Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 24 Apr 2023 08:14:32 +0200 Subject: [PATCH] Fix explosions going through walls in certain cases Resolves ValveSoftware/halflife#3244 --- dlls/ggrenade.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ggrenade.cpp b/dlls/ggrenade.cpp index 7cc6ae6..8686f1f 100644 --- a/dlls/ggrenade.cpp +++ b/dlls/ggrenade.cpp @@ -60,7 +60,7 @@ void CGrenade::Explode( TraceResult *pTrace, int bitsDamageType ) // Pull out of the wall a bit if ( pTrace->flFraction != 1.0 ) { - pev->origin = pTrace->vecEndPos + (pTrace->vecPlaneNormal * (pev->dmg - 24) * 0.6); + pev->origin = pTrace->vecEndPos + (pTrace->vecPlaneNormal * 0.6); } int iContents = UTIL_PointContents ( pev->origin );