2024-01-09 22:00:18 +00:00
|
|
|
Scriptname _00E_CameraControl Hidden
|
|
|
|
|
|
|
|
Function LockVanityCamera() Global
|
|
|
|
|
2024-02-08 15:51:58 +00:00
|
|
|
Actor PlayerREF = Game.GetForm(0x14) as Actor
|
|
|
|
float fMinDist = 150.0
|
|
|
|
|
|
|
|
if SKSE.GetVersion()
|
|
|
|
float fCameraMaxDistance = Utility.GetIniFloat("fVanityModeMaxDist:Camera")
|
2024-02-18 21:21:38 +00:00
|
|
|
PlayerREF.SetActorValue("Variable04", fCameraMaxDistance)
|
2024-02-08 15:51:58 +00:00
|
|
|
fMinDist = Utility.GetIniFloat("fVanityModeMinDist:Camera")
|
|
|
|
else
|
2024-02-18 21:21:38 +00:00
|
|
|
PlayerREF.SetActorValue("Variable04", 600.0)
|
2024-02-08 15:51:58 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
Utility.SetINIFloat("fVanityModeMaxDist:Camera", fMinDist)
|
2024-01-09 22:00:18 +00:00
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
Function UnlockVanityCamera() Global
|
|
|
|
|
2024-02-08 15:51:58 +00:00
|
|
|
Actor PlayerREF = Game.GetForm(0x14) as Actor
|
2024-02-18 21:21:38 +00:00
|
|
|
float fCameraMaxDistance = PlayerREF.GetActorValue("Variable04")
|
2024-01-09 22:00:18 +00:00
|
|
|
|
|
|
|
if fCameraMaxDistance <= 0
|
2024-02-08 15:51:58 +00:00
|
|
|
fCameraMaxDistance = 600.0
|
2024-01-09 22:00:18 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
Utility.SetINIFloat("fVanityModeMaxDist:Camera", fCameraMaxDistance)
|
2024-02-18 21:21:38 +00:00
|
|
|
PlayerREF.SetActorValue("Variable04", 0)
|
2024-01-09 22:00:18 +00:00
|
|
|
|
|
|
|
EndFunction
|