Skip to content

Commit

Permalink
Fix #155 by remove horizontal recoil
Browse files Browse the repository at this point in the history
  • Loading branch information
szapp committed Sep 17, 2017
1 parent 1c877f7 commit ded46fb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions _work/data/Scripts/Content/GFA/_intern/rangedShooting.d
Expand Up @@ -354,11 +354,6 @@ func void GFA_SetupProjectile() {
// Vertical recoil: Classical upwards movement of the camera scaled by GFA_Recoil
var int camYAngle; camYAngle = MEM_ReadInt(camAI+zCAICamera_elevation_offset);
MEM_WriteInt(camAI+zCAICamera_elevation_offset, subf(camYAngle, recoilAngle));

// Horizontal recoil: Add random positive or negative (sideways) movement
var int camXAngle; camXAngle = MEM_ReadInt(camAI+zCAICamera_azimuth_offset);
var int manipulateX; manipulateX = fracf(r_MinMax(-GFA_HORZ_RECOIL*10, GFA_HORZ_RECOIL*10), 10);
MEM_WriteInt(camAI+zCAICamera_azimuth_offset, subf(camXAngle, manipulateX));
};


Expand Down
1 change: 0 additions & 1 deletion _work/data/Scripts/Content/GFA/config/settings.d
Expand Up @@ -11,7 +11,6 @@ const int GFA_UPDATE_RET_SHOOT = FALSE; // Also update the reticle while the
const int GFA_TRAJECTORY_ARC_MAX = 200; // Maximum time (ms) after which projectile trajectory drops off (gravity)
const float GFA_PROJECTILE_GRAVITY = 0.1; // Gravity to apply to projectile after GFA_TRAJECTORY_ARC_MAX ms
const int GFA_MAX_RECOIL = 15; // Visual angle (degrees) of maximum recoil (recoil = 100%)
const int GFA_HORZ_RECOIL = 2; // Range [-x, x] in degrees of horizontal recoil

// GFA_RANGED and/or GFA_SPELLS
const int GFA_STRAFING = TRUE; // Enable/disable movement while aiming (for both ranged and spell combat)
Expand Down

0 comments on commit ded46fb

Please sign in to comment.