From a3d00ceced1aeef9b923157f8b6e7a87d1249c9f Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Fri, 7 Feb 2020 17:52:34 +0000 Subject: [PATCH] Update zoom / z-offset --- A320-main.xml | 2 +- Nasal/Sim/zoom-views.nas | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/A320-main.xml b/A320-main.xml index 80e65a2a..57f80d0c 100644 --- a/A320-main.xml +++ b/A320-main.xml @@ -424,7 +424,7 @@ 80.0 - 30.0 + 10.0 300.0 diff --git a/Nasal/Sim/zoom-views.nas b/Nasal/Sim/zoom-views.nas index 19ed9859..75018598 100644 --- a/Nasal/Sim/zoom-views.nas +++ b/Nasal/Sim/zoom-views.nas @@ -6,24 +6,24 @@ var distance = 0; var min_dist = 0; var max_dist = 0; var canChangeZOffset = 0; -var decStep = -5; -var incStep = 5; +var decStep = -0.5; +var incStep = 0.5; var viewName = "XX"; var fovZoom = func(d) { viewName = getprop("sim/current-view/name"); - canChangeZOffset = getprop("sim/current-view/type") == "lookat" and viewName != "Tower View" and viewName != "Fly-By View" and viewName != "Chase View" and viewName != "Chase View Without Yaw" and viewName != "Walk View"; + canChangeZOffset = getprop("sim/current-view/type") == "lookat" and viewName != "Tower View" and viewName != "Tower View AGL" and viewName != "Fly-By View" and viewName != "Chase View" and viewName != "Chase View Without Yaw" and viewName != "Walk View"; - if (getprop("sim/current-view/z-offset-m") <= -50) { - decStep = -10; + if (getprop("sim/current-view/z-offset-m") <= -20) { + decStep = -2; } else { - decStep = -5; + decStep = -1; } - if (getprop("sim/current-view/z-offset-m") < -50) { # Not a typo, the conditions are different - incStep = 10; + if (getprop("sim/current-view/z-offset-m") < -20) { # Not a typo, the conditions are different + incStep = 2; } else { - incStep = 5; + incStep = 1; } if (d == -1) {