Fix live animals being deleted in front of players

Vanilla commits:

e14d45a55b

9d6be1731e
This commit is contained in:
ebaydayz
2016-11-21 18:49:03 -05:00
parent d7ecf29744
commit 0483fa61f6
2 changed files with 9 additions and 6 deletions

View File

@@ -3,8 +3,7 @@ class CAAnimalBase: Animal
{
class Eventhandlers
{
//local = "_z = _this select 0; if ((!isServer and !isNull _z) and {(side _z != civilian)}) exitWith { PVDZ_sec_atp = [ 'wrong side', player ]; publicVariableServer 'PVDZ_sec_atp'; deleteVehicle _z; }; if ((_this select 1) and isServer) exitWith { _z call sched_co_deleteVehicle; };";
local = "_z = _this select 0; if ((_this select 1) and isServer) exitWith { _z call sched_co_deleteVehicle; };";
//local = "_z = _this select 0; if ((!isServer and !isNull _z) and {(side _z != civilian)}) exitWith { PVDZ_sec_atp = [ 'wrong side', player ]; publicVariableServer 'PVDZ_sec_atp'; deleteVehicle _z; };";
};
class UserActions
{