Definition:
The Recoil Modifier is a weapon property in DayZ that controls how much the weapon’s kick and stability are affected when firing.
- It is stored as a vector (
x y z
) in the weapon’s config (recoilModifier
). - Values are multiplicative per axis:
- X, Y scale horizontal & vertical mouse recoil.
- Z scales the camera effect.
- Attachments with their own
recoilModifier
also multiply these values, creating a final per-axis recoil profile. - The game combines this with recoil patterns (
mouseOffsetDistance
,mouseOffsetMin
,mouseOffsetMax
) to generate the in-game kick and spread.
Formulas:
\(Recoil_{final}(x,y,z) = Recoil_{weapon}(x,y,z) \times \prod_{i=1}^{n} Recoil_{attachment_i}(x,y,z)\)Where:
- \(Recoil_{weapon}(x,y,z)\) = base recoil modifier vector of the weapon
- \(Recoil_{attachment_i}(x,y,z)\) = recoil modifier of the i-th attachment
Explanation:
The recoil modifier works multiplicatively per axis.
- A value of 1.0 = no change.
- Values above 1.0 = stronger recoil.
- Values below 1.0 = reduced recoil.
Example:
- Weapon recoil =
(1.0, 1.0, 1.0)
- Scope recoil =
(0.9, 0.9, 1.0)
- Suppressor recoil =
(0.95, 0.95, 1.0)
Final recoil = (1.0×0.9×0.95, 1.0×0.9×0.95, 1.0×1.0×1.0)
= 0.855, 0.855, 1.0 → slightly reduced recoil.