2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_CQJ05_Functions extends Quest
|
|
|
|
|
2024-02-29 22:28:19 +00:00
|
|
|
int function _GetScriptVersion() Global
|
|
|
|
return 1
|
|
|
|
endFunction
|
|
|
|
|
2021-10-05 22:15:58 +00:00
|
|
|
;=====================================================================================
|
|
|
|
; FUNCTIONS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Function AddSilence()
|
|
|
|
|
|
|
|
_00E_SilenceLongTransitionHighPriority.Add()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function RemoveSilence()
|
|
|
|
|
|
|
|
_00E_SilenceLongTransitionHighPriority.Remove()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function AddJesparMusic()
|
|
|
|
|
|
|
|
_00E_SilenceLongTransitionHighPriority.Remove()
|
|
|
|
_00E_Music_Special_Character_Jespar.Add()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function StartSC01()
|
|
|
|
|
|
|
|
Game.DisablePlayerControls(false, false, true, false, false, false, false)
|
|
|
|
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_CameraControl.LockVanityCamera()
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
PlayerREF.UnequipItem(PlayerREF.GetEquippedWeapon())
|
|
|
|
|
|
|
|
CQJ05_SC01_WakeUpSC.ForceStart()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
|
|
|
|
Function AddMusic()
|
|
|
|
|
|
|
|
_00E_Music_Special_Character_Jespar.Remove()
|
|
|
|
_00E_SilenceLongTransitionHighPriority.Remove()
|
|
|
|
_00E_Music_Special_Romance.Add()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function PlayKissAnimation()
|
|
|
|
|
2024-01-09 22:00:18 +00:00
|
|
|
_FS_TheriantrophistControlQuest.TransformBackIfTransformed()
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
If Player.GetRace() == HighElfRace
|
2022-09-07 11:26:42 +00:00
|
|
|
fPlayerScale = _00E_SetActorScale.Change(PlayerREF, 0.92)
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
If PlayerREF.GetEquippedShield() != None
|
|
|
|
PlayerREF.UnequipItem(PlayerREF.GetEquippedShield(), false, true)
|
|
|
|
EndIf
|
|
|
|
PlayerREF.EquipItem(_00E_InvisibleHelmet_Armor, false, true)
|
|
|
|
Utility.Wait(0.1)
|
|
|
|
PlayerREF.RemoveItem(_00E_InvisibleHelmet_Armor, 1, true)
|
|
|
|
Game.ForceThirdPerson()
|
|
|
|
Debug.ToggleMenus()
|
|
|
|
Debug.ToggleCollisions()
|
|
|
|
AudioCategoryMAG.Mute()
|
|
|
|
AudioCategorySFX.Mute()
|
|
|
|
Game.SetPlayerAIDriven(True)
|
|
|
|
Game.DisablePlayerControls(true, true, true, false, true, true, true, true)
|
|
|
|
|
2024-02-13 09:02:30 +00:00
|
|
|
_00E_EquipControl.SheatheWeapon(PlayerREF)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
Utility.Wait(0.5)
|
|
|
|
|
|
|
|
If Player.GetSex() == 0
|
|
|
|
PlayerREF.PlayIdleWithTarget(pa_Idle_Kiss_MaleMale, _00E_MC_JesparREF)
|
|
|
|
Else
|
|
|
|
_00E_MC_JesparREF.PlayIdleWithTarget(pa_Idle_Kiss_MaleFemale, PlayerREF)
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
Utility.Wait(0.5)
|
|
|
|
_00E_MC_JesparREF.SetUnconscious(True)
|
|
|
|
;_00E_MC_JesparREF.SetUnconscious(True)
|
|
|
|
PlayerREF.AddSpell(_00E_Game_abSlowTime, false)
|
|
|
|
|
|
|
|
Utility.Wait(9)
|
|
|
|
|
|
|
|
FadeOut()
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function FadeOut()
|
|
|
|
|
|
|
|
JesparRomance.SetValueInt(1)
|
|
|
|
FadeToBlackIMOD.Apply()
|
|
|
|
Utility.Wait(2)
|
|
|
|
FadeToBlackHoldIMOD.ApplyCrossFade(1)
|
|
|
|
Utility.Wait(1)
|
|
|
|
PlayerREF.RemoveSpell(_00E_Game_abSlowTime)
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_Func_AIWalk.PlayerAIWalk()
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_MC_JesparREF.SetUnconscious(False)
|
|
|
|
PlayerREF.SetUnconscious(False)
|
|
|
|
Debug.ToggleMenus()
|
|
|
|
Debug.ToggleCollisions()
|
2021-10-12 02:10:35 +00:00
|
|
|
If Player.GetRace() == HighElfRace
|
2021-10-05 22:15:58 +00:00
|
|
|
PlayerREF.SetScale(fPlayerScale)
|
2021-10-12 02:10:35 +00:00
|
|
|
EndIf
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_MC_JesparREF.MoveTo(MQ13a_StarshipBedREF)
|
|
|
|
_00E_MC_JesparREF.MoveTo(CQJ05_SC01_JesparLayMarker)
|
|
|
|
PlayerREF.MoveTo(MQ13a_StarshipBedREF)
|
|
|
|
PlayerREF.UnequipAll()
|
|
|
|
_00E_MC_JesparREF.UnequipAll()
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_TimeControl.SkipTimeToHour(4.0)
|
2021-10-05 22:15:58 +00:00
|
|
|
CQJ05_SC03_ShipDoorREF.SetOpen(False)
|
|
|
|
CQJ05_SC03_ShipDoorREF.BlockActivation(True)
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_CameraControl.UnlockVanityCamera()
|
|
|
|
_00E_Func_RefreshFace.RefreshFace()
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function FadeBack()
|
|
|
|
|
|
|
|
String facegen = "bUseFaceGenPreprocessedHeads:General"
|
|
|
|
Utility.SetINIBool(facegen, False)
|
|
|
|
Game.GetPlayer().QueueNiNodeUpdate()
|
|
|
|
Utility.SetINIBool(facegen, True)
|
|
|
|
AudioCategoryMAG.Unmute()
|
|
|
|
AudioCategorySFX.Unmute()
|
|
|
|
FadeToBlackBackIMOD.ApplyCrossFade()
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_Func_AIWalk.PlayerAIWalkStop()
|
2021-10-05 22:15:58 +00:00
|
|
|
Game.SetPlayerAIDriven(False)
|
|
|
|
Game.EnablePlayerControls()
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_Func_RefreshFace.RefreshFace()
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function Reequip()
|
|
|
|
|
|
|
|
FadeToBlackAndBackIMOD.Apply()
|
|
|
|
Utility.Wait(3)
|
|
|
|
_00E_MC_JesparREF.SetOutfit(_00E_MC_JesparOutfit)
|
2024-01-10 14:08:24 +00:00
|
|
|
SetCurrentStageID(20)
|
|
|
|
MQ13a.SetCurrentStageID(80)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function GetIntoPosition()
|
|
|
|
|
2024-02-13 09:02:30 +00:00
|
|
|
_00E_EquipControl.SheatheWeapon(PlayerREF)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function CompleteAndGiveEP()
|
|
|
|
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_EPHandler.GiveEP(__Config_iRewardEXP)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2024-01-10 00:46:13 +00:00
|
|
|
Steam.UnlockAchievement("END_COMPLETE_JESPAR_01")
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndFunction
|
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
float fPlayerScale
|
|
|
|
float fZoomDistanceMinBefore
|
|
|
|
float fZoomDistanceMaxBefore
|
|
|
|
|
|
|
|
Quest Property MQ13a Auto
|
|
|
|
|
|
|
|
Race Property HighElfRace Auto
|
|
|
|
|
|
|
|
int Property __Config_iRewardEXP = 500 Auto
|
|
|
|
|
|
|
|
Actor Property _00E_MC_JesparREF Auto
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
Armor Property _00E_InvisibleHelmet_Armor Auto
|
|
|
|
|
|
|
|
ActorBase Property Player Auto
|
|
|
|
|
|
|
|
Scene Property CQJ05_SC01_WakeUpSC Auto
|
|
|
|
|
|
|
|
Spell Property _00E_Game_abSlowTime Auto
|
|
|
|
|
|
|
|
Idle Property pa_Idle_Kiss_MaleMale Auto
|
|
|
|
Idle Property pa_Idle_Kiss_MaleFemale Auto
|
|
|
|
|
|
|
|
GlobalVariable Property JesparRomance Auto
|
|
|
|
|
|
|
|
SoundCategory Property AudioCategoryMAG Auto
|
|
|
|
SoundCategory Property AudioCategorySFX Auto
|
|
|
|
|
|
|
|
MusicType Property _00E_Music_Special_Romance Auto
|
|
|
|
MusicType Property _00E_SilenceLongTransitionHighPriority Auto
|
|
|
|
MusicType Property _00E_Music_Special_Character_Jespar Auto
|
|
|
|
|
|
|
|
Outfit Property _00E_MC_JesparOutfit Auto
|
|
|
|
|
|
|
|
ImageSpaceModifier Property FadeToBlackIMOD Auto
|
|
|
|
ImageSpaceModifier Property FadeToBlackHoldIMOD Auto
|
|
|
|
ImageSpaceModifier Property FadeToBlackBackIMOD Auto
|
|
|
|
ImageSpaceModifier Property FadeToBlackAndBackIMOD Auto
|
|
|
|
|
|
|
|
ObjectReference Property MQ13a_StarshipBedREF Auto
|
|
|
|
ObjectReference Property CQJ05_SC03_ShipDoorREF Auto
|
|
|
|
ObjectReference Property CQJ05_SC01_JesparLayMarker Auto
|