2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_CQJ06_Functions extends Quest
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; FUNCTIONS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Function SetUp()
|
|
|
|
|
|
|
|
If _00E_MC_JesparREF.IsDisabled()
|
|
|
|
_00E_MC_JesparREF.Enable()
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
_00E_MC_JesparREF.MoveTo(CQJ06_SC01_JesparMarker)
|
|
|
|
|
|
|
|
CQJ06_SC01_JesparTavernSC.ForceStart()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function EnableBand()
|
|
|
|
|
|
|
|
CQJ06_SC01_Parent.Disable()
|
|
|
|
CQJ06_SC01_PlayerBED.SetActorOwner(_00E_MC_JesparREF.GetActorOwner())
|
|
|
|
CQJ06_SC01_TavernDoor.Lock(0)
|
|
|
|
CQJ06_SC01_TavernDoor.SetOpen(True)
|
|
|
|
SetObjectiveCompleted(5)
|
|
|
|
CQC06.EnableBand()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function CloseDoor()
|
|
|
|
|
|
|
|
CQJ06_SC01_TavernDoor.SetOpen(False)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function FadeOut()
|
|
|
|
|
|
|
|
FadeToBlackImod.Apply()
|
|
|
|
FadeToBlackHoldImod.ApplyCrossFade(afFadeDuration = 3.0)
|
|
|
|
Utility.Wait(3)
|
|
|
|
_00E_MC_JesparREF.UnequipAll()
|
|
|
|
PlayerREF.UnequipAll()
|
|
|
|
_00E_MC_JesparREF.MoveTo(CQJ06_SC01_BedREF)
|
|
|
|
PlayerREF.MoveTo(CQJ06_SC01_Chair)
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_Func_AIWalk.PlayerAIWalk()
|
2021-10-05 22:15:58 +00:00
|
|
|
CloseDoor()
|
|
|
|
Game.ForceThirdPerson()
|
2024-01-10 14:08:24 +00:00
|
|
|
SetCurrentStageID(25)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function GiveEPAndCleanUp()
|
|
|
|
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_EPHandler.GiveEP(__Config_iRewardEXP)
|
2024-01-10 00:46:13 +00:00
|
|
|
Steam.UnlockAchievement("END_ROMANCE_JESPAR_01")
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function FadeBackCleanUp()
|
|
|
|
|
|
|
|
FadeToBlackBackImod.ApplyCrossFade()
|
|
|
|
CQC06_SC01_EnableMarker.Enable()
|
|
|
|
CQC06_SC01_MusicMarker.Disable()
|
|
|
|
Utility.Wait(2)
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_Func_AIWalk.PlayerAIWalkStop()
|
2021-10-05 22:15:58 +00:00
|
|
|
Game.EnablePlayerControls()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function CleanUp()
|
|
|
|
|
|
|
|
_00E_MC_JesparREF.SetOutfit(_00E_MC_JesparOutfit)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
int Property __Config_iRewardEXP = 500 Auto
|
|
|
|
|
|
|
|
_00E_CQC06_Functions Property CQC06 Auto
|
|
|
|
|
|
|
|
Actor Property _00E_MC_JesparREF Auto
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
ObjectReference Property CQJ06_SC01_JesparMarker Auto
|
|
|
|
ObjectReference Property CQJ06_SC01_PlayerBED Auto
|
|
|
|
ObjectReference Property CQJ06_SC01_Parent Auto
|
|
|
|
ObjectReference Property CQJ06_SC01_TavernDoor Auto
|
|
|
|
ObjectReference Property CQC06_SC01_EnableMarker Auto
|
|
|
|
ObjectReference Property CQC06_SC01_MusicMarker Auto
|
|
|
|
ObjectReference Property CQJ06_SC01_BedREF Auto
|
|
|
|
ObjectReference Property CQJ06_SC01_Chair Auto
|
|
|
|
|
|
|
|
Outfit Property _00E_MC_JesparOutfit Auto
|
|
|
|
|
|
|
|
Scene Property CQJ06_SC01_JesparTavernSC Auto
|
|
|
|
|
|
|
|
ImageSpaceModifier Property FadeToBlackImod Auto
|
|
|
|
ImageSpaceModifier Property FadeToBlackHoldImod Auto
|
|
|
|
ImageSpaceModifier Property FadeToBlackBackImod Auto
|