Push #941 - Transfuse

This commit is contained in:
Skaronator
2014-01-11 20:19:26 +01:00
parent 2a37818e47
commit c5ce2f70a4
4 changed files with 14 additions and 16 deletions

View File

@@ -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 {

View File

@@ -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];
};

View File

@@ -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 {

View File

@@ -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];
};