From 65221ec477257270b95af8b941c39a5481898e2e Mon Sep 17 00:00:00 2001 From: worldwidesorrow Date: Wed, 11 Dec 2019 17:34:23 -0600 Subject: [PATCH] Add server side security This can be used to break a player's legs. --- SQF/dayz_code/actions/pzombie/pz_attack.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/actions/pzombie/pz_attack.sqf b/SQF/dayz_code/actions/pzombie/pz_attack.sqf index f0612d20f..be931096c 100644 --- a/SQF/dayz_code/actions/pzombie/pz_attack.sqf +++ b/SQF/dayz_code/actions/pzombie/pz_attack.sqf @@ -13,7 +13,7 @@ if (!isNull _ent && {player distance _ent < 5}) then { _ent setDamage 1; } else { /* PVS/PVC - Skaronator */ - PVDZ_send = [_ent,"Legs",[_ent,player]]; + PVDZ_send = [_ent,"Legs",[_ent,player],[_ent,dayz_authKey,player]]; publicVariableServer "PVDZ_send"; }; [player,"hit",0,false] call dayz_zombieSpeak; @@ -21,4 +21,4 @@ if (!isNull _ent && {player distance _ent < 5}) then { uiSleep 1; player switchMove ""; -s_player_attack = -1; \ No newline at end of file +s_player_attack = -1;