Added failsafe to _00E_Complex_AddSilenceSC to ensure silence removal

This commit is contained in:
Eddoursul 2025-02-27 00:21:34 +01:00
parent 634d104976
commit 74264d2d26
3 changed files with 23 additions and 4 deletions

View File

@ -1,7 +1,7 @@
Enderal Special Edition Changelog
Ported by Eddoursul et al
See https://en.wiki.sureai.net/Enderal:Patch for the list of official patches up to version 1.6.4.
See https://en.wiki.sureai.net/Enderal:Patch for the list of official patches up to version 1.6.4 for Skyrim LE.
Beware, spoilers ahead!
@ -10,6 +10,7 @@ Beware, spoilers ahead!
- Chinese Simplified localization revision by DaisyComment (no translation of lines added after 2.0.12.4 yet).
- Dimension Rift might get stuck in an infinite effect+sound loop if player left the cell while it's active.
- Fixed missing damage from spectral arrows produced by the Arcane Arrow affinity.
- Fixed help messages (in the middle of the screen) sometimes getting stuck in an infinite savebaked loop.
- Dreamflower can be found without finishing The Secrets first.
- Revised alchemy. Consistency and distribution changes across the board due to lack of a coherent alchemy system prior to this patch, such as:
@ -18,13 +19,13 @@ Beware, spoilers ahead!
-- Merged two redundant `Health Damage` groups and 'Poison Damage' into a single 'Poison Damage' group, applying damage over time. One of the merged effects used to revert itself immediately after expiration.
-- Merged redundant 'Damage Mana' and 'Mana damaged' groups and 'Damage Mana temporary' into a single 'Damage Mana' group, applying damage over time.
-- Some combinations of Fire Resistance, Shock Resistance, and Water Breathing worked for 0 seconds.
-- All ingredients, except one, allowed Water Breathing for less than 10 seconds. Base Water Breathing duration has been increased to 30.
-- All ingredients, except one, used to allow Water Breathing for less than 10 seconds. Base Water Breathing duration has been increased to 30.
-- Significantly, at least x10, increased effect from 'Damage Mana' and 'Damage Stamina' poisons to finally make them useful.
-- Fixed several ingredients having duplicated or contradicting effects (for example, Damage and Restore Health).
-- 'Increase Arcane Fever' no longer occupies a whole slot in ingredient effects (it is still applied automatically with Restore Health).
-- Fixed excessive damage caused by Stain Mushroom poisons.
-- Fixed "Fortify" effects having duration 1-2 seconds.
-- Fixed the 'Slow' effect almost never working due to an engine bug.
-- Fixed the 'Slow' effect never working due to an engine bug.
-- Effects of unique ingredients are known from the start.
OverDev:
@ -167,6 +168,8 @@ Keranos:
2.0.12.4 (2022-09-30)
Discontinued Steam support.
- Skyrim SE 1.6.640 (Steam) and 1.6.659 (GOG) support.
- Fixed the dialog quit popup appearing in non-locked conversations.
- Making a Wolf Blood in Call of the Hunt led to the objective to drink Chymikum, and vice versa.

View File

@ -5,6 +5,7 @@ Event OnTriggerEnter(ObjectReference akActionRef)
If akActionRef == PlayerREF
If (__Config_QuestToSet.GetCurrentStageID() >= __Config_iMinStage) && (__Config_QuestToSet.GetCurrentStageID() <= __Config_iMaxStage)
_00E_SilenceLongTransitionHighPriority.Add()
bActive = true
EndIf
EndIf
@ -14,12 +15,27 @@ Event OnTriggerLeave(ObjectReference akActionRef)
If akActionRef == PlayerREF
_00E_SilenceLongTransitionHighPriority.Remove()
UnregisterForUpdate()
bActive = false
EndIf
EndEvent
; 2.1.4 Failsafe to ensure silence removal when OnTriggerLeave does not fire
Event OnTrigger(ObjectReference akActionRef)
If bActive && akActionRef == PlayerREF
RegisterForSingleUpdate(3.0)
EndIf
EndEvent
Event OnUpdate()
_00E_SilenceLongTransitionHighPriority.Remove()
bActive = false
EndEvent
int Property __Config_iMinStage Auto
int Property __Config_iMaxStage Auto
Actor Property PlayerREF Auto
Quest Property __Config_QuestToSet Auto
MusicType Property _00E_SilenceLongTransitionHighPriority Auto
MusicType Property _00E_SilenceLongTransitionHighPriority Auto
bool bActive