Skip to content

Commit

Permalink
Fix #191 fix crossbow aiming with low FPS
Browse files Browse the repository at this point in the history
The source of the issue was not the aiming condition, but the falling
detection in the function GFA_IsActive. The player model distance from the
ground was checked too strictly. The crouching animation of the crossbow
T2 stance introduces a higher distance for a short period of time which
was caught more often with lower FPS.
  • Loading branch information
szapp committed Oct 15, 2018
1 parent 589e4df commit d7772b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _work/data/Scripts/Content/GFA/_intern/activate.d
Expand Up @@ -160,7 +160,7 @@ func void GFA_IsActive() {

// Check if falling (body state BS_FALL is unreliable, because it is set after the falling animation has started)
var zCAIPlayer playerAI; playerAI = _^(her.anictrl);
if (gef(playerAI.aboveFloor, mkf(12))) {
if (gef(playerAI.aboveFloor, mkf(50))) {
GFA_ResetSpell();
GFA_AimMovement(0, "");
GFA_RemoveReticle();
Expand Down

0 comments on commit d7772b0

Please sign in to comment.