From 0b27653833e0e1ae7d6714822d36ab559b75c326 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Sat, 31 Dec 2016 17:37:34 -0500 Subject: [PATCH] Add config variable DZE_ServerLogHits --- CHANGE LOG 1.0.6.1.txt | 3 ++- SQF/dayz_code/compile/fn_damageHandler.sqf | 6 ++---- SQF/dayz_code/configVariables.sqf | 1 + 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGE LOG 1.0.6.1.txt b/CHANGE LOG 1.0.6.1.txt index 3a085e833..0517ac542 100644 --- a/CHANGE LOG 1.0.6.1.txt +++ b/CHANGE LOG 1.0.6.1.txt @@ -1,6 +1,7 @@ [NEW] Added config variable DZE_HaloSpawnHeight. @ebayShopper +[NEW] Added config variable DZE_ServerLogHits for logging source damage, weapon, ammo and distance to server RPT. [NEW] Added M4SPR_DZE class which spawns with 30Rnd Stanag by default instead of 20Rnd. #1823 @AirwavesMan -[NEW] Building upgrades now source parts from the player's backpack and main inventory @icomrade +[NEW] Building upgrades now source parts from the player's backpack and main inventory. @icomrade [CHANGED] Turbo and HoldBreath keybindings are now allowed again. @icomrade [CHANGED] Removed drink from hands at ponds due to client FPS impact. Players can still fill drinks at ponds by right clicking a container. @ebayShopper diff --git a/SQF/dayz_code/compile/fn_damageHandler.sqf b/SQF/dayz_code/compile/fn_damageHandler.sqf index 96f76e5ce..0615775dd 100644 --- a/SQF/dayz_code/compile/fn_damageHandler.sqf +++ b/SQF/dayz_code/compile/fn_damageHandler.sqf @@ -163,12 +163,10 @@ if (_unit == player) then { }; }; - //Overkill logging. PVS network send every two seconds = lag. Not worth it just for extra anticheat logs. //Log to server :-( OverProcessing really not needed. - /*if (!local _source && _isMan) then { + if (DZE_ServerLogHits && {!local _source} && {_isMan}) then { _wpst = weaponState _source; if (diag_ticktime-(_source getVariable ["lastloghit",0])>2) then { - private ["_sourceWeap"]; _source setVariable ["lastloghit",diag_ticktime]; _sourceDist = round(_unit distance _source); _sourceWeap = switch (true) do { @@ -186,7 +184,7 @@ if (_unit == player) then { publicVariableServer "PVDZ_sec_atp"; }; }; - };*/ + }; dayz_lastDamageSource = switch (true) do { case (_falling): {"fall"}; diff --git a/SQF/dayz_code/configVariables.sqf b/SQF/dayz_code/configVariables.sqf index b5e536489..9bb8158b9 100644 --- a/SQF/dayz_code/configVariables.sqf +++ b/SQF/dayz_code/configVariables.sqf @@ -39,6 +39,7 @@ DZE_DeathMsgChat = "none"; //"none","global","side","system" Display death messa DZE_DeathMsgDynamicText = false; // Display death messages as dynamicText in the top left with weapon icons. DZE_DeathMsgRolling = false; // Display death messages as rolling messages in bottom center of screen. DZE_DeathScreen = true; // True=Use Epoch death screen (Trade city obituaries have been amended) False=Use DayZ death screen (You are dead) +DZE_ServerLogHits = false; // Log damage source, weapon, distance and ammo to server RPT for player hits. Useful for detecting damage and ammo cheats. // Dynamic Vehicles DynamicVehicleDamageLow = 0; // Min damage random vehicles can spawn with