Ravenfield

Ravenfield

1,454 ratings
Universal Recoil [EA 27]
16
5
9
4
3
5
3
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Mutators
File Size
Posted
Updated
1.097 MB
25 Apr, 2022 @ 3:09pm
30 Aug, 2023 @ 12:21pm
14 Change Notes ( view )

Subscribe to download
Universal Recoil [EA 27]

Description
This mod reworks recoil, making it similar to other FPS games.

Recoil is procedurally generated based on weapon stats and weapon roles, so weapons should feel somewhat unique. Each weapon is given a predictable left / right recoil trend on top of random deviation. All settings can be modified to your tastes in the mutator config menu.


============================================================


This is compatible with the Universal Camera Shake mod found here (By AquaFire):
https://gtm.you1.cn/sharedfiles/filedetails/?id=2407513273
Use it for more visceral camera recoil when firing!


============================================================


CONFIG OPTIONS


Recoil / Handling Multipliers:


- Zoom-Based ADS Recoil Reduction Strength
The strength of the zoom - based recoil reduction system. 1 is full effect, 0 is none.

- Recovery
The speed that recoil re-centers itself after firing.

- L/R Trend
Scales the left / right pull of individual weapons.

- Sway
The amount of horizontal recoil. Note that this scales the angle (in degrees) that recoil can be redirected, so setting it too high could cause the weapon to recoil downwards occasionally.

- Base Recoil
Scale of the entire recoil spray.


Stance Multipliers:


- Crouching Recoil
Scale of crouching recoil

- Prone Recoil
Scale of Prone Recoil *

- Use Weapon Prone Stats?
Weather to consider the weapon's built-in prone stats. If enabled, prone recoil is calculated by WeaponProneRecoil X Prone Recoil. When disabled, only the mutator's Prone Recoil is considered.

*(The config's Prone Recoil is higher than Crouching Recoil by default. Most weapons have a prone value of around 0.6, so in-game prone recoil is reduced by 52% when Use Weapon Prone Stats is enabled)


Visual Recoil Settings (These have a negligible effect on actual shot direction):


- Pushback Multiplier
How far back the weapon is pushed when fired.

- Rocking Intensity
How much a weapon will "roll" when fired continuously.

- Vanilla Recoil Strength
How much the vanilla "kickback" and "Snap" values are reduced.


Exclusions:


- Exclude Entire Tags
Remove weapon categories from the mutator.

- Excluded Weapons
Remove individual weapons from the mutator.

List weapon names or weapon categories, separating them by semicolons only. It is not case sensitive. Examples:

This is correct:
AK47;m4a1;ballistic Knife

This is not:
AK47; m4a1; ballistic Knife


============================================================


If you are a modder and you don't like the recoil that's been decided by the mutator, you can manually declare the values with a data container (see images).

You can also influence them through ravenscript with the following code:


self.URM = GameObject.find("RecoilPrefab(Clone)")
self.isUsingURM = (self.URM ~= nil)

if (self.isUsingURM) then
self.URM = self.URM.gameObject.GetComponent(ScriptedBehaviour).self
print("Using URM")
else
print("Not using URM")
end

----------------------------------------------

self.URM:SetRecoil(WeaponEntry, newRecoil)

self.URM:SetStability(WeaponEntry, newStability)

self.URM:SetDirection(WeaponEntry, newDirection)

self.URM:SetIgnore(WeaponEntry, newIgnore)
222 Comments
Tamari 14 Dec, 2024 @ 1:34pm 
thanks so much!
DanLadMan 25 Oct, 2024 @ 9:39am 
This is a quality of life mod that you REALLY need to download to improve the game's gunplay. Without it, every gun you have will always feel like paperweight. 10/10 mod that every Ravenfield player should have.

PS. The mutator still works in EA29. Though screenshot your configs since it resets to default when you log off. Meaning you have to reconfigure everything again everytime you open Ravenfield.
Jamesicle 5 Oct, 2024 @ 11:31pm 
idk
Death&AllHisFriends 22 Sep, 2024 @ 7:25pm 
did any1 fiund a fix for the camera bouncing up and down whether youre actually shooting or not?
DeNA 22 Aug, 2024 @ 12:38pm 
nvm
DeNA 22 Aug, 2024 @ 12:34pm 
forgive my brain. but, how do i remove the camera recoil from this mod :p
GoldbergR 16 Jul, 2024 @ 7:37am 
This mod doesn't work if player change weapons while still being alive, the console just saying the mutator trying to index a nil value.
Goobie snoobert 19 Jun, 2024 @ 3:02am 
why are some guns not affected by this mutator
Arepa man 20 May, 2024 @ 1:44pm 
It's fixed now. All hail SteelRaven7
Tsu-Msu 19 May, 2024 @ 4:09pm 
mod good but u cant change settings every change keeps getting defaulted