mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Push #941 - Morphine
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user