- Duke: Use pitch difference between player and shrunken actor to adjust horizon.

* Works a lot better, and is uncapped pitch compatible unlike the old setup.
This commit is contained in:
Mitchell Richters 2022-10-09 14:02:04 +11:00 committed by Christoph Oelckers
parent e5efb5c15f
commit e07785e85b

View file

@ -377,7 +377,7 @@ void dokneeattack(int snum, const std::initializer_list<int> & respawnlist)
{
p->oknee_incs = p->knee_incs;
p->knee_incs++;
p->horizon.addadjustment(DAngle::fromDeg(20.556));
p->horizon.addadjustment(deltaangle(p->horizon.horiz, (p->pos - p->actorsqu->spr.pos).Pitch() * 1.1875));
p->sync.actions |= SB_CENTERVIEW;
if (p->knee_incs > 15)
{