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()
|
if SKSE.GetVersion()
|
||||||
float fCameraMaxDistance = Utility.GetIniFloat("fVanityModeMaxDist:Camera")
|
float fCameraMaxDistance = Utility.GetIniFloat("fVanityModeMaxDist:Camera")
|
||||||
PlayerREF.SetActorValue("Variable08", fCameraMaxDistance)
|
PlayerREF.SetActorValue("Variable04", fCameraMaxDistance)
|
||||||
fMinDist = Utility.GetIniFloat("fVanityModeMinDist:Camera")
|
fMinDist = Utility.GetIniFloat("fVanityModeMinDist:Camera")
|
||||||
else
|
else
|
||||||
PlayerREF.SetActorValue("Variable08", 600.0)
|
PlayerREF.SetActorValue("Variable04", 600.0)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
Utility.SetINIFloat("fVanityModeMaxDist:Camera", fMinDist)
|
Utility.SetINIFloat("fVanityModeMaxDist:Camera", fMinDist)
|
||||||
@ -20,13 +20,13 @@ EndFunction
|
|||||||
Function UnlockVanityCamera() Global
|
Function UnlockVanityCamera() Global
|
||||||
|
|
||||||
Actor PlayerREF = Game.GetForm(0x14) as Actor
|
Actor PlayerREF = Game.GetForm(0x14) as Actor
|
||||||
float fCameraMaxDistance = PlayerREF.GetActorValue("Variable08")
|
float fCameraMaxDistance = PlayerREF.GetActorValue("Variable04")
|
||||||
|
|
||||||
if fCameraMaxDistance <= 0
|
if fCameraMaxDistance <= 0
|
||||||
fCameraMaxDistance = 600.0
|
fCameraMaxDistance = 600.0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
Utility.SetINIFloat("fVanityModeMaxDist:Camera", fCameraMaxDistance)
|
Utility.SetINIFloat("fVanityModeMaxDist:Camera", fCameraMaxDistance)
|
||||||
PlayerREF.SetActorValue("Variable08", 0)
|
PlayerREF.SetActorValue("Variable04", 0)
|
||||||
|
|
||||||
EndFunction
|
EndFunction
|
||||||
|
@ -2,8 +2,8 @@ Scriptname _00E_AmbrosiaEffect extends activemagiceffect
|
|||||||
|
|
||||||
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
||||||
|
|
||||||
float fMagnitude = - akTarget.GetActorValue("Mood")
|
float fMagnitude = - akTarget.GetActorValue("Variable08")
|
||||||
akTarget.SetActorValue("Mood", 0)
|
akTarget.RestoreActorValue("Variable08", fMagnitude)
|
||||||
|
|
||||||
if akTarget != Game.GetForm(0x14)
|
if akTarget != Game.GetForm(0x14)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user