Oblivion
0 of 0

File information

Last updated

Original upload

Created by

Razzy

Uploaded by

sandone

Virus scan

Safe to use

About this mod

Building from the work of Offkorn and Aridale, I've made a version of this mod that should have smoother speed gradation than Offkorn's and optimizations/cleaning of code from the original.

Requirements
Permissions and credits
Changelogs
I decided I may as well release it now instead of waiting until I get the chance to open Oblivion and take a nice little screenshot (although there's not really much to show in a screenshot). This is just a little mod I edited in the meantime while figuring out my goblin mod, and to help familiarize myself with Gamebryo scripting a little better.

Being a novice scripter, I've been trying at editing existing mods' scripts in order to improve them or tweak them. I found Offkorn's Weight Based Dynamic Weapon Speeds an intriguing idea. I decided to look over the scripts and thought there was no need for the several "if" and "else if" statements (e.g. if < 10, else if < 20, and so forth), so I removed the steps in the weapon speed calculation formula and instead made a single equation for each. Hopefully, this makes the speed changes between weapons smoother, but I have yet to test this properly. It does however accommodate for weapon weights higher than in Offkorn's mod without having a catch-all elseif statement. Instead it's just calculated as part of the normal formula just like any other weight.

Does the removal of most of these if statements increase performance? Possibly, but I can't say for certain. More than likely, if there is a difference, it's very small.

Please let me know if you find any bugs or have any further suggestions for the mod.

P.S.: If you would like to test, there is a debug option in the provided ini (or type the console command "set ANBDWSQst.debug to 1"). It will prompt for an info key, so you can set that and every time you press it, it will display a message with your weapon's current speed.

To set a weapon as an exception to the speed change (quoted from Aridale's readme):

"How to set a weapon to be ignored by Dynamic Weapon Speed:
In the CS open the weapon and change its weight to have a value of 0012
after the decimal. So if its weight is 24.0000 make its weight 24.0012
and save your mod. It will now be ignored by this mod.
"

To uninstall:
I've provided a configuration file in /Data/ini/Dynamic Weapon Speeds.ini. In there, find the line that says "set ANBDWSQst.uninstall to 0" and change the 0 to a 1. You can also do this through the console if you decide to uninstall ingame. Just type "set ANBDWSQst.uninstall to 1".

Possible future plans:
  • The mod as it is excludes hand-to-hand from the script changes, but I thought it might be interesting for a character with a higher speed and agility stat to be able to attack faster with their fists
  • Add custom exceptions through ini file instead of setting weapon weight
  • Avoid use of cloneform function? (or ensure safe removal of junk data)
  • ??

Credits:
  • Aridale for the original ANB Dynamic Weapon Speed
  • Offkorn for the modified version
  • Pherim for all the testing and feedback

Permissions:
Please modify, improve, or re-use this mod as you would like. You are welcome to credit me, but you don't have to (besides, Aridale and Offkorn did most of the work).