4
Fork 0

Moved camera control from _00E_QuestFunctions to a dedicated script

Eddoursul 3 months ago
parent 1ac6830b27
commit 7e1e53f451
  1. BIN
      scripts/_00E_CameraControl.pex
  2. BIN
      scripts/_00e_cqc05_functions.pex
  3. BIN
      scripts/_00e_cqj05_functions.pex
  4. BIN
      scripts/_00e_mq17_functions.pex
  5. BIN
      scripts/_00e_nq_g_07_functions.pex
  6. BIN
      scripts/_00e_peaceweedplayeraliasscript.pex
  7. BIN
      scripts/_00e_questfunctions.pex
  8. 33
      source/scripts/_00E_CameraControl.psc
  9. 4
      source/scripts/_00e_cqc05_functions.psc
  10. 4
      source/scripts/_00e_cqj05_functions.psc
  11. 6
      source/scripts/_00e_mq17_functions.psc
  12. 4
      source/scripts/_00e_nq_g_07_functions.psc
  13. 5
      source/scripts/_00e_peaceweedplayeraliasscript.psc
  14. 16
      source/scripts/_00e_questfunctions.psc

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,33 @@
Scriptname _00E_CameraControl Hidden
function Lock() Global
float fCameraMinDistance = 155.0
Int SKSEVer = SKSE.GetVersion()
if SKSEVer > 0
float fCameraMaxDistance = Utility.GetINIFloat("fVanityModeMaxDist:Camera")
fCameraMinDistance = Utility.GetINIFloat("fVanityModeMinDist:Camera")
if fCameraMaxDistance as Int <= fCameraMinDistance as Int
fCameraMaxDistance = 600.0
endif
(Game.GetForm(0x14) as Actor).SetActorValue("RightMobilityCondition", fCameraMaxDistance)
endif
Utility.SetINIFloat("fVanityModeMaxDist:Camera", fCameraMinDistance)
endFunction
function Unlock() Global
float fCameraMaxDistance = (Game.GetForm(0x14) as Actor).GetActorValue("RightMobilityCondition")
if fCameraMaxDistance <= 0
fCameraMaxDistance = 600.0
endif
Utility.SetINIFloat("fVanityModeMaxDist:Camera", fCameraMaxDistance)
endFunction

@ -146,7 +146,7 @@ Function PlayKiss()
Debug.ToggleMenus()
AudioCategoryMAG.SetVolume(0.5)
AudioCategorySFX.SetVolume(0.5)
Levelsystem.LockCamera()
_00E_CameraControl.Lock()
Game.SetPlayerAIDriven(True)
Game.DisablePlayerControls(true, true, true, false, true, true, true, true)
Game.ForceThirdPerson()
@ -227,7 +227,7 @@ Function FadeBack()
FadeToBlackBackIMOD.ApplyCrossFade()
_00E_QuestFunctions.PlayerAIWalkStop()
Game.EnablePlayerControls()
Levelsystem.UnlockCamera()
_00E_CameraControl.Unlock()
_00E_QuestFunctions.RefreshFace()
_00E_MC_CaliaREF.UnequipAll()
Utility.Wait(0.1)

@ -27,7 +27,7 @@ Function StartSC01()
Game.DisablePlayerControls(false, false, true, false, false, false, false)
Levelsystem.LockCamera()
_00E_CameraControl.Lock()
PlayerREF.UnequipItem(PlayerREF.GetEquippedWeapon())
@ -113,7 +113,7 @@ Function FadeOut()
Levelsystem.SkipTimeToHour(4.0)
CQJ05_SC03_ShipDoorREF.SetOpen(False)
CQJ05_SC03_ShipDoorREF.BlockActivation(True)
Levelsystem.UnlockCamera()
_00E_CameraControl.Unlock()
_00E_QuestFunctions.RefreshFace()
EndFunction

@ -339,7 +339,7 @@ Function ExplodeButton()
Wait(1)
MQ17_SC06_CameraREF.Disable()
Game.EnablePlayerControls()
Levelsystem.UnlockCamera()
_00E_CameraControl.Unlock()
PlayerAIWalkStop()
Debug.SendAnimationEvent(PlayerREF, "IdleForceDefaultState")
@ -533,7 +533,7 @@ Function PlayKiss()
AudioCategorySFX.SetVolume(0.7)
Debug.ToggleMenus()
Debug.ToggleCollisions()
Levelsystem.LockCamera()
_00E_CameraControl.Lock()
Game.SetPlayerAIDriven(True)
Game.DisablePlayerControls(true, true, true, false, true, true, true, true)
Game.ForceThirdPerson()
@ -571,7 +571,7 @@ Function EndKiss()
Debug.ToggleMenus()
Debug.ToggleCollisions()
; GameHour.SetValue(13.0)
Levelsystem.UnlockCamera()
_00E_CameraControl.Unlock()
_00E_QuestFunctions.RefreshFace()
EndFunction

@ -497,7 +497,7 @@ Function PlayKiss()
PlayMusic()
AudioCategoryMAG.Mute()
AudioCategorySFX.Mute()
Levelsystem.LockCamera()
_00E_CameraControl.Lock()
Game.SetPlayerAIDriven(True)
Game.ForceThirdPerson()
Wait(0.5)
@ -579,7 +579,7 @@ Function FadeInLying()
AudioCategoryMAG.Unmute()
AudioCategorySFX.Unmute()
Levelsystem.UnlockCamera()
_00E_CameraControl.Unlock()
RefreshFace()
Game.EnablePlayerControls()
SetStage(145)

@ -23,7 +23,6 @@ Sound Property _00E_FS_DecreaseArcaneFeverM Auto
Message Property _00E_AlchAmbrosia_sArcaneFeverDecreased Auto
Actor Property PlayerRef Auto
_00E_QuestFunctions Property Levelsystem Auto
;=====================================================================================
@ -340,7 +339,7 @@ Function _AdjustCameraPositionToSitting()
bStoredCameraPositions = True
fStoredOverShoulderPosX = Utility.GetINIFloat("fOverShoulderPosX:Camera")
fStoredOverShoulderPosZ = Utility.GetINIFloat("fOverShoulderPosZ:Camera")
Levelsystem.LockCamera()
_00E_CameraControl.Lock()
EndIf
_SetCameraPosition(0.0, -70.0)
@ -349,7 +348,7 @@ EndFunction
Function _RestoreCameraPosition()
If bStoredCameraPositions
bStoredCameraPositions = False
Levelsystem.UnlockCamera()
_00E_CameraControl.Unlock()
_SetCameraPosition(fStoredOverShoulderPosX, fStoredOverShoulderPosZ)
EndIf
EndFunction

@ -88,22 +88,6 @@ Function ModSympathyNG(Actor akSympathyActor, int iSympathyMod, bool bIsFlirt =
EndFunction
;=====================================================================================
; CAMERA
;=====================================================================================
Function LockCamera()
fCameraMaxDistance = Utility.GetINIFloat("fVanityModeMaxDist:Camera")
Utility.SetINIFloat("fVanityModeMaxDist:Camera", Utility.GetIniFloat("fVanityModeMinDist:Camera"))
EndFunction
Function UnlockCamera()
Utility.SetINIFloat("fVanityModeMaxDist:Camera", fCameraMaxDistance)
EndFunction
;=====================================================================================
; GLOBAL FUNCTIONS

Loading…
Cancel
Save