mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-16 05:39:58 +03:00
Remove unused PVEH
I'm guessing the 1 in place of I in the PV names was intentional to work around some BE filter. If not, it should be changed in vanilla.
This commit is contained in:
@@ -1,24 +1,20 @@
|
||||
private ["_unit","_variable","_arraytosend","_owner","_vehicle","_qty"];
|
||||
//Inbound [_unit,"PVCDZ_hlt_Transfuse",[_unit,player,1000]]
|
||||
_unit = _this select 0;
|
||||
|
||||
//if(isNull _unit) exitWith {diag_log format ["ERROR: sendToClient is Null: %1", _unit]};
|
||||
|
||||
_variable = _this select 1;
|
||||
_arraytosend = _this select 2;
|
||||
_owner = owner _unit;
|
||||
|
||||
//diag_log format ["%1, %2, %3, %4", _unit, _variable, _arraytosend, _owner];
|
||||
|
||||
//execution
|
||||
switch (_variable) do {
|
||||
case "VehHandleDam": {
|
||||
_vehicle = _arraytosend select 0;
|
||||
if (local _vehicle) then {
|
||||
_arraytosend call fnc_veh_handleDam;
|
||||
} else {
|
||||
PVCDZE_veh_SH = _arraytosend;
|
||||
_owner publicVariableClient "PVCDZE_veh_SH";
|
||||
PVCDZ_veh_SH = _arraytosend;
|
||||
_owner publicVariableClient "PVCDZ_veh_SH";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -32,11 +28,10 @@ switch (_variable) do {
|
||||
_owner publicVariableClient "PVCDZ_veh_SetFuel";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
case "SetEngineState": {
|
||||
_vehicle = _arraytosend select 0;
|
||||
_state = _arraytosend select 1;
|
||||
|
||||
_state = _arraytosend select 1;
|
||||
if (local _vehicle) then {
|
||||
//_vehicle engineOn _state;
|
||||
_vehicle setOwner _owner;
|
||||
@@ -50,7 +45,7 @@ switch (_variable) do {
|
||||
PVCDZ_obj_GutBody = _arraytosend;
|
||||
_owner publicVariableClient "PVCDZ_obj_GutBody";
|
||||
};
|
||||
|
||||
|
||||
case "HideBody": {
|
||||
PVCDZ_obj_HideBody = _arraytosend select 0;
|
||||
_owner publicVariableClient "PVCDZ_obj_HideBody";
|
||||
@@ -59,91 +54,74 @@ switch (_variable) do {
|
||||
case "Humanity": {
|
||||
PVCDZ_plr_Humanity = _arraytosend;
|
||||
_owner publicVariableClient "PVCDZ_plr_Humanity";
|
||||
//diag_log ("Humanity" +str(PVCDZ_plr_Humanity));
|
||||
};
|
||||
|
||||
case "PZ_BreakLegs": {
|
||||
PVCDZ_plr_Legs = _arraytosend;
|
||||
_owner publicVariableClient "PVCDZ_plr_Legs";
|
||||
};
|
||||
|
||||
case "Bleed": {
|
||||
PVDZ_hlt_Bleed = _arraytosend;
|
||||
_owner publicVariableClient "PVDZ_hlt_Bleed";
|
||||
};
|
||||
|
||||
case "dayzSetDate": {
|
||||
dayzSetDate = dayz_storeTimeDate;
|
||||
_owner publicVariableClient "dayzSetDate";
|
||||
|
||||
//diag_log ("Time and date: " +str (dayz_storeTimeDate));
|
||||
};
|
||||
|
||||
case "RoadFlare": {
|
||||
PVDZ_obj_RoadFlare = _arraytosend;
|
||||
_owner publicVariableClient "PVDZ_obj_RoadFlare";
|
||||
};
|
||||
|
||||
|
||||
case "Transfuse": {
|
||||
PVCDZ_hlt_Transfuse = _arraytosend;
|
||||
_owner publicVariableClient "PVCDZ_hlt_Transfuse";
|
||||
_unit setVariable["medForceUpdate",true];
|
||||
_unit setVariable ["medForceUpdate",true];
|
||||
};
|
||||
|
||||
|
||||
case "Transfuse_completed": {
|
||||
PVCDZ_hlt_Transfuse_completed = true;
|
||||
_owner publicVariableClient "PVCDZ_hlt_Transfuse_completed";
|
||||
_unit setVariable["medForceUpdate",true];
|
||||
_unit setVariable ["medForceUpdate",true];
|
||||
};
|
||||
|
||||
case "Painkiller": {
|
||||
PVCDZ_hlt_PainK = _arraytosend;
|
||||
_owner publicVariableClient "PVCDZ_hlt_PainK";
|
||||
_unit setVariable["medForceUpdate",true];
|
||||
_unit setVariable ["medForceUpdate",true];
|
||||
};
|
||||
|
||||
|
||||
case "Morphine": {
|
||||
PVCDZ_hlt_Morphine = _arraytosend;
|
||||
_owner publicVariableClient "PVCDZ_hlt_Morphine";
|
||||
_unit setVariable ["hit_legs",0,false];
|
||||
_unit setVariable ["hit_hands",0,false];
|
||||
_unit setVariable["medForceUpdate",true];
|
||||
_unit setVariable ["medForceUpdate",true];
|
||||
};
|
||||
|
||||
case "Epinephrine": {
|
||||
PVCDZ_hlt_Epi = _arraytosend;
|
||||
_owner publicVariableClient "PVCDZ_hlt_Epi";
|
||||
_unit setVariable["medForceUpdate",true];
|
||||
_unit setVariable ["medForceUpdate",true];
|
||||
};
|
||||
|
||||
case "Bandage": {
|
||||
PVCDZ_hlt_Bandage = _arraytosend;
|
||||
_owner publicVariableClient "PVCDZ_hlt_Bandage";
|
||||
|
||||
_unit setVariable["medForceUpdate",true];
|
||||
|
||||
_unit setVariable ["medForceUpdate",true];
|
||||
//diag_log ("Bandage: " +str(PVCDZ_hlt_Bandage));
|
||||
};
|
||||
|
||||
case "Antibiotics": {
|
||||
PVCDZ_hlt_AntiB = _arraytosend;
|
||||
_owner publicVariableClient "PVCDZ_hlt_AntiB";
|
||||
_unit setVariable["medForceUpdate",true];
|
||||
_unit setVariable ["medForceUpdate",true];
|
||||
};
|
||||
|
||||
case "tagFriendly": {
|
||||
PVDZE_plr_FriendRQ = _arraytosend;
|
||||
_owner publicVariableClient "PVDZE_plr_FriendRQ";
|
||||
};
|
||||
case "Legs": {
|
||||
PVCDZ_plr_Legs = _arraytosend;
|
||||
_owner publicVariableClient "PVCDZ_plr_Legs";
|
||||
};
|
||||
|
||||
case "OpenTarget":
|
||||
{
|
||||
_unit setVariable["OpenTarget",true,true];
|
||||
|
||||
//reset OpenTarget timer
|
||||
case "OpenTarget": {
|
||||
_unit setVariable ["OpenTarget",true,true];
|
||||
PVCDZ_OpenTarget_Reset = true;
|
||||
_owner publicVariableClient "PVCDZ_OpenTarget_Reset";
|
||||
};
|
||||
|
||||
case "tagFriendly": {
|
||||
PVDZE_plr_FriendRQ = _arraytosend;
|
||||
_owner publicVariableClient "PVDZE_plr_FriendRQ";
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user