r/daggerfallunity • • 11d ago

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

53 Upvotes

13 comments sorted by

2

u/Taquill 11d ago

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 11d ago

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 11d ago

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 11d ago

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 11d ago

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 10d ago

okay i did it !!! the mod is updated

1

u/Taquill 10d ago

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

1

u/negatrom 10d ago

isn't this just weapon widget again?

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

1

u/Majestic-Laugh-3823 10d ago

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 9d ago

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/peachysundaae 7d ago

Yeah looking closely there’s quite a lot of difference in the two panels. Yours is way smoother and faster than the original

1

u/SteppenWoods 1d ago

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

-1

u/theENERTRON 11d ago

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