Fixed GetSpectateFollowOrientation using forward rather than right

This commit is contained in:
smallmodel 2023-08-20 14:02:55 +02:00
parent 51b5b2571a
commit 010794418c
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -8925,7 +8925,7 @@ void Player::GetSpectateFollowOrientation(Player *pPlayer, Vector& vPos, Vector&
vCamOfs += up * g_spectatefollow_up->value;
if (pPlayer->client->ps.fLeanAngle != 0.0f) {
vCamOfs += client->ps.fLeanAngle * 0.65f * forward;
vCamOfs += client->ps.fLeanAngle * 0.65f * right;
}
start = pPlayer->origin;