Build #107 - Holding down attack mouse button prevents headbob and recoil from correcting alignment [RESOLVED]

Locked
User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Build #107 - Holding down attack mouse button prevents headbob and recoil from correcting alignment [RESOLVED]

Post by Interkarma »

How to reproduce:
  1. Ensure headbob enabled
  2. Draw a weapon and hold down mouse button as if attacking
  3. Start moving forwards with attack button held down
  4. Player view will slowly tilt downwards until looking at ground until attack button is released
This also affects recoil from damage in combat where player takes damage with attack button down.

Update: Have resolved this. Problem was that PlayerMouseLook was not updating deltas while attack key held down. Changed this so that deltas are updated without updating yaw and pitch while attacking. This preserves normal attack behaviour and fixes alignment drift in headbob and recoil.

Locked