More fixed MQ16 visions
This commit is contained in:
parent
a8e27c1439
commit
5e58098fba
BIN
Vision fix.esp
Normal file
BIN
Vision fix.esp
Normal file
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…
Reference in New Issue
Block a user