Better recoil visuals (#93904)

## About The Pull Request
Port of https://github.com/shiptest-ss13/Shiptest/pull/3330
Partial port of https://github.com/shiptest-ss13/Shiptest/pull/1601

Makes two changes to how guns handle recoil.
- Changes recoil from an erratic shaking to a kicking of your screen
relative to your firing angle
- Adds a small cosmetic recoil to all ballistics (with an accompanying
pref option to tweak or disable it)

Primary recoil still is only used as a balance lever for a very small
handful of guns (and sawoff)

## Why It's Good For The Game

Cosmetic recoil makes guns feel a lot more punchier. People who think
its a competitive disadvantage (nerds/loosers) or people with a
legitimate sickness to screen shake or similar can just turn it off.

Old recoil was just reused explosion, while new recoil feels like its
actually recoil
This commit is contained in:
FalloutFalcon
2025-12-07 16:51:37 -06:00
committed by GitHub
parent a85ea2e631
commit e7615580ac
6 changed files with 101 additions and 6 deletions
@@ -19,6 +19,16 @@
savefile_key = "remove_double_click"
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/numeric/min_recoil_multiplier
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
maximum = 200
minimum = 0
savefile_key = "min_recoil_multiplier"
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/numeric/min_recoil_multiplier/create_default_value()
return 100
/// When toggled, enables staircase indicators
/datum/preference/toggle/stair_indicator
category = PREFERENCE_CATEGORY_GAME_PREFERENCES