More fixed MQ16 visions

This commit is contained in:
Eddoursul 2024-02-03 06:02:22 +01:00
parent a8e27c1439
commit 5e58098fba
7 changed files with 11 additions and 19 deletions

BIN
Vision fix.esp Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -34,10 +34,11 @@ Function VisionEffectTimestop(bool bSilent = False, bool bCustomImod = False, bo
EndIf
MagRacialBattlecryFire.Play(PlayerREF)
fPlayerSpeedBeforeVision = PlayerREF.GetActorValue("SpeedMult")
fPlayerSpeedBeforeVision = PlayerREF.GetBaseActorValue("SpeedMult")
PlayerREF.SetActorValue("SpeedMult", 35)
UpdateSpeed(PlayerREF)
VisionSound = 0
If !bSilent
VisionSound = _00E_VisionLPM.Play(PlayerREF)
EndIf
@ -58,15 +59,8 @@ EndFunction
Function VisionEffectTimestopStop(bool bMovementHasBeenLocked = False)
float fSpeedMultBefore = PlayerREF.GetActorValue("speedMult")
PlayerREF.SetGhost(False)
Game.DisablePlayerControls()
PlayerREF.SetActorValue("SpeedMult", PlayerSpeed)
PlayerREF.SetGhost(False)
AudioCategoryFST.UnMute()
UpdateSpeed(PlayerREF)
Game.ShowFirstPersonGeometry(True)
If !bMovementHasBeenLocked
If PlayerVisionFailsaveMarker.GetDistance(PlayerREF) <= 1000
@ -76,10 +70,11 @@ Function VisionEffectTimestopStop(bool bMovementHasBeenLocked = False)
EndIf
EndIf
PlayerREF.SetGhost(False)
if VisionSound
Sound.StopInstance(VisionSound)
VisionSound = 0
endif
MAGConjurePortalClose.Play(PlayerREF)
_00E_SilenceAbruptHighPriority.Remove()
PlayerREF.RemoveSpell(_00E_Vision_TimeSpell)
_00E_VisionShaderParticles.Remove(0.5)
_00E_VisionEndImod.ApplyCrossFade(1)
@ -92,9 +87,10 @@ Function VisionEffectTimestopStop(bool bMovementHasBeenLocked = False)
UpdateSpeed(PlayerREF)
Game.EnablePlayerControls()
Game.SetPlayerAIDriven(0)
Game.SetPlayerAIDriven(false)
Game.ShowFirstPersonGeometry(True)
_00E_SilenceAbruptHighPriority.Remove()
PlayerREF.SetGhost(False)
EndFunction
@ -223,7 +219,6 @@ float fPlayerSpeedBeforeVision
ObjectReference Property PlayerVisionStartMarker Auto Hidden
ObjectReference Property PlayerVisionFailsaveMarker Auto
float PlayerSpeed
int VisionSound
SPELL Property _00E_Vision_TimeSpell Auto

View File

@ -64,10 +64,7 @@ EndFunction
Function StopVision()
_00E_PlayerFunctions.GetVisionControl().VisionEffectTimestopStop()
_00E_PlayerFunctions.GetVisionControl().UpdateSpeed(PlayerREF)
MQ05_SC3_Vision.Stop()
Game.EnablePlayerControls()
Game.SetPlayerAIDriven(False)
EndFunction

View File

@ -527,9 +527,9 @@ EndFunction
Function PrepareVision_SC10()
MQ16_SC10_VisionLinker.Enable()
Wait(1)
MQ16_SC10_VisionPriestess.Kill(MQ16_SC10_VisionPriestess)
MQ16_SC10_VisionLinker.Enable()
MQ16_SC10_VisionPriestess.MoveToMyEditorLocation() ; otherwise snaps to navmesh
EndFunction