mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Push #941 - Transfuse
This commit is contained in:
@@ -80,8 +80,8 @@ if (count _array > 0) then {
|
||||
PVDZE_plr_HumanityChange = [_source,_humanity,_wait];
|
||||
publicVariable "PVDZE_plr_HumanityChange";
|
||||
/* WIP - PVS/PVC - Skaronator
|
||||
PVDZ_send = [_source,"Humanity",[_source,_humanity,_wait]];
|
||||
publicVariableServer "PVDZ_send";
|
||||
PVDZE_send = [_source,"Humanity",[_source,_humanity,_wait]];
|
||||
publicVariableServer "PVDZE_send";
|
||||
*/
|
||||
};
|
||||
};
|
||||
@@ -102,8 +102,8 @@ if (count _array > 0) then {
|
||||
PVDZE_plr_HumanityChange = [_source,_humanity,_wait];
|
||||
publicVariable "PVDZE_plr_HumanityChange";
|
||||
/* WIP - PVS/PVC - Skaronator
|
||||
PVDZ_send = [_source,"Humanity",[_source,_humanity,_wait]];
|
||||
publicVariableServer "PVDZ_send";
|
||||
PVDZE_send = [_source,"Humanity",[_source,_humanity,_wait]];
|
||||
publicVariableServer "PVDZE_send";
|
||||
*/
|
||||
};
|
||||
if (_canHitFree) then {
|
||||
|
||||
@@ -27,6 +27,7 @@ if (_unit == player) then {
|
||||
|
||||
player setVariable["USEC_BloodQty",r_player_bloodTotal,true];
|
||||
};
|
||||
/* WIP - PVS/PVC - Not anymore used: moved to server_sendToClient.sqf - Skaronator */
|
||||
if (isServer) then {
|
||||
_unit setVariable["medForceUpdate",true];
|
||||
};
|
||||
|
||||
@@ -45,11 +45,14 @@ if (_finished) then {
|
||||
_unit setVariable["USEC_lowBlood",false,true];
|
||||
_num_removed = ([player,"ItemBloodbag"] call BIS_fnc_invRemove);
|
||||
if(_num_removed == 1) then {
|
||||
//["usecTransfuse",[_unit,player]] call broadcastRpcCallAll;
|
||||
usecTransfuse = [_unit,player];
|
||||
publicVariable "usecTransfuse";
|
||||
|
||||
/* WIP - PVS/PVC - Skaronator
|
||||
PVDZE_send = [_unit,"Transfuse",[_unit,player]];
|
||||
publicVariableServer "PVDZE_send";
|
||||
*/
|
||||
|
||||
//PVDZE_plr_HumanityChange = [player,100];
|
||||
[player,100] call player_humanityChange;
|
||||
};
|
||||
} else {
|
||||
|
||||
@@ -41,16 +41,10 @@ switch (_variable) do {
|
||||
_owner publicVariableClient "PVDZE_plr_HumanityChange";
|
||||
};
|
||||
|
||||
case "dayzSetDate": {
|
||||
dayzSetDate = dayz_storeTimeDate;
|
||||
_owner publicVariableClient "dayzSetDate";
|
||||
|
||||
//diag_log ("Time and date: " +str (dayz_storeTimeDate));
|
||||
};
|
||||
|
||||
case "Transfuse": {
|
||||
PVCDZ_hlt_Transfuse = _arraytosend;
|
||||
_owner publicVariableClient "PVCDZ_hlt_Transfuse";
|
||||
case "Transfuse": { //DONE
|
||||
usecTransfuse = _arraytosend;
|
||||
_owner publicVariableClient "usecTransfuse";
|
||||
//Don't forget!! Checkout dayz_code\medical\publicEH\medTransfuse.sqf #30
|
||||
_unit setVariable["medForceUpdate",true];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user