Skip to content

Commit

Permalink
Merge pull request #45 from TomyLobo/fix-sliding-through-glass
Browse files Browse the repository at this point in the history
Fix sliding through certain glass panes
  • Loading branch information
TomyLobo committed Apr 2, 2016
2 parents db72e2c + ee5a6a5 commit eb23528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mp/src/game/server/sdk/sdk_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ void CSDKPlayer::PreThink(void)
// we need to start from a higher offset if we're not diving (18 works!)
int iOffset = 13*!m_Shared.IsDiving();

UTIL_TraceHull(GetAbsOrigin() + Vector(0, 0, 5+iOffset), GetAbsOrigin() + vecNormalizedVelocity*40 + Vector(0, 0, 10), Vector(-16, -16, -16), Vector(16, 16, 16), MASK_SOLID_BRUSHONLY, this, COLLISION_GROUP_NONE, &tr );
UTIL_TraceHull(GetAbsOrigin() + Vector(0, 0, 5+iOffset), GetAbsOrigin() + vecNormalizedVelocity*40 + Vector(0, 0, 10), Vector(-16, -16, -15), Vector(16, 16, 14), MASK_SOLID_BRUSHONLY, this, COLLISION_GROUP_NONE, &tr );

CBaseEntity* pHit = NULL;

Expand Down

0 comments on commit eb23528

Please sign in to comment.