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