r/daggerfallunity • • Oct 13 '26

smooth weapon animation mod

i made this :3
i actually dont play with it tho, i prefer the vanilla swing, but a friend of mine wouldn't play the game cuz of those, so i smoothen the animation a little to make them discover this banger of a game

if you wonder how this work, the script locate the position of each 5 frame of an attack then dupplicate and place those same frame in between (am i making sense??) at an certain percentage of the og frame position wich should make it compatible with any mod that use the same framing as vanilla or diverse weapon

https://www.nexusmods.com/daggerfallunity/mods/1422

56 Upvotes

14 comments sorted by

2

u/Taquill Oct 13 '26

I'd recommend possibly making a keybind system, press keypad 1 to decrease the speed, keypad 2 to increase. Keypad 3 to reset to a default, and have it to where every weapon by default uses a fixed speed, but changing the speed with a specific weapon allows the user to finetune the weapon speed of that specific weapon type, and then have something like keypad 4 used to set the default speed of all weapons to whatever the current weapon speed is.

You could probably do this in a in-game menu or something but I wouldn't know anything, I haven't touched modding in ages. Good job!

1

u/Majestic-Laugh-3823 Oct 13 '26

damn should have think about that, i'll try and work on that, though making a better weapon widget integration could do the trick

1

u/Taquill Oct 13 '26

Probably!

Bonus idea, some sort of smearing or motion effect. Since it's unity there's probably a decent shader that could be added pretty easily, since some are pretty cut and dry.

Hope to see you again here though, it's nice to see more modz

1

u/Majestic-Laugh-3823 Oct 13 '26

ill look into this but im pretty sure with the way attacks animations work in daggerfall, we would get some cut edges and linear motion blur, since attacks are not really a movement in dfu, but a sequence of sprite

1

u/Taquill Oct 13 '26

I knew that about the sprite, I don't know the technical terms for these things so I probably didn't describe or mention things properly. Since you can track the frames of the weapons, the movement frames could have a code that uses some sort of effect to distort the sprite itself, and you could probably have some form of motion blur effect that simply uses the last frame/position of the weapon.

Are the animations smoothed out through an animation? Like the in-unity animation function?

1

u/Majestic-Laugh-3823 Oct 13 '26

okay i did it !!! the mod is updated

1

u/Taquill Oct 13 '26

I'll have to check it out sometime! I need to reinstall Daggerfall when I get home qwqwq

1

u/negatrom Oct 13 '26

isn't this just weapon widget again?

https://www.nexusmods.com/daggerfallunity/mods/860

1

u/Majestic-Laugh-3823 Oct 13 '26

nah weapon widget add various effect to make the attack system feel more modern, like inertia, bob and other shit, and while you can change the swing speed in weapon widget, the attack animation doesn't have more frame

2

u/RedRoryOTheGlen Oct 15 '26

Weapon Widget's solution is to play the swing animation at really fast speed during the vanilla hit frame while the rest of the attack time is the "startup" and "recovery". So at low Speed, you don't swing the weapon slower like in vanilla, it just takes more time to start swinging and recover from the swing. Higher Speed means your swing comes out faster and you can take less time to recover and feels a lot more like vanilla.

1

u/SteppenWoods Oct 22 '26

I like it. Commenting here so I can find it and install next time I play

-1

u/theENERTRON Oct 13 '26

maybe if it was faster and had a little object motion blur it’d look better?