Originally Posted by Tonyleila
Alternative is there any addon to:
Don't interrupt interactions / rotate game camera
|
I was testing this code, but I've had a few glitches where the character would randomly get stuck facing a single direction until the UI was reloaded. I'm probably missing another function, but so far, it's a somewhat rare occurrence.
Lua Code:
local SceneWhitelist={
crownCrateKeyboard=true;
crownCrateGamepad=true;
};
local function Hook() return not SceneWhitelist[SCENE_MANAGER.currentScene.name]; end
local HookList={
"SetFrameLocalPlayerInGameCamera";
"SetFrameLocalPlayerLookAtDistanceFactor";
"SetFrameLocalPlayerTarget";
"SetFullscreenEffect";
};
for _,funcname in ipairs(HookList) do ZO_PreHook(funcname,Hook); end
I added a whitelist for the crown crate UI since it completely breaks that when the game camera isn't in this mode.
Edit: Found more functions, added them to the hook. This code is experimental. I'll add another option later that removes the scene fragments causing this once I iron out the design.