Meditation disables all menus except System

This commit is contained in:
Eddoursul 2024-02-27 13:57:00 +01:00
parent 4b2c781034
commit 918b387cdd
6 changed files with 6 additions and 8 deletions

Binary file not shown.

Binary file not shown.

View File

@ -23,8 +23,8 @@ function Init()
Game.ShowRaceMenu()
(MQP02 as _00E_MQP02_Functions).AddRacialAbilites()
bool bDisableFighting = SKSE.GetVersion() > 0 && ! EnderalFunctions.IsVR()
Game.DisablePlayerControls(false, bDisableFighting, true, false, true, false, false, true)
Game.DisablePlayerControls(abMovement = false, abFighting = true, abCamSwitch = true, abLooking = false, abSneaking = true, abMenu = true, abActivate = false, abJournalTabs = true, aiDisablePOVType = 0)
Game.ForceFirstPerson()
MQP03.SetCurrentStageID(15)

View File

@ -56,13 +56,13 @@ EndEvent
Function EnterClassMenu()
bool bDisableFighting = SKSE.GetVersion() > 0 && ! EnderalFunctions.IsVR()
DisablePlayerControls(false, bDisableFighting, true, false, true, false, false, true)
Game.DisablePlayerControls(abMovement = false, abFighting = true, abCamSwitch = true, abLooking = false, abSneaking = true, abMenu = true, abActivate = false, abJournalTabs = true, aiDisablePOVType = 0)
Player.ForceRefTo(PlayerREF)
_00E_Meditate_FirstPerson.SetValue(PlayerREF.GetAnimationVariableBool("isFirstPerson") as float)
_00E_EquipControl.SheatheWeapon(PlayerREF)
_00E_EquipControl.SheatheWeapon(PlayerREF, false)
Form[] equippedTorches = New Form[2]
_00E_TorchControl.UnequipTorches(equippedTorches)
@ -73,7 +73,6 @@ Function EnterClassMenu()
Wait(0.7)
PlayerREF.MoveTo(_00E_ClassMenuOrigin)
Game.ShowFirstPersonGeometry(False)
DisablePlayerControls(false, bDisableFighting, true, false, true, false, false, true)
ForceFirstPerson()
EndFunction

View File

@ -36,8 +36,7 @@ Function MovePlayerToStart()
_00E_Func_AIWalk.PlayerAIWalkStop()
FadeToBlackHoldIMOD.Apply()
ForceFirstPerson()
bool bDisableFighting = SKSE.GetVersion() > 0 && ! EnderalFunctions.IsVR()
DisablePlayerControls(false, bDisableFighting, true, false, true, false, false, true)
Game.DisablePlayerControls(abMovement = false, abFighting = true, abCamSwitch = true, abLooking = false, abSneaking = true, abMenu = true, abActivate = false, abJournalTabs = true, aiDisablePOVType = 0)
PlayerREF.SetAlpha(0.0)
PlayerREF.MoveTo(_00E_ClassMenuOrigin)
SetCurrentStageID(10)