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()
if Game.GetRealHoursPassed() > 0.005 ; 18 seconds
Utility.Wait(0.1) ; wait for menu mode to end
;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.")
;return
endif
;if Game.GetRealHoursPassed() > 0.005 ; 18 seconds
; Utility.Wait(0.1) ; wait for menu mode to end
; ;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.")
; ;return
;endif
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)
if SKSE.GetVersion() == 0
return
endif
LockEquipUpdates()
CooldownShouts = New Shout[128]

View File

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