4
Fork 0

Moved single use SlowMotion() to its quest script

remove-levelsystem
Eddoursul 4 months ago
parent 1ebeeff25d
commit aa7e482b82
  1. BIN
      Move SlowMotion.esp
  2. BIN
      scripts/_00e_nqr01_functions.pex
  3. BIN
      scripts/_00e_questfunctions.pex
  4. 26
      source/scripts/_00e_nqr01_functions.psc
  5. 25
      source/scripts/_00e_questfunctions.psc

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -149,6 +149,24 @@ Function InitializeCoordinates(Actor TargetVictim)
EndFunction
Function _SlowMotion(float fDuration = 5.0, bool bSound = true)
PlayerREF.AddSpell(_00E_FS_NQR05_SlowMotionSP, False)
if bSound
_00E_FS_NQR05_SlowMotion_IntroM.Play(PlayerREF)
endif
Wait(fDuration)
if bSound
_00E_FS_NQR05_SlowMotion_OutroM.Play(PlayerREF)
endif
PlayerREF.RemoveSpell(_00E_FS_NQR05_SlowMotionSP)
EndFunction
Function Stab()
_00E_NQR01_Battle05_Parent.SetGhost(False)
@ -164,7 +182,7 @@ Function Stab()
MAGIllusionFearExplosionSDM.Play(_00E_SC_TharaelREF)
;Utility.Wait(2.4)
Wait(2.0)
Levelsystem.SlowMotion(2)
_SlowMotion(2)
endIf
_00E_BloodyFXShader.Play(_00E_SC_TharaelREF)
@ -841,3 +859,9 @@ Sound Property _00E_FS_NQR01_CrowdGaspM Auto
; 1: GiveRewardBattle05 done
; 2: everything done, no more talking with Rasha
Int Property bAfterBattle05TalkStage = 0 Auto Conditional Hidden
SPELL Property _00E_FS_NQR05_SlowMotionSP Auto
Sound Property _00E_FS_NQR05_SlowMotion_IntroM Auto
Sound Property _00E_FS_NQR05_SlowMotion_OutroM Auto

@ -401,24 +401,6 @@ EndFunction
; ADDED IN FORGOTTEN STORIES
;=====================================================================================
Function SlowMotion(float fDuration = 5.0, bool bSound = true)
PlayerREF.AddSpell(_00E_FS_NQR05_SlowMotionSP, False)
if bSound
_00E_FS_NQR05_SlowMotion_IntroM.Play(PlayerREF)
endif
Wait(fDuration)
if bSound
_00E_FS_NQR05_SlowMotion_OutroM.Play(PlayerREF)
endif
PlayerREF.RemoveSpell(_00E_FS_NQR05_SlowMotionSP)
EndFunction
Function SetNPCAsCompanion(Actor akActor, bool bCompanion = True, int iCompanionHealth = 100, int iCompanionStamina = 100, int iCompanionMagicka = 100) Global
;Sets an NPC as companion, showing his health bar, making him friendly, unflagging him as ghost. Does the opposite when bCompanion is set to false.
;Additionally sets the AVs Health, Stamina, Magicka for the NPC companion
@ -453,9 +435,6 @@ EndFunction
; PROPERTIES
;=====================================================================================
int Property iMajorClassIndex Auto Conditional Hidden
int Property iMinorClassIndex Auto Conditional Hidden
bool Property bAllowIdleChatter = True Auto Conditional Hidden ; Set this to true when NPCs shouldn't Idle around
float Property fCameraMaxDistance Auto Hidden
@ -463,9 +442,6 @@ float Property fBaseGravity Auto Hidden
;Actor akPlayerCopy
Sound Property _00E_FS_NQR05_SlowMotion_IntroM Auto
Sound Property _00E_FS_NQR05_SlowMotion_OutroM Auto
ActorBase Property _00E_MC_Jespar Auto
ActorBase Property _00E_MC_Calia Auto
ActorBase Property _00E_SC_Tharael Auto
@ -575,7 +551,6 @@ Message Property _00E_Levelsystem_sGhostwalkEnemyTooCloseToWall Auto
Idle Property IdleMagic_01 Auto
Spell Property _00E_PriestCureDiseases Auto
Spell Property _00E_FS_NQR05_SlowMotionSP Auto
GlobalVariable Property _00E_HeadtrackGlobal Auto

Loading…
Cancel
Save