Add server side security

This can be used to break a player's legs.
This commit is contained in:
worldwidesorrow
2019-12-11 17:34:23 -06:00
committed by GitHub
parent deeb135e0d
commit 65221ec477

View File

@@ -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;
s_player_attack = -1;