From 2a3b895647fbfb83f732feb5c7161aafca0b86cd Mon Sep 17 00:00:00 2001 From: A Man Date: Sun, 19 Sep 2021 18:35:53 +0200 Subject: [PATCH] Update keyboard.sqf - Pressing ESC will cancel without opening the Arma exit menu. - Pressing F while building will hold or release the object without altering the weapon firing mode. - Pressing PgUp or PgDn while building will raise or lower the object without altering the weapon zeroing. Thx @Victor-the-Cleaner --- SQF/dayz_code/compile/keyboard.sqf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/SQF/dayz_code/compile/keyboard.sqf b/SQF/dayz_code/compile/keyboard.sqf index b57304c7b..5125e4808 100644 --- a/SQF/dayz_code/compile/keyboard.sqf +++ b/SQF/dayz_code/compile/keyboard.sqf @@ -13,20 +13,24 @@ if (isNil "keyboard_keys") then { DZE_cancelBuilding = true; call dayz_EjectPlayer; _handled = false; + if (!isNil "DZE_buildItem") then {_handled = true;}; // ESC to cancel build if (r_player_dead) then {_handled = true;}; // Disable ESC after death }; - local _dze_f = { + local _dze_f = { if (!_ctrlState && !_altState) then {DZE_F = true;}; + if (!isNil "DZE_buildItem") then {_handled = true;}; // hold/release object while base building without altering weapon firing mode }; - local _dze_q = { - if (!_ctrlState && !_altState) then {DZE_Q = true;}; + local _dze_q = { + if (!_ctrlState && !_altState) then {DZE_Q = true;}; if (!_ctrlState && _altState) then {DZE_Q_alt = true;}; if (_ctrlState && !_altState) then {DZE_Q_ctrl = true;}; + if (!isNil "DZE_buildItem") then {_handled = true;}; // raise object while base building without altering weapon zeroing }; local _dze_z = { if (!_ctrlState && !_altState) then {DZE_Z = true;}; if (!_ctrlState && _altState) then {DZE_Z_alt = true;}; if (_ctrlState && !_altState) then {DZE_Z_ctrl = true;}; + if (!isNil "DZE_buildItem") then {_handled = true;}; // lower object while base building without altering weapon zeroing }; local _autoRun = { if (!dayz_autoRun) then {