diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e40974322..4ea7f5a224 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -176,6 +176,7 @@ Bug #7943: Using "addSoulGem" and "dropSoulGem" commands to creatures works only with "Weapon & Shield" flagged ones Bug #7970: Difference of GetPCSleep (?) behavior between vanilla and OpenMW Bug #7980: Paralyzed NPCs' lips move + Bug #7997: Can toggle perspective when paralyzed Feature #1415: Infinite fall failsafe Feature #2566: Handle NAM9 records for manual cell references Feature #3537: Shader-based water ripples diff --git a/files/data/scripts/omw/camera/camera.lua b/files/data/scripts/omw/camera/camera.lua index f5848970dd..5cd04239f7 100644 --- a/files/data/scripts/omw/camera/camera.lua +++ b/files/data/scripts/omw/camera/camera.lua @@ -1,5 +1,6 @@ local camera = require('openmw.camera') local core = require('openmw.core') +local debug = require('openmw.debug') local input = require('openmw.input') local util = require('openmw.util') local self = require('openmw.self') @@ -207,7 +208,9 @@ local function onFrame(dt) primaryMode = mode end if mode ~= MODE.Static then - if not next(noModeControl) then + local paralysis = Actor.activeEffects(self):getEffect(core.magic.EFFECT_TYPE.Paralyze) + local paralyzed = not debug.isGodMode() and paralysis.magnitude > 0 + if not next(noModeControl) and not paralyzed then updatePOV(dt) updateVanity(dt) end