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

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

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

Loading…
Cancel
Save