Ravenfield

Ravenfield

1,592 ratings
Universal Recoil [EA 27]
16
5
10
4
3
5
3
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Mutators
File Size
Posted
Updated
1.097 MB
Apr 25, 2022 @ 3:09pm
Aug 30, 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://steamcommunity.com/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)
229 Comments
【 ZIONOMANIA 】 May 23 @ 2:26pm 
Putting recovery to 99 is a big no no.
Daddy Kaneki May 20 @ 6:05am 
This mod *might* be causing a bug with some modded weapons where, when an AI is firing the modded weapon, if you also have it equipped, your weapon will start animating with recoil as if you were firing it.

Not 100% certain if it's this mod or the weapon mod itself.
Exhausted kitty Apr 11 @ 6:50am 
Goated
shrekshirts Feb 22 @ 9:23pm 
DO NOT SET RECOVERY TO 99
Feniter Feb 9 @ 8:55am 
Does L/R trend mean the left and right sway when you move your camera in the yaw axis or just left and right sway by recoil?
Freedom Feb 9 @ 8:14am 
i would love to see the bots being affected with this too
SaKulove Feb 9 @ 7:48am 
为什么有些武器第一发和第二发的间隔那么大?
Tamari Dec 14, 2024 @ 1:34pm 
thanks so much!
DanLadMan Oct 25, 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 Oct 5, 2024 @ 11:31pm 
idk