Fixed Ambrosia

This commit is contained in:
Eddoursul 2024-02-18 22:21:38 +01:00
parent eab2a64dbd
commit c9b341f304
6 changed files with 6 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -7,10 +7,10 @@ Function LockVanityCamera() Global
if SKSE.GetVersion()
float fCameraMaxDistance = Utility.GetIniFloat("fVanityModeMaxDist:Camera")
PlayerREF.SetActorValue("Variable08", fCameraMaxDistance)
PlayerREF.SetActorValue("Variable04", fCameraMaxDistance)
fMinDist = Utility.GetIniFloat("fVanityModeMinDist:Camera")
else
PlayerREF.SetActorValue("Variable08", 600.0)
PlayerREF.SetActorValue("Variable04", 600.0)
endif
Utility.SetINIFloat("fVanityModeMaxDist:Camera", fMinDist)
@ -20,13 +20,13 @@ EndFunction
Function UnlockVanityCamera() Global
Actor PlayerREF = Game.GetForm(0x14) as Actor
float fCameraMaxDistance = PlayerREF.GetActorValue("Variable08")
float fCameraMaxDistance = PlayerREF.GetActorValue("Variable04")
if fCameraMaxDistance <= 0
fCameraMaxDistance = 600.0
endif
Utility.SetINIFloat("fVanityModeMaxDist:Camera", fCameraMaxDistance)
PlayerREF.SetActorValue("Variable08", 0)
PlayerREF.SetActorValue("Variable04", 0)
EndFunction

View File

@ -2,8 +2,8 @@ Scriptname _00E_AmbrosiaEffect extends activemagiceffect
Event OnEffectStart(Actor akTarget, Actor akCaster)
float fMagnitude = - akTarget.GetActorValue("Mood")
akTarget.SetActorValue("Mood", 0)
float fMagnitude = - akTarget.GetActorValue("Variable08")
akTarget.RestoreActorValue("Variable08", fMagnitude)
if akTarget != Game.GetForm(0x14)
return