4
Fork 0

Moved AIWalk functions to a separate script

remove-levelsystem
Eddoursul 4 months ago
parent 790be3b93c
commit 35f8fb2e19
  1. BIN
      scripts/_00E_Func_AIWalk.pex
  2. BIN
      scripts/_00e_cqc05_functions.pex
  3. BIN
      scripts/_00e_cqc06_functions.pex
  4. BIN
      scripts/_00e_cqj05_functions.pex
  5. BIN
      scripts/_00e_cqj06_functions.pex
  6. BIN
      scripts/_00e_fs_nqr05_functions.pex
  7. BIN
      scripts/_00e_mq05_functions.pex
  8. BIN
      scripts/_00e_mq06_functions.pex
  9. BIN
      scripts/_00e_mq08_questfunctions.pex
  10. BIN
      scripts/_00e_mq09_questfunctions.pex
  11. BIN
      scripts/_00e_mq10a_functions.pex
  12. BIN
      scripts/_00e_mq12c_functions.pex
  13. BIN
      scripts/_00e_mq13c_functions.pex
  14. BIN
      scripts/_00e_mq16_functions.pex
  15. BIN
      scripts/_00e_mq17_functions.pex
  16. BIN
      scripts/_00e_mqp02_functions.pex
  17. BIN
      scripts/_00e_mqp03_functions.pex
  18. BIN
      scripts/_00e_nq15functions.pex
  19. BIN
      scripts/_00e_nq_g_07_functions.pex
  20. BIN
      scripts/_00e_questfunctions.pex
  21. BIN
      scripts/qf_cqj05_00137085.pex
  22. BIN
      scripts/sf_cqc05_sc02_caliaromance02_00140074.pex
  23. BIN
      scripts/sf_cqc05_sc03_romance_001400b1.pex
  24. BIN
      scripts/sf_cqj05_sc01_wakeupsc_0013fa96.pex
  25. BIN
      scripts/sf_fs_nqr05_sc17_afterbossfi_01029a2d.pex
  26. BIN
      scripts/sf_fs_nqr05_sc19_fatherstory_0102a070.pex
  27. BIN
      scripts/sf_fs_nqr05_sc21_tharaelatch_0102b45f.pex
  28. BIN
      scripts/sf_lisharidialogue_sc01_lish_0013eb83.pex
  29. BIN
      scripts/sf_mq06_sc2_playerwakesupdup_000d8e9e.pex
  30. BIN
      scripts/sf_mq06_sc5_ritualscene_000fe207.pex
  31. BIN
      scripts/sf_mq07b_deusexmachina_scene_000a9aba.pex
  32. BIN
      scripts/sf_mq08_intothedeep_gototrai_000ea944.pex
  33. BIN
      scripts/sf_mq09_d1_sceneisle_000ea957.pex
  34. BIN
      scripts/sf_mq09_d4_taranorscene_000eac86.pex
  35. BIN
      scripts/sf_mq10a_sc1_dreamsequencepa_0011846c.pex
  36. BIN
      scripts/sf_mq12c_sc03_dream_00134595.pex
  37. BIN
      scripts/sf_mq13c_sc01_moveelevatorup_0013b5e5.pex
  38. BIN
      scripts/sf_mq13c_sc09_killscene_0013b5dd.pex
  39. BIN
      scripts/sf_mq16_sc06_assault_001484d8.pex
  40. BIN
      scripts/sf_mq17_sc10_launchsequence_0014bebe.pex
  41. BIN
      scripts/sf_mq18a_sc01_dreamsequence_0014bf1e.pex
  42. BIN
      scripts/sf_mq18a_sc02_starcity_0014bfdc.pex
  43. BIN
      scripts/sf_mqp02_sc4_veiledwomanappe_0007bbcf.pex
  44. BIN
      scripts/sf_nq15_sc5_001276fb.pex
  45. BIN
      scripts/sf_nq_g_04_sc03_dijaamencoun_00139dc2.pex
  46. BIN
      scripts/sf_nq_g_06_sc02_dijaamtalkat_0013cfc1.pex
  47. BIN
      scripts/sf_nq_g_07dijaam_sc07_dijaam_00147066.pex
  48. 21
      source/scripts/_00E_Func_AIWalk.psc
  49. 12
      source/scripts/_00e_cqc05_functions.psc
  50. 6
      source/scripts/_00e_cqc06_functions.psc
  51. 4
      source/scripts/_00e_cqj05_functions.psc
  52. 4
      source/scripts/_00e_cqj06_functions.psc
  53. 6
      source/scripts/_00e_fs_nqr05_functions.psc
  54. 15
      source/scripts/_00e_mq05_functions.psc
  55. 6
      source/scripts/_00e_mq06_functions.psc
  56. 2
      source/scripts/_00e_mq08_questfunctions.psc
  57. 6
      source/scripts/_00e_mq09_questfunctions.psc
  58. 2
      source/scripts/_00e_mq10a_functions.psc
  59. 8
      source/scripts/_00e_mq12c_functions.psc
  60. 7
      source/scripts/_00e_mq13c_functions.psc
  61. 2
      source/scripts/_00e_mq16_functions.psc
  62. 7
      source/scripts/_00e_mq17_functions.psc
  63. 2
      source/scripts/_00e_mqp02_functions.psc
  64. 2
      source/scripts/_00e_mqp03_functions.psc
  65. 2
      source/scripts/_00e_nq15functions.psc
  66. 5
      source/scripts/_00e_nq_g_07_functions.psc
  67. 20
      source/scripts/_00e_questfunctions.psc
  68. 2
      source/scripts/qf_cqj05_00137085.psc
  69. 2
      source/scripts/sf_cqc05_sc02_caliaromance02_00140074.psc
  70. 2
      source/scripts/sf_cqc05_sc03_romance_001400b1.psc
  71. 2
      source/scripts/sf_cqj05_sc01_wakeupsc_0013fa96.psc
  72. 2
      source/scripts/sf_fs_nqr05_sc17_afterbossfi_01029a2d.psc
  73. 6
      source/scripts/sf_fs_nqr05_sc19_fatherstory_0102a070.psc
  74. 4
      source/scripts/sf_fs_nqr05_sc21_tharaelatch_0102b45f.psc
  75. 4
      source/scripts/sf_lisharidialogue_sc01_lish_0013eb83.psc
  76. 2
      source/scripts/sf_mq06_sc2_playerwakesupdup_000d8e9e.psc
  77. 4
      source/scripts/sf_mq06_sc5_ritualscene_000fe207.psc
  78. 4
      source/scripts/sf_mq07b_deusexmachina_scene_000a9aba.psc
  79. 4
      source/scripts/sf_mq08_intothedeep_gototrai_000ea944.psc
  80. 2
      source/scripts/sf_mq09_d1_sceneisle_000ea957.psc
  81. 2
      source/scripts/sf_mq09_d4_taranorscene_000eac86.psc
  82. 2
      source/scripts/sf_mq10a_sc1_dreamsequencepa_0011846c.psc
  83. 2
      source/scripts/sf_mq12c_sc03_dream_00134595.psc
  84. 2
      source/scripts/sf_mq13c_sc01_moveelevatorup_0013b5e5.psc
  85. 2
      source/scripts/sf_mq13c_sc09_killscene_0013b5dd.psc
  86. 2
      source/scripts/sf_mq16_sc06_assault_001484d8.psc
  87. 2
      source/scripts/sf_mq17_sc10_launchsequence_0014bebe.psc
  88. 4
      source/scripts/sf_mq18a_sc01_dreamsequence_0014bf1e.psc
  89. 4
      source/scripts/sf_mq18a_sc02_starcity_0014bfdc.psc
  90. 2
      source/scripts/sf_mqp02_sc4_veiledwomanappe_0007bbcf.psc
  91. 4
      source/scripts/sf_nq15_sc5_001276fb.psc
  92. 4
      source/scripts/sf_nq_g_04_sc03_dijaamencoun_00139dc2.psc
  93. 4
      source/scripts/sf_nq_g_06_sc02_dijaamtalkat_0013cfc1.psc
  94. 2
      source/scripts/sf_nq_g_07dijaam_sc07_dijaam_00147066.psc

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,21 @@
Scriptname _00E_Func_AIWalk Hidden
function PlayerAIWalkStop() Global
Game.ShowFirstPersonGeometry(True)
Game.SetPlayerAIDriven(False)
Game.EnablePlayerControls()
endFunction
function PlayerAIWalk(bool abLockedSight = True) Global
Game.ShowFirstPersonGeometry(False)
Game.SetPlayerAIDriven(True)
If abLockedSight == True
Game.DisablePlayerControls(true, true, true, true, true, true, true, true)
ElseIf abLockedSight == False
Game.DisablePlayerControls(true, true, true, False, true, true, true, true)
EndIf
endFunction

@ -1,7 +1,5 @@
Scriptname _00E_CQC05_Functions extends Quest Conditional
Import _00E_QuestFunctions
;=====================================================================================
; FUNCTIONS
;=====================================================================================
@ -93,7 +91,7 @@ Function GetIntoPositionIfRomance()
; if CaliaFlirtCounter.GetValueInt() >= 4 && (RomanceLockedCalia.GetValueInt() == 0)
Game.ForceThirdPerson()
_00E_QuestFunctions.PlayerAiWalk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
; EndIf
EndFunction
@ -101,7 +99,7 @@ EndFunction
Function ReEnableControlsIfNoRomance()
if CaliaFlirtCounter.GetValueInt() < 4 || (RomanceLockedCalia.GetValueInt() == 1)
PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
Game.EnablePlayerControls()
EndIf
@ -195,7 +193,7 @@ Function FadeOut()
Debug.SendAnimationEvent(_00E_MC_CaliaREF, "returnToDefault")
PlayerREF.RemoveSpell(_00E_Game_abSlowTime)
_00E_QuestFunctions.PlayerAIWalk()
_00E_Func_AIWalk.PlayerAIWalk()
_00E_MC_CaliaREF.MoveTo(CQC05_SC02_CaliaLedgeRef)
PlayerREF.MoveTo(CQC05_SC02_PlayerWakeUp)
@ -225,7 +223,7 @@ Function FadeBack()
AudioCategoryMAG.SetVolume(1.0)
AudioCategorySFX.SetVolume(1.0)
FadeToBlackBackIMOD.ApplyCrossFade()
_00E_QuestFunctions.PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
Game.EnablePlayerControls()
Levelsystem.UnlockCamera()
_00E_QuestFunctions.RefreshFace()
@ -251,7 +249,7 @@ EndFunction
Function CompleteAndGiveEP()
_00E_QuestFunctions.PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
_00E_SC_KurmaiREF.UnEquipItem(Torch01)
CQC05_SC02_DoorREF.SetOpen(True)
CQC05_SC02_DoorREF.BlockActivation(False)

@ -1,7 +1,5 @@
Scriptname _00E_CQC06_Functions extends Quest
Import _00E_QuestFunctions
;=====================================================================================
; EVENTS
;=====================================================================================
@ -93,7 +91,7 @@ Function FadeOutAndPort()
CQC06_SC01_MusicMarker.Disable()
CQC06_SC01_EnableMarker.Enable()
PlayerREF.UnequipAll()
PlayerAIWalk()
_00E_Func_AIWalk.PlayerAIWalk()
Debug.SendAnimationEvent(_00E_MC_CaliaREF, "returnToDefault")
Debug.SendAnimationEvent(PlayerREF, "returnToDefault")
@ -103,7 +101,7 @@ EndFunction
Function FadeBack()
PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
FadeToBlackBackIMOD.ApplyCrossFade()
CQC06_SC01_BedREF2.Activate(PlayerREF, true)
_00E_MC_CaliaREF.SetAnimationVariableBool("bIsSynced", false)

@ -97,7 +97,7 @@ Function FadeOut()
FadeToBlackHoldIMOD.ApplyCrossFade(1)
Utility.Wait(1)
PlayerREF.RemoveSpell(_00E_Game_abSlowTime)
_00E_QuestFunctions.PlayerAIWalk()
_00E_Func_AIWalk.PlayerAIWalk()
_00E_MC_JesparREF.SetUnconscious(False)
PlayerREF.SetUnconscious(False)
Debug.ToggleMenus()
@ -127,7 +127,7 @@ Function FadeBack()
AudioCategoryMAG.Unmute()
AudioCategorySFX.Unmute()
FadeToBlackBackIMOD.ApplyCrossFade()
_00E_QuestFunctions.PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
Game.SetPlayerAIDriven(False)
Game.EnablePlayerControls()
_00E_QuestFunctions.RefreshFace()

@ -42,7 +42,7 @@ Function FadeOut()
PlayerREF.UnequipAll()
_00E_MC_JesparREF.MoveTo(CQJ06_SC01_BedREF)
PlayerREF.MoveTo(CQJ06_SC01_Chair)
_00E_QuestFunctions.PlayerAIWalk()
_00E_Func_AIWalk.PlayerAIWalk()
CloseDoor()
Game.ForceThirdPerson()
SetStage(25)
@ -64,7 +64,7 @@ Function FadeBackCleanUp()
CQC06_SC01_EnableMarker.Enable()
CQC06_SC01_MusicMarker.Disable()
Utility.Wait(2)
_00E_QuestFunctions.PlayerAiWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
Game.EnablePlayerControls()
EndFunction

@ -332,7 +332,7 @@ Function OpenPortal()
Wait(2.90)
FS_NQR05_FatherPortal_Outside_REF.PlayGamebryoAnimation("AnimIdle02")
; initiating player AI walk without locking vision controls
_00E_QuestFunctions.PlayerAIWalk(false)
_00E_Func_AIWalk.PlayerAIWalk(false)
SetStage(125)
EndFunction
@ -426,7 +426,7 @@ Function StartSC08()
; Called in stage 135
; give controls back to the player, remove father copy
_00E_QuestFunctions.PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
_00E_FS_NQR05_FatherArrival.Remove()
_00E_SilenceTransitionLowPriority.Add()
SetObjectiveCompleted(60)
@ -1744,7 +1744,7 @@ Function KillTharael()
Wait(5)
SetStage(370)
FS_NQR05_SC21_CollisionREF.Enable()
_00E_Questfunctions.PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
Endfunction

@ -1,6 +1,5 @@
Scriptname _00E_MQ05_Functions extends Quest Conditional
Import _00E_QuestFunctions
Import Utility
;=====================================================================================
@ -163,13 +162,13 @@ EndFunction
Function SetCompanions(bool bCompanion)
If bCompanion == true
SetNPCAsCompanion(_00E_MC_CaliaREF, true, 300, 200, 100)
SetNPCAsCompanion(_00E_MQ05_DunwarREF, true, 250, 200, 100)
SetNPCAsCompanion(_00E_MC_JorrekRef, true, 350, 300, 100)
_00E_Func_SetNPCAsCompanion.SetNPCAsCompanion(_00E_MC_CaliaREF, true, 300, 200, 100)
_00E_Func_SetNPCAsCompanion.SetNPCAsCompanion(_00E_MQ05_DunwarREF, true, 250, 200, 100)
_00E_Func_SetNPCAsCompanion.SetNPCAsCompanion(_00E_MC_JorrekRef, true, 350, 300, 100)
Else
SetNPCAsCompanion(_00E_MC_CaliaREF, false)
SetNPCAsCompanion(_00E_MQ05_DunwarREF, false)
SetNPCAsCompanion(_00E_MC_JorrekRef, false)
_00E_Func_SetNPCAsCompanion.SetNPCAsCompanion(_00E_MC_CaliaREF, false)
_00E_Func_SetNPCAsCompanion.SetNPCAsCompanion(_00E_MQ05_DunwarREF, false)
_00E_Func_SetNPCAsCompanion.SetNPCAsCompanion(_00E_MC_JorrekRef, false)
EndIf
EndFunction
@ -238,7 +237,7 @@ EndFunction
Function StartFinalScene()
Game.ForceThirdPerson()
PlayerAIWalk(True)
_00E_Func_AIWalk.PlayerAIWalk(True)
; Kill all the ghosts, to avoid confusing Aixon's AI.
int iIndex = _00E_MQ05_GhostsList.GetSize()

@ -65,7 +65,7 @@ Function SetUp()
MQ06_SiriusREF.GetActorBase().SetName("")
If MQ06_SC1_PlayerBed.GetParentCell() == SuntempleKuratorium
PlayerAIWalk(True)
_00E_Func_AIWalk.PlayerAIWalk(True)
EndIf
Wait(0.2)
@ -279,7 +279,7 @@ Function SetUpReal()
MQ12c_SC01_FailsaveREF.Enable()
PlayerREF.MoveTo(MQ06_SC02_PlayerBed)
PlayerAIWalk(True)
_00E_Func_AIWalk.PlayerAIWalk(True)
Game.ForceThirdPerson()
MQ06_SC2_PlayerWakesUp.ForceStart()
@ -347,7 +347,7 @@ Function FadeBackReal()
Wait(2)
MQ06_SC02_PlayerBed.Activate(PlayerREF, True)
Wait(3)
PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
_00E_Music_Special_Zyklus_Loop.Remove()
Levelsystem.RemoveSilence()
DeactivateBeds()

@ -374,7 +374,7 @@ EndFunction
Function PrepareOstianTalk()
_00E_QuestFunctions.PlayerAIWalk()
_00E_Func_AIWalk.PlayerAIWalk()
MQ09a_SC08_PlayerBenchMarker = Game.GetForm(0x00150B74) as ObjectReference
PlayerREF.MoveTo(MQ09a_SC08_PlayerBenchMarker)

@ -72,7 +72,7 @@ Function InitQuest()
MQ09StaticDoor.disable()
MQ08_SoultrainDoorREF.SetOpen(True)
_00E_QuestFunctions.PlayerAIWalk(True)
_00E_Func_AIWalk.PlayerAIWalk(True)
Game.ForceThirdPerson()
If MQ09_D1_SceneIsle == None
@ -113,7 +113,7 @@ Function PlayerStandUp()
FadeToBlackHoldIMOD.Remove()
_00E_WakeUp.ApplyCrossFade(afFadeDuration = 0.5)
MQ09_SC01_PlayerBedREF.Activate(PlayerREF, true)
_00E_QuestFunctions.PlayerAiWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
EndFunction
@ -261,7 +261,7 @@ Function GameFadeOut()
MQ09_MC_TealorREF.MoveTo(MQ09_SC06_TealorTurnAround)
_00E_SC_AlmaREF.SetOutfit(_00E_NehrimeseOutfit01NoHelmetNoShield)
PlayerRef.MoveTo(MQ09_SC04_ChairMarkerPlayer)
_00E_QuestFunctions.PlayerAIWalk(True)
_00E_Func_AIWalk.PlayerAIWalk(True)
Wait(1)
MQ09_D4_TaranorScene.ForceStart()

@ -17,7 +17,7 @@ Function SetUpScene()
fPlayerScale = _00E_SetActorScale.Change(PlayerREF, 0.85)
_00E_TimeControl.SkipTimeToHour(18.4)
Game.ForceFirstPerson()
_00E_QuestFunctions.PlayerAIWalkStop() ; workaround for the "uncompiled scripts bug" of patch 1.5.8.0
_00E_Func_AIWalk.PlayerAIWalkStop() ; workaround for the "uncompiled scripts bug" of patch 1.5.8.0
;Game.EnablePlayerControls()
Game.DisablePlayerControls(false, true, true, false, true, true, true, true, 0)
Game.RequestAutoSave()

@ -216,7 +216,7 @@ Function StartSC02()
CQJ04.SetStage(40)
EndIf
_00E_QuestFunctions.PlayerAIWalk()
_00E_Func_AIWalk.PlayerAIWalk()
Game.ForceThirdPerson()
MQ12c_SC02_DreamGoToSleep.ForceStart()
@ -250,7 +250,7 @@ Function StartSC03()
_00E_SilenceTransitionLowPriority.Remove()
Levelsystem.RemoveSilence()
_00E_Music_Special_Dreams.Add()
_00E_QuestFunctions.PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
Game.ShowFirstPersonGeometry(False)
Game.RequestAutoSave()
fPlayerScale = _00E_SetActorScale.Change(PlayerREF, 0.85)
@ -303,7 +303,7 @@ Function StartSC04()
_00E_MC_JesparREF.SetOutfit(_00E_MC_JesparOutfit)
_00E_Music_Special_Dreams.Remove()
_00E_SilenceTransitionLowPriority.Add()
_00E_QuestFunctions.PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
Game.ForceThirdPerson()
MQ12c_SC04_DoorREF.SetOpen(true)
PlayerREF.MoveTo(MQ12c_SC04_CompanionRunREF)
@ -323,7 +323,7 @@ EndFunction
Function FadeBack()
Game.SetPlayerAIDriven(False)
_00E_QuestFunctions.PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
FadeToBlackBackLongImod.ApplyCrossFade(afFadeDuration = 1.0)
EndFunction

@ -1,6 +1,5 @@
Scriptname _00E_MQ13c_Functions extends Quest Conditional
Import _00E_QuestFunctions
Import Utility
Import Game
@ -94,7 +93,7 @@ Function NexusElevatorStop()
akCompanionRomance.MoveTo(MQ13c_SC01_CaliaTranslateToMarker)
EndIf
PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
EndFunction
@ -654,7 +653,7 @@ EndFunction
Function PlayerEnterAIWalk()
Game.ForceFirstPerson()
_00E_QuestFunctions.PlayerAIWalk(True)
_00E_Func_AIWalk.PlayerAIWalk(True)
PlayerCapsuleChair.Activate(PlayerREF, true)
EndFunction
@ -807,7 +806,7 @@ Function PlayerWakeUp()
_00E_WakeUp.ApplyCrossFade()
PlayerREF.PlayIdle(Idle_1stPersonWoozyGetUpFromBed)
Wait(3)
PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
Game.EnablePlayerControls()
EndFunction

@ -470,7 +470,7 @@ EndFunction
Function WakeUp()
_00E_QuestFunctions.PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
GetUp()
FadeToBlackHoldImod.Remove()
_00E_MQ02_WakeUp.ApplyCrossFade()

@ -1,6 +1,5 @@
Scriptname _00E_MQ17_Functions extends Quest Conditional
Import _00E_QuestFunctions
Import Utility
;=====================================================================================
@ -239,7 +238,7 @@ Function TrapPlayer()
PlayerREF.SheatheWeapon()
EndIf
PlayerAIWalk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
Game.ForceThirdPerson()
Game.DisablePlayerControls(True, True, True, True, True, True, True)
MQ17_SC06_BlackGuardianTriesToTrapPlayer.ForceStart()
@ -340,7 +339,7 @@ Function ExplodeButton()
MQ17_SC06_CameraREF.Disable()
Game.EnablePlayerControls()
Levelsystem.UnlockCamera()
PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
Debug.SendAnimationEvent(PlayerREF, "IdleForceDefaultState")
EndFunction
@ -565,7 +564,7 @@ Function EndKiss()
AudioCategoryMAG.SetVolume(1.0)
AudioCategorySFX.SetVolume(1.0)
PlayerREF.RemoveSpell(_00E_Game_abSlowTime)
_00E_QuestFunctions.PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
akCompanion.SetUnconscious(False)
PlayerREF.SetUnconscious(False)
Debug.ToggleMenus()

@ -258,7 +258,7 @@ EndFunction
Function OpenDoorAndStartMusic()
_00E_QuestFunctions.PlayerAIWalk(True)
_00E_Func_AIWalk.PlayerAIWalk(True)
MQP02_SC4_VeiledWomanFXBox.Enable()
EffectShader _00E_FS_NQ02_VeiledWomanAppearFXS = Game.GetFormFromFile(0x0102ED3C, "Enderal - Forgotten Stories.esm") as EffectShader

@ -33,7 +33,7 @@ Function MovePlayerToStart()
Debug.SendAnimationEvent(PlayerREF, "returnToDefault")
_00E_SilenceAbruptHighPriority.Add()
_00E_QuestFunctions.PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
FadeToBlackHoldIMOD.Apply()
ForceFirstPerson()
DisablePlayerControls(false, true, true, false, true, false, false, true)

@ -170,7 +170,7 @@ Function LevitateMeldor()
MeldorRef.DisableNoWait()
SetStage(240)
_00E_QuestFunctions.PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
EndFunction

@ -2,6 +2,7 @@ Scriptname _00E_NQ_G_07_Functions extends Quest Conditional
Import _00E_QuestFunctions
Import Utility
;=====================================================================================
; EVENTS
;=====================================================================================
@ -468,7 +469,7 @@ Function DijaamLeave()
FadeToBlackHoldIMOD.ApplyCrossFade(1)
Wait(1)
PlayerAIWalk()
_00E_Func_AIWalk.PlayerAIWalk()
PlayerREF.UnequipAll()
PlayerREF.SetOutfit(MinerClothesOutfit02)
PlayerREF.MoveTo(_00E_NQ_G_07Dijaam_PlayerSleepMarker)
@ -573,7 +574,7 @@ EndFunction
Function FadeInLying()
PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
_00E_TimeControl.SkipTimeToHour(5)

@ -97,26 +97,6 @@ EndFunction
; GLOBAL FUNCTIONS
;=====================================================================================
function PlayerAIWalkStop() Global
Game.ShowFirstPersonGeometry(True)
Game.SetPlayerAIDriven(False)
Game.EnablePlayerControls()
endFunction
function PlayerAIWalk(bool abLockedSight = True) Global
Game.ShowFirstPersonGeometry(False)
Game.SetPlayerAIDriven(True)
If abLockedSight == True
Game.DisablePlayerControls(true, true, true, true, true, true, true, true)
ElseIf abLockedSight == False
Game.DisablePlayerControls(true, true, true, False, true, true, true, true)
EndIf
endFunction
; 2.1: Do not use this function, call EnderalFunctions.DisableDialogueQuitting() instead
Function DisableDialogueQuitting() Global
{OBSOLETE. Disables the TAB Key during dialogue.}

@ -87,7 +87,7 @@ _00E_CQJ05_Functions kmyQuest = __temp as _00E_CQJ05_Functions
;END AUTOCAST
;BEGIN CODE
Game.SetPlayerAiDriven(True)
_00E_QuestFUnctions.PlayerAiWalk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
kmyQuest.StartSC01()
;END CODE
EndFunction

@ -21,7 +21,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_1
Function Fragment_1()
;BEGIN CODE
_00E_QuestFunctions.PlayerAiWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
CQC05.ReEnableControlsIfNoRomance()
;END CODE
EndFunction

@ -13,7 +13,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_2
Function Fragment_2()
;BEGIN CODE
_00E_QUestFunctions.PlayerAIWAlk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
;END CODE
EndFunction
;END FRAGMENT

@ -5,7 +5,7 @@ Scriptname SF_CQJ05_SC01_WakeUpSC_0013FA96 Extends Scene Hidden
;BEGIN FRAGMENT Fragment_8
Function Fragment_8()
;BEGIN CODE
;_00E_QuestFunctions.PlayerAiWalkStop()
;_00E_Func_AIWalk.PlayerAIWalkStop()
CQJ05.GetIntoPosition()
;END CODE
EndFunction

@ -29,7 +29,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_28
Function Fragment_28()
;BEGIN CODE
;_00E_QuestFunctions.PlayerAiWalk(true)
;_00E_Func_AIWalk.PlayerAIWalk(true)
;END CODE
EndFunction
;END FRAGMENT

@ -5,7 +5,7 @@ Scriptname SF_FS_NQR05_SC19_FatherStory_0102A070 Extends Scene Hidden
;BEGIN FRAGMENT Fragment_27
Function Fragment_27()
;BEGIN CODE
_00E_QuestFunctions.PlayerAiWalk(true)
_00E_Func_AIWalk.PlayerAIWalk(true)
;END CODE
EndFunction
;END FRAGMENT
@ -13,7 +13,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_25
Function Fragment_25()
;BEGIN CODE
_00E_QuestFunctions.PlayerAiWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
Game.DisablePlayerControls()
;END CODE
EndFunction
@ -38,7 +38,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_26
Function Fragment_26()
;BEGIN CODE
_00E_QUestFunctions.PlayerAIWAlk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
;END CODE
EndFunction
;END FRAGMENT

@ -29,7 +29,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_20
Function Fragment_20()
;BEGIN CODE
_00E_Questfunctions.PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
;END CODE
EndFunction
;END FRAGMENT
@ -37,7 +37,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_18
Function Fragment_18()
;BEGIN CODE
_00E_QUestFunctions.PlayerAIWAlk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
;END CODE
EndFunction
;END FRAGMENT

@ -13,7 +13,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_0
Function Fragment_0()
;BEGIN CODE
_00E_QuestFunctions.PlayerAiWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
LishariDialogue.FadeBack()
;END CODE
EndFunction
@ -22,7 +22,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_4
Function Fragment_4()
;BEGIN CODE
_00E_QuestFunctions.PlayerAIWalk()
_00E_Func_AIWalk.PlayerAIWalk()
;END CODE
EndFunction
;END FRAGMENT

@ -5,7 +5,7 @@ Scriptname SF_MQ06_SC2_PlayerWakesUpDUP_000D8E9E Extends Scene Hidden
;BEGIN FRAGMENT Fragment_4
Function Fragment_4()
;BEGIN CODE
_00E_QuestFunctions.PlayerAiWalk(true)
_00E_Func_AIWalk.PlayerAIWalk(true)
;END CODE
EndFunction
;END FRAGMENT

@ -22,7 +22,7 @@ EndFunction
Function Fragment_7()
;BEGIN CODE
MQ06.StartSilence()
_00E_QuestFunctions.PlayerAIWalk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
Game.ForceThirdPerson()
;END CODE
EndFunction
@ -55,7 +55,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_9
Function Fragment_9()
;BEGIN CODE
_00E_QuestFunctions.PlayerAiWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
;END CODE
EndFunction
;END FRAGMENT

@ -31,7 +31,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_36
Function Fragment_36()
;BEGIN CODE
_00E_QUestFunctions.PlayerAIWAlk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
;END CODE
EndFunction
;END FRAGMENT
@ -55,7 +55,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_37
Function Fragment_37()
;BEGIN CODE
_00E_QuestFunctions.PlayerAiWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
;END CODE
EndFunction
;END FRAGMENT

@ -29,7 +29,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_11
Function Fragment_11()
;BEGIN CODE
_00E_QuestFunctions.PlayerAIWalk()
_00E_Func_AIWalk.PlayerAIWalk()
;END CODE
EndFunction
;END FRAGMENT
@ -38,7 +38,7 @@ EndFunction
Function Fragment_10()
;BEGIN CODE
MQ09a.FadeBack()
_00E_QuestFunctions.PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
;END CODE
EndFunction
;END FRAGMENT

@ -49,7 +49,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_4
Function Fragment_4()
;BEGIN CODE
_00E_QuestFunctions.PlayerAiWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
_FS_Phasmalist_ControlQuest.UnsummonApparitionIfExists()
;END CODE
EndFunction

@ -13,7 +13,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_4
Function Fragment_4()
;BEGIN CODE
_00E_QuestFunctions.PlayerAiWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
Game.DisablePlayerControls(true, true, true, false, true, true, true)
GetOwningQuest().SetStage(49)
;END CODE

@ -40,7 +40,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_0
Function Fragment_0()
;BEGIN CODE
_00E_QUestFunctions.PlayerAIWAlk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
;END CODE
EndFunction
;END FRAGMENT

@ -13,7 +13,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_3
Function Fragment_3()
;BEGIN CODE
_00E_QUestFunctions.PlayerAIWAlk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
MQ12c.SetTimescale()
;END CODE
EndFunction

@ -5,7 +5,7 @@ Scriptname SF_MQ13c_SC01_MoveElevatorUp_0013B5E5 Extends Scene Hidden
;BEGIN FRAGMENT Fragment_5
Function Fragment_5()
;BEGIN CODE
_00E_QUestFunctions.PlayerAIWAlk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
;END CODE
EndFunction
;END FRAGMENT

@ -13,7 +13,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_24
Function Fragment_24()
;BEGIN CODE
_00E_QUestFunctions.PlayerAIWAlk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
;END CODE
EndFunction
;END FRAGMENT

@ -30,7 +30,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_11
Function Fragment_11()
;BEGIN CODE
_00E_QUestFunctions.PlayerAIWAlk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
;END CODE
EndFunction
;END FRAGMENT

@ -29,7 +29,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_9
Function Fragment_9()
;BEGIN CODE
_00E_QUestFunctions.PlayerAIWAlk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
Game.ForceFirstPerson()
;END CODE
EndFunction

@ -38,7 +38,7 @@ EndFunction
Function Fragment_2()
;BEGIN CODE
MQ18a.PortCompanion(MQ18a.MQ18a_Companion_001)
_00E_QuestFunctions.PlayerAiWalk(True)
_00E_Func_AIWalk.PlayerAIWalk(True)
;END CODE
EndFunction
;END FRAGMENT
@ -46,7 +46,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_10
Function Fragment_10()
;BEGIN CODE
_00E_QuestFunctions.PlayerAiWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
Game.DisablePlayerControls(false, true, true, false, true, false, false)
;END CODE
EndFunction

@ -29,7 +29,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_4
Function Fragment_4()
;BEGIN CODE
_00E_QuestFunctions.PlayerAIWalk()
_00E_Func_AIWalk.PlayerAIWalk()
MQ18a.SlowSpeed()
MQ18a.StartMusic()
;END CODE
@ -39,7 +39,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_8
Function Fragment_8()
;BEGIN CODE
_00E_QuestFunctions.PlayerAiWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
;END CODE
EndFunction
;END FRAGMENT

@ -29,7 +29,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_0
Function Fragment_0()
;BEGIN CODE
_00E_QUestFunctions.PlayerAIWAlk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
MQP02.SetObjectiveCompleted(10)
;END CODE
EndFunction

@ -5,7 +5,7 @@ Scriptname SF_NQ15_SC5_001276FB Extends Scene Hidden
;BEGIN FRAGMENT Fragment_14
Function Fragment_14()
;BEGIN CODE
_00E_QUestFunctions.PlayerAIWAlk(False)
_00E_Func_AIWalk.PlayerAIWalk(False)
;END CODE
EndFunction
;END FRAGMENT
@ -13,7 +13,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_10
Function Fragment_10()
;BEGIN CODE
_00E_QuestFunctions.PlayerAiWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
;END CODE
EndFunction
;END FRAGMENT

@ -5,7 +5,7 @@ Scriptname SF_NQ_G_04_SC03_DijaamEncoun_00139DC2 Extends Scene Hidden
;BEGIN FRAGMENT Fragment_5
Function Fragment_5()
;BEGIN CODE
_00E_QuestFunctions.PlayerAiWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
;END CODE
EndFunction
;END FRAGMENT
@ -13,7 +13,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_8
Function Fragment_8()
;BEGIN CODE
_00E_QuestFunctions.PlayerAIWalk()
_00E_Func_AIWalk.PlayerAIWalk()
NQ_G_04.StripPlayer()
;END CODE
EndFunction

@ -5,7 +5,7 @@ Scriptname SF_NQ_G_06_SC02_DijaamTalkAt_0013CFC1 Extends Scene Hidden
;BEGIN FRAGMENT Fragment_0
Function Fragment_0()
;BEGIN CODE
_00E_QuestFunctions.PlayerAIWalk()
_00E_Func_AIWalk.PlayerAIWalk()
;END CODE
EndFunction
;END FRAGMENT
@ -13,7 +13,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_1
Function Fragment_1()
;BEGIN CODE
_00E_QuestFunctions.PlayerAIWalkStop()
_00E_Func_AIWalk.PlayerAIWalkStop()
GetOwningQuest().SetStage(20)
;END CODE
EndFunction

@ -70,7 +70,7 @@ EndFunction
;BEGIN FRAGMENT Fragment_11
Function Fragment_11()
;BEGIN CODE
_00E_QuestFunctions.PlayerAIWalk()
_00E_Func_AIWalk.PlayerAIWalk()
Debug.ToggleMenus()
;END CODE
EndFunction

Loading…
Cancel
Save