-
Notifications
You must be signed in to change notification settings - Fork 20
Recoil
This page aims to explain how recoil can be configured in FM+USE. This information was written for version 1.52 where minor tweaks were made to the recoil system.
Pitch
recoil refers to vertical movement. It's often referred to as just Recoil.
Yaw
recoil is the horizontal movement, and is referred to as RecoilYaw.
After each shot the player's camera will be moved by the recoil specified. The game will automatically try to return to the original position for pitch recoil only - referred to as recoil control.
The Recoil
config sets the base amount of pitch recoil for the gun, this will range from 3
for many machine guns to 20+
for some snipers in the official packs. This value is then multiplied by the RecoilMultiplier
value on any attachments on the gun.
RecoilYaw
similarly sets the base amount of yaw recoil. This should probably be 0
, otherwise the player will start to rotate.
Next, some extra random recoil is added. These deviations are uniformly distributed from [0, RandomRecoilRange
] for pitch and [-0.5*RandomRecoilYawRange
, 0.5*RandomRecoilYawRange
] for yaw.
To preserve behaviour from previous versions, 0.5
is subtracted from the pitch recoil when sneaking.
Otherwise, if DecreaseRecoil
is given, that amount will be subtracted from the pitch recoil. Using this config is discouraged.
Otherwise, if RecoilSneakingMultiplier
is given, the pitch recoil will be multiplied by this amount. A value >1 will increase recoil, and <1 decrease recoil when sneaking.
Default behaviour is RecoilSneakingMultiplierYaw = 0.8
which reduces yaw recoil by 20% when sneaking.
RecoilSneakingMultiplierYaw
multiplies the yaw recoil when sneaking. A value >1 will increase recoil, and <1 decrease recoil when sneaking.
Otherwise, if DecreaseRecoilYaw
is given, that amount will DIVIDE the yaw recoil. Using this config is very heavily discouraged.
By default, pitch recoil is unchanged by sprinting to maintain behaviour of previous versions.
RecoilSprintingMultiplier
multiplies the pitch recoil when sprinting. A value >1 will increase recoil, and <1 decrease.
Default behaviour is RecoilSprintingMultiplierYaw = 1.2
which increase yaw recoil by 20% when sprinting.
RecoilSprintingMultiplierYaw
multiplies the yaw recoil when sprinting. A value >1 will increase recoil, and <1 decrease.
Recoil automatically pulls the camera view back to where the player was originally pointing. This can be disabled entirely using the flansmod.cfg
option Realistic Recoil=true [default is false]
.
Another option in flansmod.cfg
is Enable downward movement of the sight after shot [default is true]
which if set to false, will not apply the counter-recoil force in a tick when the gun is shot.
CounterRecoilForce
, CounterRecoilForceSneaking
, CounterRecoilForceSprinting
determine the strength of the return to centre force, and take a value between [0, 1]. Small values will mean that the gun snaps to the original position faster, and values close to 1 will take a while to return. The value is chosen based on whether the player is sneaking, sprinting e.t.c.
This config value is multiplied by any values of RecoilControlMultiplier
, RecoilControlMultiplierSneaking
, RecoilControlMultiplierSprinting
on attachments on the gun. Note: If increased recoil is desired and a value like 1.5 is used as a modifier, the final value force counter recoil force will be capped at 1.