Page 1 of 1

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

Posted: Wed May 02, 2018 7:02 am
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.