Skyrim

File information

Last updated

Original upload

Created by

Drazhar753

Uploaded by

Drazhar753

Virus scan

Safe to use

About this mod

A small experiment I have been working on, allowing the player to lean around corners to peek. Intended mainly for use with immersive first person mods.

Permissions and credits
Donations
Sneakus Peekus

Update: 
In a response to some feedback I have made a seperate version which will instead allow you to face the wall you want to lean against, and then you will simply be spun around so that your back is against it when you press the hotkey. I feel this makes it less clunky for me, as I do agree that having to lineup your back was a bit of a task. Let me know :)

Greetings,
This mod is an experiment but also functional, and allows you the player to lean around objects that you have your back up against.

Why…have you… DONE THIS?! YOU MONSTER!


Well, this mod was intended for use with immersive first person mods as I personally enjoy not leaving the first person view as much as possible, and disliked having to go third person to get an idea of what was around a corner without exposing my character completely. I.e. sneaking around a corner into the light and being spotted to only go “Oh ok so that’s what’s around the corner...”

As well as just fun roleplay purpose.

The Technicalities



Upon loading your save you will now have an ability in your powers menu “Peeking Around Corners Config” equip and cast that using the powers key. You will then be prompted by a message box asking for what hotkey you’d like Leaning Left to be, simply hold the key you’d like and click the button at the same time. A couple seconds will go by and similar message box will open asking for the hotkey for LeaningRight, similarly hold the key whilst you click the button and it’ll bind.
If you want to change the key binds, simply cast the spell again and wait a moment, you’ll be taken back through the same process again
shortly.

How to lean;

Now that the keys are bound, simply walk up to any chest-height object, or a wall, and face your character’s back (or front, depending on version) towards it and then press thehotkeys. (You have to be fairly close but there is a bit of legroom)

There are a few things to note though, firstly, the animations I’m using are vanilla animations. The problem is that the animations used allow your character to enter a looped animation which switches between 2 states, one that has your character with their back pressed up against the wall, and one where they’re leaning out from the wall. It will cycle between these 2 animations consistently but also somewhat randomly, and mostly out of your control. You can of course interrupt the animation by hitting space bar. Also, hitting the hotkey whilst the animation is playing will reset the animation… allowing you to tuck your head back in quickly.

If you are sneaking before you lean, you will still count as sneaking. Beyond that there are no bonus stealth benefits, and enemies will see you if your head is poking out, though as said if you're sneaking it'll help. I did think about buffing sneak or even granting an invisibility-like effect while you perform the peeking but quickly realised there was no way to check where the enemies were looking at you from. I.e. someone walking up behind you while peek around a corner would still be at a disadvantage of seeing you because of the buffs.

Due to you being able to do this just about anywhere as long as your back is against an object, it's up to you to position correctly. :)

Why not use just the leaning out animation on its own?

Unfortunately I am not an animator and have minimal knowledge about editing .hkx files, but I did try to do this originally, and the animation file does exist to exclusively lean out for both left and right without the in-between back against wall. However, they both make you lean out to the right (yes even the one that says left).

I searched for why this worked this way for quite a while, and why the animation I’m using worked for deciding left or right but the exclusive ones do not. However, in the end could not figure it out even with Fore’s Input and help.
--------------------------------------------------------------------------------------

Message for those with knowledge about how to edit/dissect skyrim animation and behaviour files and interested
in helping improve this mod!


Through the problems I highlighted above, these prevent this mod from being as good as I’d like it to be, unfortunately these issues are holding it back. If you have experience with animations and think you can figure this out, please take a look at these files in the Skyrim – Animations.bsa

Special_cornerpeekenter.hkx
Special_cornerpeekexit.hkx
Special_cornerpeekidle.hkx
Special_cornerpeekloop.hkx(mainly this one)

As well as IdleWallCornerPeekREnterInstant, IdleWallCornerPeekLEnterInstant, PeekingLoop1Right, PeekingLoop1Left in the Creation Kit Idle Animations menu, under 0_Master.hkx.

PeekingLoop1left/right both make you lean the same way when played. However IdlewallCornerPeekR/LEnterInstant (which are the ones I’m
using) go their specified directions. The Peekingloop anims are a part in the IdleWall animation, they are the leaning out part. And if they both went their
specified ways I’d be able to make this mod much more responsive/smooth.

So if you think you can figure out how these animations work, please have a crack at it and pm me with your findings! Or better yet, make them work :D

Bugs
None as far as I am aware, but as always if you find issues or what you think may be a bug let me know. I made this in a night so there may very well be some.

Credits
Fore for giving me some better understanding of behaviour files and animations.
Bethesda for the game.

Permissions
Do not upload this mod or add it into an uploaded collabelsewhere without my permission, ty.