enderalse/source/scripts/_00e_cqj05_functions.psc

207 lines
5.2 KiB
Plaintext
Raw Normal View History

Scriptname _00E_CQJ05_Functions extends Quest
2024-02-29 22:28:19 +00:00
int function _GetScriptVersion() Global
return 1
endFunction
;=====================================================================================
; 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)
_00E_CameraControl.LockVanityCamera()
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()
_FS_TheriantrophistControlQuest.TransformBackIfTransformed()
If Player.GetRace() == HighElfRace
fPlayerScale = _00E_SetActorScale.Change(PlayerREF, 0.92)
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)
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)
_00E_Func_AIWalk.PlayerAIWalk()
_00E_MC_JesparREF.SetUnconscious(False)
PlayerREF.SetUnconscious(False)
Debug.ToggleMenus()
Debug.ToggleCollisions()
If Player.GetRace() == HighElfRace
PlayerREF.SetScale(fPlayerScale)
EndIf
_00E_MC_JesparREF.MoveTo(MQ13a_StarshipBedREF)
_00E_MC_JesparREF.MoveTo(CQJ05_SC01_JesparLayMarker)
PlayerREF.MoveTo(MQ13a_StarshipBedREF)
PlayerREF.UnequipAll()
_00E_MC_JesparREF.UnequipAll()
_00E_TimeControl.SkipTimeToHour(4.0)
CQJ05_SC03_ShipDoorREF.SetOpen(False)
CQJ05_SC03_ShipDoorREF.BlockActivation(True)
_00E_CameraControl.UnlockVanityCamera()
_00E_Func_RefreshFace.RefreshFace()
EndFunction
Function FadeBack()
String facegen = "bUseFaceGenPreprocessedHeads:General"
Utility.SetINIBool(facegen, False)
Game.GetPlayer().QueueNiNodeUpdate()
Utility.SetINIBool(facegen, True)
AudioCategoryMAG.Unmute()
AudioCategorySFX.Unmute()
FadeToBlackBackIMOD.ApplyCrossFade()
_00E_Func_AIWalk.PlayerAIWalkStop()
Game.SetPlayerAIDriven(False)
Game.EnablePlayerControls()
_00E_Func_RefreshFace.RefreshFace()
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)
EndFunction
Function GetIntoPosition()
2024-02-13 09:02:30 +00:00
_00E_EquipControl.SheatheWeapon(PlayerREF)
EndFunction
Function CompleteAndGiveEP()
_00E_EPHandler.GiveEP(__Config_iRewardEXP)
Steam.UnlockAchievement("END_COMPLETE_JESPAR_01")
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