diff options
author | F1F7Y <that.fifty@gmail.com> | 2021-12-30 00:12:09 +0100 |
---|---|---|
committer | F1F7Y <that.fifty@gmail.com> | 2021-12-30 00:12:09 +0100 |
commit | e888cfd48b7184821fb4f9eac84cfa952e55a6f8 (patch) | |
tree | 0ecab7aa299a9c2ff7225e465151588b4904698a /Northstar.Client/mod/scripts/vscripts/sh_menu_models.gnut | |
parent | e8f67265e817bdca167fbb9970327588501be580 (diff) | |
download | NorthstarMods-e888cfd48b7184821fb4f9eac84cfa952e55a6f8.tar.gz NorthstarMods-e888cfd48b7184821fb4f9eac84cfa952e55a6f8.zip |
Commit Better.serverbrowser
Diffstat (limited to 'Northstar.Client/mod/scripts/vscripts/sh_menu_models.gnut')
-rw-r--r-- | Northstar.Client/mod/scripts/vscripts/sh_menu_models.gnut | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/sh_menu_models.gnut b/Northstar.Client/mod/scripts/vscripts/sh_menu_models.gnut index 58850e6af..cd663a06b 100644 --- a/Northstar.Client/mod/scripts/vscripts/sh_menu_models.gnut +++ b/Northstar.Client/mod/scripts/vscripts/sh_menu_models.gnut @@ -2522,7 +2522,7 @@ while ( !clGlobal.initializedMenuModels ) WaitFrame() - + // setting menu camera while our viewentity isn't player will crash // unfortunately no way to close menu if we get our viewentity set while menu is open atm while ( GetViewEntity().GetClassName() == "class C_BaseEntity" ) @@ -2896,11 +2896,13 @@ { float screenScaleXModifier = 1920.0 / GetScreenSize()[0] // 1920 is base screen width float mouseXRotateDelta = deltaX * screenScaleXModifier * MOUSE_ROTATE_MULTIPLIER - //printt( "deltaX:", deltaX, "screenScaleModifier:", screenScaleModifier, "mouseRotateDelta:", mouseRotateDelta ) + //printt( "deltaX:", deltaX, "deltaY:", deltaY ) float screenScaleYModifier = 1080.0 / GetScreenSize()[1] // 1920 is base screen width float mouseYRotationDelta = deltaY * screenScaleYModifier * MOUSE_ROTATE_MULTIPLIER + UpdateMouseDeltaBuffer( deltaX, deltaY ) + RunMenuClientFunction( "UpdateMouseRotateDelta", mouseXRotateDelta, mouseYRotationDelta ) } #endif // UI |