Remove some unused legacy code

This commit is contained in:
ebaydayz
2016-06-07 16:26:29 -04:00
parent 0534e95ccc
commit a7045140a0
4 changed files with 2 additions and 142 deletions

View File

@@ -199,47 +199,6 @@ if (isServer) then {
};
*/
};
"PVDZ_receiveVar" addPublicVariableEventHandler {
_owner = (_this select 1) select 0;
_object = (_this select 1) select 1;
_name = (_this select 1) select 2;
_value = (_this select 1) select 3;
switch (_name) do {
case "looted": {
diag_log format ["%4 - %1, %2, %3", _object, _name, _value, "receive looted"];
};
case "zombieSpawn": {
//diag_log format ["%4 - %1, %2, %3", _object, _name, _value, "receive zombieSpawn"];
};
};
_ownerID = owner _owner;
_return = _object getVariable [_name,_value];
//diag_log format ["%1", _return];
PVCDZ_SetVar = [_object,_name,_return];
_ownerID publicVariableClient "PVCDZ_SetVar";
};
"PVDZ_Server_changeOwner" addPublicVariableEventHandler {
_agent = (_this select 1) select 0;
_reciever = (_this select 1) select 1;
_ownerID = owner _agent;
_newownerID = 1; //1 = server
if (typeName _reciever == "OBJECT") then {
_newownerID = owner _reciever;
};
if (isNil ("Owner")) then {
_agent setVariable ["Owner",_ownerID];
};
_agent setOwner _newownerID;
diag_log ("TRANSFER OWNERSHIP: " + (typeOf _agent) + " OF _unit: " + str(_agent) + " TO _client: " + str(_reciever) );
};
"PVDZ_Server_LogIt" addPublicVariableEventHandler {
_unitSending = _this select 0;
@@ -325,14 +284,6 @@ if (!isDedicated) then {
_entity setVariable ["hit_legs", 2, true];
};
};
"PVCDZ_SetVar" addPublicVariableEventHandler {
_object = (_this select 1) select 0;
_name = (_this select 1) select 1;
_value = (_this select 1) select 2;
_object setVariable [_name,_value];
};
"PVDZ_receiveUnconscious" addPublicVariableEventHandler {
_unit = (_this select 1) select 0;