TLDR; A hacky, simple overhaul for Sneak skill experience gain, favoring Sneak Attacks over passive sneaking.
Sneak Attacks:
Get experience for successful sneak attacks (land a hit while sneaking successfully and not already in combat):
a moderate amount for Marksman hits, a huge amount for melee hits (configurable).
Marksman sneak attacks now show a popup to match melee sneak attacks; and
the popup(s) now read "Sneak Attack for 4x Damage!" (1.5x for Marksman weapons).
Passive Sneaking:
You can now get experience for successfully sneaking a much greater distance away from any NPC/creature.
However, the amount of experience is reduced compared to vanilla.
You get a tiny bit of experience while standing still (configurable),
and a modest amount if moving (configurable).
What this mod doesn't change:
Actual sneak success/fail logic
Sneak attack (Critical) damage
Whether a sneak attack is successful
Pickpocket success/fail logic
How it works/Bugs/Limitations:
Sneak experience is awarded for the first melee/marksman hit within 1 second of a successful Sneak (Avoid Notice) roll, if the player is still sneaking and not already in combat.
This is a hacky workaround because OpenMW doesn't expose much information about sneaking or awareness to Lua scripts - eg whether the player is detected by any actors, or whether a given actor is aware of the player.
Therefore, sneak experience can be incorrectly gained (and a false notification shown for Marksman) in the following circumstances:
- You hit an actor immediately after they detect you (within 1 second of the last successful Sneak roll)
- You hit an actor while successfully avoiding notice of ANOTHER actor.
SneakAttackTweaks.omwaddon changes the following GMSTs:
fSneakUseDist - 3500, originally 500 (you need to be within this distance of an actor while successfully sneaking to get vanilla/passive sneak xp)
Note: this value has to be high because successful Sneak rolls are currently the only way to test if the player is hidden in OpenMW Lua (that I could find anyway)
sTargetCriticalStrike - "Sneak Attack for 4x Damage!", originally "Critical Damage!"
Notes to self:
Skill gains don't roll over on skillup.
Skill use events are still called after the skill is maxed out, so the "Sneak Attack for 1.5x Damage!" message still shows for Marksman sneak attacks at Sneak 100.