Include all controls in VON block

Moved to display 46 keydown since keydown on 63 only fires after the VON
transmission has already started (slight delay).

Added mouseButtonDown so it can not be bypassed via assigning a mouse
button.
This commit is contained in:
ebaydayz
2016-11-25 18:22:41 -05:00
parent b6d88b1329
commit b9a5c59660
5 changed files with 29 additions and 24 deletions

View File

@@ -148,6 +148,13 @@ if (isNil "keyboard_keys") then {
dayz_lastCheckBit = diag_ticktime;
[player,20,true,(getPosATL player)] call player_alertZombies;
};
};
_checkVoice = {
if (diag_ticktime - dayz_lastCheckBit > 10) then {
dayz_lastCheckBit = diag_ticktime;
[player,20,true,(getPosATL player)] call player_alertZombies;
};
_handled = if (!isNil "DZE_FilterCheats") then {[-999,false] call DZE_FilterCheats} else {false};
};
_journal = {
if (!dayz_isSwimming and !dialog) then {
@@ -280,9 +287,14 @@ if (isNil "keyboard_keys") then {
[actionKeys "MoveBack", _interrupt] call _addArray;
[actionKeys "TurnLeft", _interrupt] call _addArray;
[actionKeys "TurnRight", _interrupt] call _addArray;
[actionKeys "PushToTalk", _noise] call _addArray;
[actionKeys "VoiceOverNet", _noise] call _addArray;
[actionKeys "PushToTalkDirect", _noise] call _addArray;
[actionKeys "PushToTalk", _checkVoice] call _addArray;
[actionKeys "PushToTalkAll", _checkVoice] call _addArray;
[actionKeys "PushToTalkCommand", _checkVoice] call _addArray;
[actionKeys "PushToTalkDirect", _checkVoice] call _addArray;
[actionKeys "PushToTalkGroup", _checkVoice] call _addArray;
[actionKeys "PushToTalkSide", _checkVoice] call _addArray;
[actionKeys "PushToTalkVehicle", _checkVoice] call _addArray;
[actionKeys "VoiceOverNet", _checkVoice] call _addArray;
[actionKeys "Chat", _noise] call _addArray;
[actionKeys "User20", _journal] call _addArray;
[actionKeys "Diary", _journal] call _addArray;