Volume manipulation in the accusation scene is disabled without SKSE

This commit is contained in:
Eddoursul 2024-02-08 05:05:06 +01:00
parent 810ded0020
commit c806c1a482
6 changed files with 24 additions and 24 deletions

Binary file not shown.

Binary file not shown.

View File

@ -2,12 +2,12 @@ Scriptname _00E_IntegrityCheckAlias extends ReferenceAlias Hidden
Event OnInit() Event OnInit()
if Game.GetRealHoursPassed() > 0.005 ; 18 seconds ;if Game.GetRealHoursPassed() > 0.005 ; 18 seconds
Utility.Wait(0.1) ; wait for menu mode to end ; Utility.Wait(0.1) ; wait for menu mode to end
;Game.QuitToMainMenu() ; ;Game.QuitToMainMenu()
Debug.MessageBox("Savegames, made before the release of Enderal SE 2.1, are incompatible with the current version. Please, start a new game.") ; Debug.MessageBox("Savegames, made before the release of Enderal SE 2.1, are incompatible with the current version. Please, start a new game.")
;return ; ;return
endif ;endif
RegisterForSingleUpdate(2.0) ; Give a few seconds for the game to warm up at the start RegisterForSingleUpdate(2.0) ; Give a few seconds for the game to warm up at the start

View File

@ -20,10 +20,6 @@ Float Property IdleUpdatePeriod = 30.0 AutoReadOnly
Event OnEffectStart(Actor akTarget, Actor akCaster) Event OnEffectStart(Actor akTarget, Actor akCaster)
if SKSE.GetVersion() == 0
return
endif
LockEquipUpdates() LockEquipUpdates()
CooldownShouts = New Shout[128] CooldownShouts = New Shout[128]

View File

@ -80,6 +80,7 @@ Function StartFatherAccuseScene()
;AudioCategoryVOCGeneral.SetVolume(7.5) ;AudioCategoryVOCGeneral.SetVolume(7.5)
; Eddoursul: Instead of setting volume to 1, deafening some users, use relative values ; Eddoursul: Instead of setting volume to 1, deafening some users, use relative values
if SKSE.GetVersion() > 0
fMusicVolume = Utility.GetINIfloat("fVal3:AudioMenu") fMusicVolume = Utility.GetINIfloat("fVal3:AudioMenu")
fVoiceVolume = Utility.GetINIfloat("fVal1:AudioMenu") fVoiceVolume = Utility.GetINIfloat("fVal1:AudioMenu")
fEffectsVolume = Utility.GetINIfloat("fVal4:AudioMenu") fEffectsVolume = Utility.GetINIfloat("fVal4:AudioMenu")
@ -92,6 +93,7 @@ Function StartFatherAccuseScene()
else else
AudioCategoryVOCGeneral.SetVolume(fVoiceVolume * 1.15) AudioCategoryVOCGeneral.SetVolume(fVoiceVolume * 1.15)
endif endif
endif
_00E_Music_Special_Dreams.Remove() _00E_Music_Special_Dreams.Remove()
_00E_SilenceTransitionHighPriority.Remove() _00E_SilenceTransitionHighPriority.Remove()
@ -184,9 +186,11 @@ Function PlayIntroAndMovePlayerToShip()
wait(0.2) wait(0.2)
; Eddoursul: restore the original volume level ; Eddoursul: restore the original volume level
if SKSE.GetVersion() > 0
AudioCategoryVOCGeneral.SetVolume(fVoiceVolume) AudioCategoryVOCGeneral.SetVolume(fVoiceVolume)
AudioCategoryMUS.SetVolume(fMusicVolume) AudioCategoryMUS.SetVolume(fMusicVolume)
AudioCategorySFX.SetVolume(fEffectsVolume) AudioCategorySFX.SetVolume(fEffectsVolume)
endif
AudioCategoryAMBr.SetVolume(1) AudioCategoryAMBr.SetVolume(1)
AudioCategoryAMB.SetVolume(1) AudioCategoryAMB.SetVolume(1)