Make paralysis cancel camera mode changes (#7997)

esm4-texture
Alexei Kotov 7 months ago
parent ae7861abe4
commit 462818c304

@ -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

@ -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

Loading…
Cancel
Save