Download
(1 Kb)
Download
Updated: 11/01/20 10:13 AM
Compatibility:
Markarth (6.2.5)
Stonethorn (6.1.5)
Greymoor (6.0.5)
Updated:11/01/20 10:13 AM
Created:05/10/20 09:47 AM
Monthly downloads:63
Total downloads:4,711
Favorites:8
MD5:
Quiet Stealth
Version: 1.1.2
by: Atronyx [More]
As a fan of stealth gameplay, there are some aspects of ESO stealth that are annoying & intrusive. Namely the sound effect played when entering stealth or upon being detected and the completely unnecessary "HIDDEN" notification.

Enter Quiet Stealth, which has no add-on menu and no dependencies. Simply enable it and enjoy quiet stealth gameplay.

version 1.1.1: update APIVersion for Greymoor

version 1.1: Replaced the hook approach with a variable approach. Thanks Baertram!
Optional Files (0)


Archived Files (3)
File Name
Version
Size
Uploader
Date
1.1.1
1kB
Atronyx
05/26/20 01:23 PM
1.1
1kB
Atronyx
05/10/20 12:09 PM
1.0
2kB
05/10/20 09:47 AM


Post A Reply Comment Options
Unread 05/10/20, 12:55 PM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4912
File comments: 5990
Uploads: 78
Originally Posted by Atronyx
Yeah, makes sense. Didn't have any idea how to implement that script call in an addon. So I found code used to silence the Ultimatum sound and modified it.

I removed the hook call and added your suggestions.

Thanks again!
/script is just the way to run lua code so everything after the /script is lua code you can copy&paste into your addon
Report comment to moderator  
Reply With Quote
Unread 05/10/20, 12:15 PM  
Atronyx
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 9
Uploads: 4
Yeah, makes sense. Didn't have any idea how to implement that script call in an addon. So I found code used to silence the Ultimatum sound and modified it.

I removed the hook call and added your suggestions.

Thanks again!
Report comment to moderator  
Reply With Quote
Unread 05/10/20, 11:21 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4912
File comments: 5990
Uploads: 78
Hi there,

please DO NOT use Zo_PreHook on the PlaySound function as you are doing at the moment, if it's not needed.
It will run each time as any sound is played which makes it quite performance hungry and unnessary in your case:

As the sounds for the stealth are clearly defined and should only be used for the stealth purpose you are simply able to set the sounds to nil like I've written you the example in the forum thread.

So simply remove this:
local function HookPlaySound()
local function PlaySound_Hook(sound)
if (sound == SOUNDS.STEALTH_HIDDEN) then
return true
end
if (sound == SOUNDS.STEALTH_DETECTED) then
return true
end
end
ZO_PreHook("PlaySound", PlaySound_Hook)
end

And add to your OnAddonLoaded function:
Lua Code:
  1. --Backup the original sounds
  2.  local SOUND_STEALTH_HIDDEN_ORIG = SOUNDS.STEALTH_HIDDEN
  3.  local SOUND_STEALTH_DETECTED_ORIG = SOUNDS.STEALTH_DETECTED
  4.  --Set the sounds in the SOUNDS table nil
  5.  SOUNDS.STEALTH_HIDDEN= nil
  6.  SOUNDS.STEALTH_DETECTED = nil
  7.  --Add the backuped sounds to the SOUNDS table with different names again so ppl can still select and use it
  8.  SOUNDS.STEALTH_HIDDEN_ORIG= SOUND_STEALTH_HIDDEN_ORIG
  9.  SOUNDS.STEALTH_DETECTED_ORIG = SOUND_STEALTH_DETECTED_ORIG
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: