Summary
Possible fix of british forces mod
1)Fixes Q/E lean turning in weapon up and down
2)Fixes sudden sprint disable on whole server
Description
Bug 1 - Lean: BF_CompassComponent.c:53 has operator precedence bug:
if(m_PrefabData.m_iCompassType == SCR_ECompassType.BASEPLATE || SCR_ECompassType.PRISMATIC && controller.GetInspect() == true)
Due to && binding tighter than ||, this evaluates as:
if(BASEPLATE || (PRISMATIC && inspect))
So when compass type is BASEPLATE, GadgetContextBaseplate activates every frame unconditionally, which can steal Q/E key events from lean input.
Bug 2 - Sprint: GadgetContextBaseplate has priority 40 with Flags 10 (high). When it overrides Q/E input handling, it can prevent the CharacterSprint action from being processed (Shift key doesn't reach sprint context).
License
Arma Public License (APL)