Skip to content

Commit

Permalink
Fix sliding through certain glass panes
Browse files Browse the repository at this point in the history
- da_trainingday: every single glass pane under those railings
- da_cocaine: both bathroom windows
  • Loading branch information
TomyLobo committed Apr 2, 2016
1 parent 1885fe2 commit a70747f
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 a70747f

Please sign in to comment.