mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
posible fix for overlapping Speedlimiters
This commit is contained in:
parent
5f2840bf39
commit
76435ec228
@ -2,7 +2,7 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
if (!hasInterface) exitWith {};
|
||||
|
||||
GVAR(isSpeedLimiter) = false;
|
||||
// Add keybinds
|
||||
["ACE3 Vehicles", QGVAR(speedLimiter), localize LSTRING(SpeedLimiter),
|
||||
{
|
||||
|
@ -20,7 +20,7 @@ private "_maxSpeed";
|
||||
|
||||
params ["_driver", "_vehicle"];
|
||||
|
||||
if (GETGVAR(isSpeedLimiter,false)) exitWith {
|
||||
if (GVAR(isSpeedLimiter)) exitWith {
|
||||
[localize LSTRING(Off)] call EFUNC(common,displayTextStructured);
|
||||
playSound "ACE_Sound_Click";
|
||||
GVAR(isSpeedLimiter) = false;
|
||||
@ -38,7 +38,7 @@ _maxSpeed = speed _vehicle max 10;
|
||||
|
||||
if (GVAR(isUAV)) then {
|
||||
private _uavControll = UAVControl _vehicle;
|
||||
if ((_uavControll select 0) != _driver) then {
|
||||
if ((_uavControll select 0) != _driver || _uavControll select 1 != "DRIVER") then {
|
||||
GVAR(isSpeedLimiter) = false;
|
||||
};
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user