mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #492 from acemod/acreCompat
ACRE API functions and core functions were incorrect.
This commit is contained in:
commit
1a9b25c70e
@ -14,10 +14,10 @@
|
||||
|
||||
// ACRE
|
||||
if (isClass (configFile >> "CfgPatches" >> "acre_main")) then {
|
||||
[-1] call acre_core_fnc_handleMultiPttKeyPressUp;
|
||||
[0] call acre_core_fnc_handleMultiPttKeyPressUp;
|
||||
[1] call acre_core_fnc_handleMultiPttKeyPressUp;
|
||||
[2] call acre_core_fnc_handleMultiPttKeyPressUp;
|
||||
[-1] call acre_sys_core_fnc_handleMultiPttKeyPressUp;
|
||||
[0] call acre_sys_core_fnc_handleMultiPttKeyPressUp;
|
||||
[1] call acre_sys_core_fnc_handleMultiPttKeyPressUp;
|
||||
[2] call acre_sys_core_fnc_handleMultiPttKeyPressUp;
|
||||
};
|
||||
|
||||
// TFAR
|
||||
|
@ -27,7 +27,7 @@ if (_setVolume) then {
|
||||
player setVariable ["tf_unable_to_use_radio", false];
|
||||
|
||||
// ACRE2
|
||||
player setVariable ["acre_sys_core_globalVolume", NORMAL_LEVEL];
|
||||
[NORMAL_LEVEL] call acre_api_fnc_setGlobalVolume;
|
||||
player setVariable ["acre_sys_core_isDisabled", false, true];
|
||||
|
||||
} else {
|
||||
@ -40,7 +40,7 @@ if (_setVolume) then {
|
||||
player setVariable ["tf_unable_to_use_radio", true];
|
||||
|
||||
// ACRE2
|
||||
player setVariable ["acre_sys_core_globalVolume", MUTED_LEVEL];
|
||||
[MUTED_LEVEL] call acre_api_fnc_setGlobalVolume;
|
||||
player setVariable ["acre_sys_core_isDisabled", true, true];
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user