View Single Post
07/15/18, 08:42 PM   #4
SDPhantom
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 47
Originally Posted by Tonyleila View Post
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:
  1. local SceneWhitelist={
  2.     crownCrateKeyboard=true;
  3.     crownCrateGamepad=true;
  4. };
  5.  
  6. local function Hook() return not SceneWhitelist[SCENE_MANAGER.currentScene.name]; end
  7. local HookList={
  8.     "SetFrameLocalPlayerInGameCamera";
  9.     "SetFrameLocalPlayerLookAtDistanceFactor";
  10.     "SetFrameLocalPlayerTarget";
  11.     "SetFullscreenEffect";
  12. };
  13.  
  14. 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.

Last edited by SDPhantom : 07/15/18 at 10:42 PM.
  Reply With Quote