Skip to content

Commit

Permalink
Fix CFFPlayer noisy BodyTarget while crouched
Browse files Browse the repository at this point in the history
 * Was always returning a hardcoded view offset instead of taking crouching into account
 * Should make explosions while crouched behave better
  • Loading branch information
squeek502 committed Apr 5, 2015
1 parent 1791748 commit 2067336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/ff/ff_player.cpp
Expand Up @@ -7620,7 +7620,7 @@ Vector CFFPlayer::BodyTarget(const Vector &posSrc, bool bNoisy)

if (bNoisy)
{
return GetAbsOrigin() + (Vector(0, 0, 28) * random->RandomFloat(0.5f, 1.1f));
return GetAbsOrigin() + (GetViewOffset() * random->RandomFloat(0.5f, 1.1f));
}
else
{
Expand Down

0 comments on commit 2067336

Please sign in to comment.