diff --git a/addons/vehicles/XEH_postInit.sqf b/addons/vehicles/XEH_postInit.sqf index 3afea03187b..757e7a921a7 100644 --- a/addons/vehicles/XEH_postInit.sqf +++ b/addons/vehicles/XEH_postInit.sqf @@ -33,7 +33,7 @@ GVAR(isSpeedLimiter) = false; ["ACE3 Vehicles", QGVAR(scrollUp), localize LSTRING(IncreaseSpeedLimit), { if (GVAR(isSpeedLimiter)) then { - GVAR(speedLimit) = round (GVAR(speedLimit) + 1) max 5; + GVAR(speedLimit) = round (GVAR(speedLimit) + GVAR(speedLimiterStep)) max (5 max GVAR(speedLimiterStep)); [["%1: %2", LSTRING(SpeedLimit), GVAR(speedLimit)]] call EFUNC(common,displayTextStructured); true }; @@ -41,7 +41,7 @@ GVAR(isSpeedLimiter) = false; ["ACE3 Vehicles", QGVAR(scrollDown), localize LSTRING(DecreaseSpeedLimit), { if (GVAR(isSpeedLimiter)) then { - GVAR(speedLimit) = round (GVAR(speedLimit) - 1) max 5; + GVAR(speedLimit) = round (GVAR(speedLimit) - GVAR(speedLimiterStep)) max (5 max GVAR(speedLimiterStep)); [["%1: %2", LSTRING(SpeedLimit), GVAR(speedLimit)]] call EFUNC(common,displayTextStructured); true }; diff --git a/addons/vehicles/initSettings.sqf b/addons/vehicles/initSettings.sqf index 926a95ea4cf..500cd8d852e 100644 --- a/addons/vehicles/initSettings.sqf +++ b/addons/vehicles/initSettings.sqf @@ -19,3 +19,11 @@ }, true // needs restart ] call CBA_fnc_addSetting; + +[ + QGVAR(speedLimiterStep), + "SLIDER", + LSTRING(SpeedLimiterStep), + ELSTRING(common,ACEKeybindCategoryVehicles), + [1, 10, 5, 0] +] call CBA_fnc_addSetting; diff --git a/addons/vehicles/stringtable.xml b/addons/vehicles/stringtable.xml index 1d391debd26..c77c6b8138b 100644 --- a/addons/vehicles/stringtable.xml +++ b/addons/vehicles/stringtable.xml @@ -148,5 +148,11 @@ Nasconde la voce Espelli dal menu azione. Richiede il riavvio del gioco. Schová akci vyskošení z vozidla z akčního menu. Vyžaduje restart hry. + + Speed Limiter Step + Schrittgröße des Geschwindigkeitsbegrenzers + Przeskok limitera prędkości + Pas du limiteur de vitesse +