2021-10-05 22:15:58 +00:00
|
|
|
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
|
|
|
|
;NEXT FRAGMENT INDEX 20
|
|
|
|
Scriptname SF_MQ08_IntoTheDeep_SceneTem_000C673E Extends Scene Hidden
|
|
|
|
|
|
|
|
;BEGIN FRAGMENT Fragment_0
|
|
|
|
Function Fragment_0()
|
|
|
|
;BEGIN CODE
|
|
|
|
GetOwningQUest().SetObjectiveCompleted(65)
|
|
|
|
GetOwningQUest().SetObjectiveDisplayed(70)
|
|
|
|
_00E_MC_JesparREF.ClearExpressionOverride()
|
|
|
|
;END CODE
|
|
|
|
EndFunction
|
|
|
|
;END FRAGMENT
|
|
|
|
|
|
|
|
;BEGIN FRAGMENT Fragment_3
|
|
|
|
Function Fragment_3()
|
|
|
|
;BEGIN CODE
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_Func_SetNPCAsCompanion.SetNPCAsCompanion(_00E_MC_JesparREF, True, 450, 500, 100)
|
|
|
|
_00E_Func_SetNPCAsCompanion.SetNPCAsCompanion(_00E_MC_KonstantinREF, True, 400, 100, 540)
|
2021-10-05 22:15:58 +00:00
|
|
|
; Set Konstantin to help allies
|
|
|
|
_00E_MC_KonstantinREF.AddToFaction(PlayerAlliesFaction)
|
2023-12-08 02:45:53 +00:00
|
|
|
fOldKonstantinAssistance = _00E_MC_KonstantinREF.GetActorValue("Assistance")
|
|
|
|
_00E_MC_KonstantinREF.SetActorValue("Assistance", 1)
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_MC_KonstantinREF.EvaluatePackage()
|
|
|
|
;END CODE
|
|
|
|
EndFunction
|
|
|
|
;END FRAGMENT
|
|
|
|
|
|
|
|
;BEGIN FRAGMENT Fragment_18
|
|
|
|
Function Fragment_18()
|
|
|
|
;BEGIN CODE
|
2024-01-09 22:00:18 +00:00
|
|
|
(Game.GetPlayer() as _00E_PlayerFunctions).ResumeRandomHeadTracking()
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_MC_KonstantinREF.RemoveFromFaction(PlayerAlliesFaction)
|
|
|
|
If fOldKonstantinAssistance >= 0.0
|
2023-12-08 02:45:53 +00:00
|
|
|
_00E_MC_KonstantinREF.SetActorValue("Assistance", fOldKonstantinAssistance)
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
|
|
|
;END CODE
|
|
|
|
EndFunction
|
|
|
|
;END FRAGMENT
|
|
|
|
|
|
|
|
;BEGIN FRAGMENT Fragment_12
|
|
|
|
Function Fragment_12()
|
|
|
|
;BEGIN CODE
|
2024-01-09 22:00:18 +00:00
|
|
|
(Game.GetPlayer() as _00E_PlayerFunctions).StopRandomHeadTracking()
|
2021-10-05 22:15:58 +00:00
|
|
|
;END CODE
|
|
|
|
EndFunction
|
|
|
|
;END FRAGMENT
|
|
|
|
|
|
|
|
;BEGIN FRAGMENT Fragment_11
|
|
|
|
Function Fragment_11()
|
|
|
|
;BEGIN CODE
|
|
|
|
Utility.Wait(0.25) ; Small pause to prevent Konstantin's voice from being eaten on transition from dialogue
|
|
|
|
;END CODE
|
|
|
|
EndFunction
|
|
|
|
;END FRAGMENT
|
|
|
|
|
|
|
|
;BEGIN FRAGMENT Fragment_13
|
|
|
|
Function Fragment_13()
|
|
|
|
;BEGIN CODE
|
|
|
|
; Stop Jespar's happy grin from the previous dialogue line
|
|
|
|
_00E_MC_JesparREF.SetExpressionOverride(7, 50)
|
|
|
|
_00E_MC_JesparREF.PlayIdle(IdleStop_Loose)
|
|
|
|
;END CODE
|
|
|
|
EndFunction
|
|
|
|
;END FRAGMENT
|
|
|
|
|
|
|
|
;BEGIN FRAGMENT Fragment_17
|
|
|
|
Function Fragment_17()
|
|
|
|
;BEGIN CODE
|
|
|
|
_00E_MC_JesparREF.ClearExpressionOverride()
|
|
|
|
;END CODE
|
|
|
|
EndFunction
|
|
|
|
;END FRAGMENT
|
|
|
|
|
|
|
|
;BEGIN FRAGMENT Fragment_6
|
|
|
|
Function Fragment_6()
|
|
|
|
;BEGIN CODE
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_Func_SetNPCAsCompanion.SetNPCAsCompanion(_00E_MC_JesparREF, false)
|
|
|
|
_00E_Func_SetNPCAsCompanion.SetNPCAsCompanion(_00E_MC_KonstantinREF, False)
|
|
|
|
(Game.GetPlayer() as _00E_PlayerFunctions).StopRandomHeadTracking()
|
2021-10-05 22:15:58 +00:00
|
|
|
;END CODE
|
|
|
|
EndFunction
|
|
|
|
;END FRAGMENT
|
|
|
|
|
|
|
|
;BEGIN FRAGMENT Fragment_14
|
|
|
|
Function Fragment_14()
|
|
|
|
;BEGIN CODE
|
2024-01-09 22:00:18 +00:00
|
|
|
(Game.GetPlayer() as _00E_PlayerFunctions).ResumeRandomHeadTracking()
|
2021-10-05 22:15:58 +00:00
|
|
|
;END CODE
|
|
|
|
EndFunction
|
|
|
|
;END FRAGMENT
|
|
|
|
|
|
|
|
;BEGIN FRAGMENT Fragment_15
|
|
|
|
Function Fragment_15()
|
|
|
|
;BEGIN CODE
|
|
|
|
Utility.Wait(0.25)
|
|
|
|
;END CODE
|
|
|
|
EndFunction
|
|
|
|
;END FRAGMENT
|
|
|
|
|
|
|
|
;END FRAGMENT CODE - Do not edit anything between this and the begin comment
|
|
|
|
|
|
|
|
Actor Property _00E_MC_JesparREF Auto
|
|
|
|
|
|
|
|
Actor Property _00E_MC_KonstantinREF Auto
|
|
|
|
|
|
|
|
Idle Property IdleStop_Loose Auto
|
|
|
|
Faction Property PlayerAlliesFaction Auto
|
|
|
|
Float fOldKonstantinAssistance = -1.0
|