aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client/mod/scripts/vscripts/sh_menu_models.gnut
diff options
context:
space:
mode:
authorF1F7Y <that.fifty@gmail.com>2021-12-30 00:12:09 +0100
committerF1F7Y <that.fifty@gmail.com>2021-12-30 00:12:09 +0100
commite888cfd48b7184821fb4f9eac84cfa952e55a6f8 (patch)
tree0ecab7aa299a9c2ff7225e465151588b4904698a /Northstar.Client/mod/scripts/vscripts/sh_menu_models.gnut
parente8f67265e817bdca167fbb9970327588501be580 (diff)
downloadNorthstarMods-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.gnut6
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