Fixed Ambrosia
This commit is contained in:
parent
eab2a64dbd
commit
c9b341f304
Binary file not shown.
BIN
Skyrim.esm
BIN
Skyrim.esm
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user