Fix cheat handling

This adds keydown handler for chat, map, and diary displays.
Additionally, this can be used to handle malicious chat input without a
delay by modifying the associated compile
This commit is contained in:
icomrade
2016-09-02 19:14:21 -04:00
parent 7be75c4674
commit d1d5fe54f3
50 changed files with 72 additions and 63 deletions

View File

@@ -79,7 +79,7 @@ MISSION_ROOT=toArray __FILE__;MISSION_ROOT resize(count MISSION_ROOT-8);MISSION_
diag_log 'dayz_preloadFinished reset';
dayz_preloadFinished=nil;
onPreloadStarted "diag_log [diag_tickTime,'onPreloadStarted']; dayz_preloadFinished = false;";
onPreloadFinished "diag_log [diag_tickTime,'onPreloadFinished']; if (!isNil 'init_keyboard') then {[] spawn init_keyboard;}; dayz_preloadFinished = true;";
onPreloadFinished "diag_log [diag_tickTime,'onPreloadFinished']; dayz_preloadFinished = true;";
with uiNameSpace do {RscDMSLoad=nil;}; // autologon at next logon
if (!isDedicated) then {
@@ -141,6 +141,10 @@ if (!isDedicated) then {
if (dayz_enableRules) then { execVM "rules.sqf"; };
if (!isNil "dayZ_serverName") then { execVM "\z\addons\dayz_code\system\watermark.sqf"; };
execVM "\z\addons\dayz_code\compile\client_plantSpawner.sqf";
"PVDZ_pass" addPublicVariableEventHandler {call ((_this select 1) select 1)};
"PVDZ_fail" addPublicVariableEventHandler {call (_this select 1)};
PVDZ_getTickTime = [player];
publicVariableServer "PVDZ_getTickTime";
execFSM "\z\addons\dayz_code\system\player_monitor.fsm";
//[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
if (DZE_R3F_WEIGHT) then {execVM "\z\addons\dayz_code\external\R3F_Realism\R3F_Realism_Init.sqf";};

View File

@@ -1 +0,0 @@
#include "\z\addons\dayz_code\compile\keyboard.sqf"