enderalse/source/scripts/_00e_p02_veiledwomanspelllaunchers.psc

59 lines
2.2 KiB
Plaintext
Raw Normal View History

Scriptname _00E_P02_VeiledWomanSpellLauncherS extends ObjectReference
ReferenceAlias Property SiriusREF Auto
Actor Property PlayerREF Auto
Sound Property QSTMG07MagnusStormCollegeSmallLPM Auto
Sound Property _00E_MQP02_SpellThunderC Auto
Sound Property _00E_NPCKillBodyfall Auto
Idle Property IdleT02AscendMale Auto
ObjectReference Property SiriusMarker Auto
ObjectReference Property PlayerMarker Auto
GlobalVariable Property _00E_MQP02_LevitateGlobal Auto
Topic Property MQP02_SC4_SiriusLevitationTopic Auto
Topic Property MQP02_SC4_SiriusScreamTopic Auto
Event OnInit()
Actor Sirius = Sirius.GetActorReference() as Actor
Sirius.SetLookAt(PlayerREF)
Game.ForceFirstPerson()
Game.DisablePlayerControls(true, true, true, false, true, true, true, true)
int SpellAMB = QSTMG07MagnusStormCollegeSmallLPM.Play(PlayerREF)
Sirius.PlayIdle(IdleT02AscendMale)
;--------------------LEVITATE----------------------
PlayerREF.SplineTranslateTo(PlayerREF.GetPositionX(), PlayerREF.GetPositionY(), 90.0, PlayerREF.GetAngleX(), PlayerREF.GetAngleY(), PlayerREF.GetAngleZ(), 5, 9)
Sirius.SplineTranslateTo(Sirius.GetPositionX(), Sirius.GetPositionY(), 90.0, Sirius.GetAngleX(), Sirius.GetAngleY(), Sirius.GetAngleZ(), 5, 9)
_00E_P02_VeiledWomanSpellIntro.Apply()
Utility.Wait(1)
_00E_P02_VeiledWomanSpellIntro.PopTo(_00E_P02_VeiledWomanSpellLoop)
Sirius.Say(MQP02_SC4_SiriusLevitationTopic)
Utility.Wait(7)
;--------------------CRASH!-------------------------
PlayerREF.StopTranslation()
Game.ShakeCamera()
int SpellSound = _00E_MQP02_SpellThunderC.Play(PlayerREF)
PlayerREF.SplineTranslateTo(300.0 * Math.Sin(PlayerRef.GetAngleZ()), PlayerREF.GetPositionY(), PlayerREF.GetPositionZ() - 5.0, PlayerREF.GetAngleX(), PlayerREF.GetAngleY(), -90, 100, 2000)
Sirius.Say(MQP02_SC4_SiriusScreamTopic)
Utility.Wait(0.3)
Sound.StopInstance(SpellAMB)
_00E_NPCKillBodyfall.Play(PlayerREF)
_00E_P02_VeiledWomanSpellLoop.PopTo(FadeToBlackHoldImod)
Utility.Wait(0.8)
Sound.StopInstance(SpellSound)
MQ_P02_ANewLife.SetStage(80)
Self.Delete()
EndEvent
ImageSpaceModifier Property _00E_P02_VeiledWomanSpellLoop Auto
ImageSpaceModifier Property _00E_P02_VeiledWomanSpellIntro Auto
ImageSpaceModifier Property FadeToBlackHoldImod Auto