diff --git a/indra/newview/app_settings/settings_per_account.xml b/indra/newview/app_settings/settings_per_account.xml index 06040ba307..f8f86b28ab 100644 --- a/indra/newview/app_settings/settings_per_account.xml +++ b/indra/newview/app_settings/settings_per_account.xml @@ -900,7 +900,7 @@ UseLSLFlightAssist Comment - Use the client LSL bridge for flight boost - boost power: 0.0 (disabled), 1.0 (low), 3.0 (standard), 5.0 (high). + Use the client LSL bridge for flight boost - boost power: 0.0 (disabled), 5.0 (low), 10.0 (moderate), 15.0 (high). Persist 1 Type diff --git a/indra/newview/fs_resources/EBEDD1D2-A320-43f5-88CF-DD47BBCA5DFB.lsltxt b/indra/newview/fs_resources/EBEDD1D2-A320-43f5-88CF-DD47BBCA5DFB.lsltxt index f73410c085..f01f9f3e14 100644 --- a/indra/newview/fs_resources/EBEDD1D2-A320-43f5-88CF-DD47BBCA5DFB.lsltxt +++ b/indra/newview/fs_resources/EBEDD1D2-A320-43f5-88CF-DD47BBCA5DFB.lsltxt @@ -7,7 +7,7 @@ // // Bridge platform - string BRIDGE_VERSION = "2.21"; // This should match fslslbridge.cpp + string BRIDGE_VERSION = "2.22"; // This should match fslslbridge.cpp string gLatestURL; integer gViewerIsFirestorm; integer gTryHandshakeOnce = TRUE; @@ -26,10 +26,11 @@ integer gRelockIsUserMoving; // Flight assist - float FLIGHT_CHECK_NORMAL = 1.0; - float FLIGHT_CHECK_SLOW = 5.0; integer gIsFlyingNow; + float FLIGHT_CHECK_NORMAL = 0.2; + float FLIGHT_CHECK_SLOW = 3.0; float gFlightAssistPushForce; + float gFlightAssistMinAltitude = 10; // OpenCollar/LockMeister AO interface integer gAO_EnabledOC; @@ -254,7 +255,16 @@ default if (gFlightAssistPushForce > 0 && gIsFlyingNow) { - if (level & (CONTROL_FWD | CONTROL_BACK | CONTROL_LEFT | CONTROL_RIGHT | CONTROL_UP | CONTROL_DOWN)) + + vector currentPosition = llGetPos(); + float currentGroundLevel = llGround(ZERO_VECTOR); + float currentWaterLevel = llWater(ZERO_VECTOR); + if (currentGroundLevel < currentWaterLevel) + { + currentGroundLevel = currentWaterLevel; + } + + if (currentPosition.z > currentGroundLevel + gFlightAssistMinAltitude && level & (CONTROL_FWD | CONTROL_BACK | CONTROL_LEFT | CONTROL_RIGHT | CONTROL_UP | CONTROL_DOWN)) { vector pushingForce = ZERO_VECTOR; // Forward / back @@ -284,8 +294,9 @@ default { pushingForce += <0, 0, -gFlightAssistPushForce>; } - llApplyImpulse(pushingForce, 1); + llApplyImpulse(llGetMassMKS() * pushingForce, 1); } + } } @@ -506,10 +517,10 @@ default gFlightAssistPushForce = speed; if (gFlightAssistPushForce > 0) { - if (gFlightAssistPushForce > 5.0) + if (gFlightAssistPushForce > 15.0) { // No lightspeed please! - gFlightAssistPushForce = 5.0; + gFlightAssistPushForce = 15.0; } llSetTimerEvent(FLIGHT_CHECK_NORMAL); } diff --git a/indra/newview/fslslbridge.cpp b/indra/newview/fslslbridge.cpp index aa0e55134e..f058d04c51 100644 --- a/indra/newview/fslslbridge.cpp +++ b/indra/newview/fslslbridge.cpp @@ -52,7 +52,7 @@ static const std::string FS_BRIDGE_FOLDER = "#LSL Bridge"; static const std::string FS_BRIDGE_CONTAINER_FOLDER = "Landscaping"; static const U32 FS_BRIDGE_MAJOR_VERSION = 2; -static const U32 FS_BRIDGE_MINOR_VERSION = 21; +static const U32 FS_BRIDGE_MINOR_VERSION = 22; static const U32 FS_MAX_MINOR_VERSION = 99; static const std::string UPLOAD_SCRIPT_CURRENT = "EBEDD1D2-A320-43f5-88CF-DD47BBCA5DFB.lsltxt"; static const std::string FS_STATE_ATTRIBUTE = "state="; @@ -221,6 +221,7 @@ bool FSLSLBridge::lslToViewer(const std::string& message, const LLUUID& fromID, if (gSavedPerAccountSettings.getF32("UseLSLFlightAssist") > 0.f) { viewerToLSL(llformat("UseLSLFlightAssist|%.1f", gSavedPerAccountSettings.getF32("UseLSLFlightAssist")) ); + report_to_nearby_chat(LLTrans::getString("FlightAssistEnabled")); } // Inform user, if movelock was enabled at login diff --git a/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml b/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml index c4df000f84..cb028c4c97 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml @@ -168,15 +168,15 @@ + value="5.0" /> + value="10.0" /> + value="15.0" /> diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index 7e808a4ba6..36ebcee466 100644 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -2777,6 +2777,7 @@ Try enclosing path to the editor with double quotes. Movelock disabled Enabling movelock... Disabling movelock... + Flight Assist is enabled busy response diff --git a/indra/newview/skins/default/xui/pl/strings.xml b/indra/newview/skins/default/xui/pl/strings.xml index 547c9a5dc3..cfa564ca30 100644 --- a/indra/newview/skins/default/xui/pl/strings.xml +++ b/indra/newview/skins/default/xui/pl/strings.xml @@ -5590,6 +5590,9 @@ Spróbuj załączyć ścieżkę do edytora w cytowaniu. Wyłączanie blokady pozycji... + + Pomocnik lotu jest włączony + Wiadomość zajętości