Create an account

Dodge Roll and Sprint v1.8  

Upload: 30 May 2023, 16:33
Created by: alphaZomega [X]
Uploaded by: Aqxaro
Version: 1.8
Dodge Roll and Sprint v1.8

This a small REFramework script that enables Leon to perform a dodge roll to evade enemies.
Double tap the 'crouch' button (default) to trigger a diving / rolling animation. The move can be triggered in any direction at any time that the player is walking, jogging or idling. Currently the roll has a default 30 iframes (at 60fps) at the start, and for the remainder of the animation you are vulnerable.

If you roll precisely when the enemy was to hit you, you can do a Perfect Dodge. This rewards you for your perfect timing with slow-motion, a melee counterattack on your attacker, or both.

You can also hold down the run button to start Sprinting.

Stamina system:
With v1.8+, an option to use a configurable Stamina system has been introduced, limiting you from constantly dodging and sprinting during combat. You can adjust the stamina costs to find an appropriate balance yourself.
You can always perform a move as long as you have more than 0 stamina. But stamina can go negative, and while its negative it may look like its stuck at 0 for a long time (but it is really regenerating slowly back towards 0). If your stamina goes negative, you cannot perform another move until it regenerates to 20%.
The stamina system works with 'Free kicks' from Kick Open Doors | Melee Anytime, if v1.9+ of that mod is installed.

Supports LeonLuisKrauser, Hunk, and Ashley.
Consider using the Relentless Enemies mod if you think having a dodge roll makes the game too easy

Installation

1. Download REFramework and put its 'dinput8.dll' file into your game folder
2. Extract the mod RAR file and place its 'reframework' folder into your game directory
-- or --
1. Download REFramework and put its 'dinput8.dll' file into your game folder
2. Download and install Fluffy Mod Manager
3. Download the mod RAR file and place it in your Fluffy Mod Manager "Mods\RE4R\" folder
4. Install the mod with Fluffy Mod Manager

Options

An options menu will appear for the mod in the REFramework "Script Generated UI" menu:

Current Options:
"Help me I rolled off the map!" - Click this button if you somehow used the dodge roll to fall off the map. It will teleport you to the location of your last dodge roll, and if you are already at that location, it will teleport you to the location of the roll before, and before that etc. Pause the game while doing it for best results


"Dodge Roll" - Allows you to dodge roll
"Dodge Escape" - You can dodge-roll out of a vulnerable stunned state 25% faster. Use this if you find yourself frequently getting stun-locked
"Instability Frames" - A balancing mechanic from Dark Souls; you take 40% more damage when hit at the tail-end of a mistimed roll. The text will become red when instability frames are active

"Perfect Dodge" - Allows you to do a counter attack and/or slow time after a last-second dodge
"Counterattack" - Enable melee counterattack on a perfect dodge
"Adrenaline" - Enable slow-motion on a perfect dodge

"Invincibility frames" - Makes you invincible for the first few frames of a roll. The text will become gold when invincibility frames are active
None - 0 iframes, you are vulnerable for the whole dodge
Easy - 30 iframes (at 60fps)
Hard - 23 iframes (at 60fps)
Custom - set your own iframes
"Num Interpolation Frames" - The number of animation frames it takes to turn to the direction of the dodge

"Input Type" - Set the control scheme for the mod. The following schemes are available:
Double Tap: The default behavior, where you need to press the Crouch or Run button twice to trigger a roll
Custom Button: Click on a button to change its hotkey. The next key you press will be assigned to the action.
Check "Modifier" to make it so you need to hold your [Modifier] button before your main button will trigger a roll. For example, to make it be triggered by holding down Right mouse button (aim) and pressing spacebar.

"Zoom-out when dodging" - Zoom-out the camera for a few seconds when dodging
"Zoomed-out FOV" - How much the camera will zoom-out when performing a dodge

"Sprint" - Hold the 'run' button to sprint. WARNING: Turning with a keyboard using WASD may look bad; gamepad recommended
"Sprint (Secondary)" - Set an alternate hotkey or button for sprinting
"Sprint Speed" - Set the speed at which you will sprint

"Stamina System" - A stamina meter determines when you can dodge and sprint during combat
"Show Stamina Bar" - Display a stamina meter on the screen
"Dodge Stamina Cost" - How much stamina (out of 100) is exhausted by a roll
"Kick Stamina Cost" - How much stamina (out of 100) is exhausted by a Free kick (Kick Open Doors mod v1.9+ 'Kick Anytime')

This mod is based off of and works nicely with Kick Open Doors | Melee Anytime .

For support or anything about RE Engine modding, join me on the Modding Haven Discord server

Comments
The minimum comment length is 10 characters.