mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
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
This commit is contained in:
@@ -13,20 +13,24 @@ if (isNil "keyboard_keys") then {
|
|||||||
DZE_cancelBuilding = true;
|
DZE_cancelBuilding = true;
|
||||||
call dayz_EjectPlayer;
|
call dayz_EjectPlayer;
|
||||||
_handled = false;
|
_handled = false;
|
||||||
|
if (!isNil "DZE_buildItem") then {_handled = true;}; // ESC to cancel build
|
||||||
if (r_player_dead) then {_handled = true;}; // Disable ESC after death
|
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 (!_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 = {
|
local _dze_q = {
|
||||||
if (!_ctrlState && !_altState) then {DZE_Q = true;};
|
if (!_ctrlState && !_altState) then {DZE_Q = true;};
|
||||||
if (!_ctrlState && _altState) then {DZE_Q_alt = true;};
|
if (!_ctrlState && _altState) then {DZE_Q_alt = true;};
|
||||||
if (_ctrlState && !_altState) then {DZE_Q_ctrl = 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 = {
|
local _dze_z = {
|
||||||
if (!_ctrlState && !_altState) then {DZE_Z = true;};
|
if (!_ctrlState && !_altState) then {DZE_Z = true;};
|
||||||
if (!_ctrlState && _altState) then {DZE_Z_alt = true;};
|
if (!_ctrlState && _altState) then {DZE_Z_alt = true;};
|
||||||
if (_ctrlState && !_altState) then {DZE_Z_ctrl = 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 = {
|
local _autoRun = {
|
||||||
if (!dayz_autoRun) then {
|
if (!dayz_autoRun) then {
|
||||||
|
|||||||
Reference in New Issue
Block a user