mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-22 20:12:20 +03:00
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:
@@ -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";};
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
#include "\z\addons\dayz_code\compile\keyboard.sqf"
|
||||
Reference in New Issue
Block a user