Push #941 - Morphine

This commit is contained in:
Skaronator
2014-01-11 20:27:27 +01:00
parent bec3f71fc9
commit e422df8fc0
3 changed files with 11 additions and 5 deletions

View File

@@ -60,10 +60,13 @@ if (_finished) then {
[player,50] call player_humanityChange;
};
//["usecMorphine",[_unit,player]] call broadcastRpcCallAll;
//DayZ CE: PublicVariables are removed in DayZ CE -> Could we also do here - Commit by Skaronator
usecMorphine = [_unit,player];
publicVariable "usecMorphine";
/* WIP - PVS/PVC - Skaronator
PVDZE_send = [_unit,"Morphine",[_unit,player]];
publicVariableServer "PVDZE_send";
*/
};
} else {
r_interrupt = false;

View File

@@ -18,6 +18,8 @@ if ((_unit == player) or (vehicle player != player)) then {
_id = false spawn dayz_disableRespawn;
};
/* WIP - PVS/PVC - Not anymore used: moved to server_sendToClient.sqf - Skaronator */
_unit setVariable ["hit_legs",0,false];
_unit setVariable ["hit_hands",0,false];

View File

@@ -48,7 +48,7 @@ switch (_variable) do {
_unit setVariable["medForceUpdate",true];
};
case "Painkiller": {
case "Painkiller": { //DONE
usecPainK = _arraytosend;
_owner publicVariableClient "usecPainK";
//Don't forget!! Checkout dayz_code\medical\publicEH\medPainkiller.sqf #13
@@ -56,8 +56,9 @@ switch (_variable) do {
};
case "Morphine": {
PVCDZ_hlt_Morphine = _arraytosend;
_owner publicVariableClient "PVCDZ_hlt_Morphine";
usecMorphine = _arraytosend;
_owner publicVariableClient "usecMorphine";
//Don't forget!! Checkout dayz_code\medical\publicEH\medMorphine.sqf #22
_unit setVariable ["hit_legs",0,false];
_unit setVariable ["hit_hands",0,false];
_unit setVariable["medForceUpdate",true];