Skip to content

Commit

Permalink
Fix explosions going through walls in certain cases
Browse files Browse the repository at this point in the history
  • Loading branch information
hammermaps committed Apr 24, 2023
1 parent 47fa7fa commit fc5234f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/ggrenade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit fc5234f

Please sign in to comment.