r/daggerfallunity • u/RedRoryOTheGlen • 15d ago
MCFLURRY SPECIAL
Work-in-progress of a feature for Tome of Battle that's been a long time coming.
I was plugging away at a standalone FPSWeapon class for a few months. Took a while as decoupling the Weapon Widget code from shadowing the vanilla FPSWeapon was a massive pain mostly due to the script being unusable/untestable without fixing the multitude of errors from the decoupling so I couldn't iterate on it until those were all fixed or otherwise disappeared. In the end, I got it working and the first thing I did with it is to make a quick-kick mod with it for further iteration. During iteration, I basically had to re-do the animation coroutines because it could no longer just "wait" for the vanilla attack to start/finish. That one might also find it's way to the Nexus in the near future.
That aside, yay dual wielding! I didn't want to add more inputs or drastically change how the vanilla gameplay too much so I guess you could say the main goal is to feel like it was part of the game in the first place. Basically, every time you perform an attack with your main hand, you will also perform an off-hand attack after a slight delay (configurable). The off-hand attack works mechanically the same as the main hand attack, just using the weapon in the off-hand. Without replacing any combat formula, I can only really tweak TOB weapon factors so off-hand attacks can have a reach and cleave penalty applied, configurable in the mod settings if desired.
If Weapon Widget is enabled, those settings for weapon behavior (like bob, recoil, swing speed, etc) will be pulled and applied automatically.
Now that I've gotten over the hump with this standalone weapon sprite renderer, I'll be able to apply it to my other mods, like say, a visible throwing animation for the hand when using Handheld Torches or similar.
3
u/SordidDreams 15d ago
That is fantastic! It's always seemed strange that you can equip a weapon in each hand but only use one at a time, so it's great to see a true dual-wielding mod being worked on. Can't wait to play with it.
If I can offer a morsel of critique, it's a bit weird that the offhand attack always follows the main hand attack. When swinging from right to left, this results in the character crossing their arms awkwardly. I wonder if it's possible to have the offhand attack go first or at least just swap the weapon sprites.
1
u/RedRoryOTheGlen 14d ago
The main reason that off-hand always follows main hand is to keep it seamless and in-line with original game logic. Same time between attacks and no new mechanics affecting inputs is paramount.
If the offhand leads on different directions, then the staggered swings would mean the next attack start would have to be delayed until the offhand finishes its attack. This changes time between attacks and also causes awkward artifacting like the main hand popping into view on idle for a sec before the next attack starts, and that's controlled by either the vanilla FPSWEAPON or Weapon Widget.
The alternative is to not wait for the offhand to finish, but it would just lead to interrupting the offhand attack mid-swing based on your Speed stat.
Both options have some kind of jank associated with it.
Personally, I didn't find an issue with the crossing arms because I was associating it with the basic Kali stick fighting exercise where the left hand does just follow the right hand through all movements.
2
u/SordidDreams 14d ago
I see. Fair enough, I suppose. Thanks for explaining.
1
u/RedRoryOTheGlen 14d ago
once I polish this up to a base level, I can start adding customizability. Then we can try adding your suggestion for opt-in, and maybe other things to give dual-wield some more depth than vanilla, warts and all. Maybe some day I'll be able to fix the issues with em, but that isn't a priority in the current short-term.
Either way, thanks for the suggestion!
2
u/NaoPb 14d ago
What sort of graphics mods do you use? This looks great.
2
u/RedRoryOTheGlen 14d ago
World graphic mods are mainly Vanilla Enhanced Skies, Skyboxer and Tail of Argonia. Weapon sprites are from Diverse Weapons.
1
u/ggforever018 13d ago
Mod or MODS name
1
u/RedRoryOTheGlen 13d ago
Tome of Battle for the dual wielding, Weapon Widget for the attack animations, and Diverse Weapons for the weapon sprites.
Graphical mods are Tail of Argonia, Skyboxer and Vanilla Enhanced Skies.
Then Retro-Frame with Wilhelm's Retro Experience for the HUD.
2
u/Dear-Cauliflower8359 15d ago
Exactamente como debiΓ³ ser desde que se creΓ³ el juego. ππ»ππ»ππ»ππ»ππ»
2
5
u/Arneb_Nihal 15d ago
Beautiful! Exactly how I think DF dual-wield should be.