r/daggerfallunity • u/Ancient_Presence • Jun 06 '25
How would you limit vertical Mouselook to 45°?
Probably a weird first post here, I have a lot of other more interesting things to say about this game. But I just recently noticed that OG Daggerfall restricted your vertical view angle to around 45°, making it harder to look down directly on sprites, making them a bit less obvious.
I think this could help to increase immersion in DFU, and help to make it closer to the original. The thing is, I have never coded something in my life, so I wonder how you would go on about implementing this. After a quick search I'd guess a line like like
mouseLook.y = -Mathf.Clamp(mouseLook.y, -45, 45);
would play a part in achieving this, but I'm basically talking about something that I have zero knowledge about. Could I basically throw together a very simple script, and just drop it in the files, or is this way above my paygrade? Maybe someone already even created something like that?
I know it's not a big deal, someone snarky could say "Just don't look down ;)", but it seems so simple to me (Dunning-Kruger maybe?), that I am now curious whether I could actually do this.
2
u/SordidDreams Jun 06 '25
If anyone goes ahead and makes this, please make sure to also disable diagonal movement for an even more authentic experience.
2
u/ILovedaggerFall Jun 08 '25
Hey, I actually recently started modding this game and was thinking of doing this as my first mod for something easy to begin with. Maybe there are more things to make it more classic like so feel free to put suggestions in!
That line of code won't work since the game has a custom static Class made for it, but it's still really easy to do as you just need to access that class and change the Max/Min pitch values. Already got it working.
1
u/odelay42 Jun 06 '25
I think it's valid and interesting to try to recreate the old game as accurately as possible. But personally I wouldn't bother for two reasons:
2
u/Velthome Jun 06 '25 edited Jun 06 '25
I noticed that it makes you feel 8 feel tall and the rats feel absolutely tiny.
There’s also the minor issue where your weapon swings don’t actually align with where the enemy is on screen compared to the original.
Main hang-up between original and DFU is the dodge bug and I’m close to going on a deep dive to see if I can change the formula myself or something.
That and in vanilla the cart stash becomes kinda unusable if you horde ingredients like I do and you need to tab through endless 1x4 tabs to find to loot you shoved in there. Surprising QoL is that you can craft potions directly from your stash in the vanilla game. It is pretty surprising how much QoL there is with the cart stash for a game in 1996 but it has the glaring issue of it being had to look through in there a lot in there.