Skip to content

Commit

Permalink
- Duke: fixed hitscan vector for pistol's aim check.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jan 14, 2023
1 parent 1bfccbc commit 8001c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/games/duke/src/player.cpp
Expand Up @@ -250,7 +250,7 @@ DDukeActor* aim(DDukeActor* actor, int abase)
setFreeAimVelocity(vel, zvel, plr->Angles.getPitchWithView(), 16.);

HitInfo hit{};
hitscan(plr->GetActor()->getPosWithOffsetZ().plusZ(4), actor->sector(), DVector3(actor->spr.Angles.Yaw.ToVector() * vel, zvel), hit, CLIPMASK1);
hitscan(plr->GetActor()->getPosWithOffsetZ().plusZ(4), actor->sector(), DVector3(actor->spr.Angles.Yaw.ToVector() * vel, zvel * 64), hit, CLIPMASK1);

if (hit.actor() != nullptr)
{
Expand Down

0 comments on commit 8001c40

Please sign in to comment.