111 lines
2.7 KiB
Plaintext
111 lines
2.7 KiB
Plaintext
;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
|
|
_00E_QuestFunctions.SetNPCAsCompanion(_00E_MC_JesparREF, True, 450, 500, 100)
|
|
_00E_QuestFunctions.SetNPCAsCompanion(_00E_MC_KonstantinREF, True, 400, 100, 540)
|
|
; Set Konstantin to help allies
|
|
_00E_MC_KonstantinREF.AddToFaction(PlayerAlliesFaction)
|
|
fOldKonstantinAssistance = _00E_MC_KonstantinREF.GetAV("Assistance")
|
|
_00E_MC_KonstantinREF.SetAV("Assistance", 1)
|
|
_00E_MC_KonstantinREF.EvaluatePackage()
|
|
;END CODE
|
|
EndFunction
|
|
;END FRAGMENT
|
|
|
|
;BEGIN FRAGMENT Fragment_18
|
|
Function Fragment_18()
|
|
;BEGIN CODE
|
|
Levelsystem.ResumeRandomHeadTracking()
|
|
_00E_MC_KonstantinREF.RemoveFromFaction(PlayerAlliesFaction)
|
|
If fOldKonstantinAssistance >= 0.0
|
|
_00E_MC_KonstantinREF.SetAV("Assistance", fOldKonstantinAssistance)
|
|
EndIf
|
|
;END CODE
|
|
EndFunction
|
|
;END FRAGMENT
|
|
|
|
;BEGIN FRAGMENT Fragment_12
|
|
Function Fragment_12()
|
|
;BEGIN CODE
|
|
Levelsystem.StopRandomHeadTracking()
|
|
;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
|
|
_00E_QuestFunctions.SetNPCAsCompanion(_00E_MC_JesparREF, false)
|
|
_00E_QuestFunctions.SetNPCAsCompanion(_00E_MC_KonstantinREF, False)
|
|
Levelsystem.StopRandomHeadTracking()
|
|
;END CODE
|
|
EndFunction
|
|
;END FRAGMENT
|
|
|
|
;BEGIN FRAGMENT Fragment_14
|
|
Function Fragment_14()
|
|
;BEGIN CODE
|
|
Levelsystem.ResumeRandomHeadTracking()
|
|
;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
|
|
|
|
_00E_QuestFunctions Property Levelsystem Auto
|
|
Idle Property IdleStop_Loose Auto
|
|
Faction Property PlayerAlliesFaction Auto
|
|
Float fOldKonstantinAssistance = -1.0
|