4
Fork 0

More fixed MQ16 visions

development
Eddoursul 3 months ago
parent a8e27c1439
commit 5e58098fba
  1. BIN
      Vision fix.esp
  2. BIN
      scripts/_00E_VisionControl.pex
  3. BIN
      scripts/_00e_mq05_functions.pex
  4. BIN
      scripts/_00e_mq16_functions.pex
  5. 23
      source/scripts/_00E_VisionControl.psc
  6. 3
      source/scripts/_00e_mq05_functions.psc
  7. 4
      source/scripts/_00e_mq16_functions.psc

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -26,7 +26,7 @@ Function VisionEffectTimestop(bool bSilent = False, bool bCustomImod = False, bo
_00E_VisionStartTimestopIMOD.Apply()
_00E_VisionImod.ApplyCrossFade(0.25)
EndIf
PlayerREF.AddSpell(_00E_Vision_TimeSpell, False)
if !bCustomMusic
@ -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)
Sound.StopInstance(VisionSound)
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

@ -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

@ -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

Loading…
Cancel
Save