mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Push #941 - Bandage
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
// bleed.sqf
|
// bleed.sqf
|
||||||
|
|
||||||
private ["_started","_finished","_animState","_isMedic","_id","_unit"];
|
private ["_started","_finished","_animState","_isMedic","_id","_unit","_display"];
|
||||||
|
|
||||||
disableserialization;
|
disableserialization;
|
||||||
|
|
||||||
@@ -54,16 +54,17 @@ if (_finished) then {
|
|||||||
_display closeDisplay 0;
|
_display closeDisplay 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
//DayZ CE: Has been changed to PVC via server_sendToClient.sqf -> Could we also do here - Commit by Skaronator
|
|
||||||
usecBandage = [_unit,player];
|
|
||||||
publicVariable "usecBandage";
|
|
||||||
|
|
||||||
if ((_unit == player) or (vehicle player != player)) then {
|
if ((_unit == player) or (vehicle player != player)) then {
|
||||||
//Self Healing
|
//Self Healing
|
||||||
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medBandaged.sqf";
|
_id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medBandaged.sqf";
|
||||||
dayz_sourceBleeding = objNull;
|
dayz_sourceBleeding = objNull;
|
||||||
} else {
|
} else {
|
||||||
//PVDZE_plr_HumanityChange = [player,20];
|
usecBandage = [_unit,player];
|
||||||
|
publicVariable "usecBandage";
|
||||||
|
/* WIP - PVS/PVC - Skaronator
|
||||||
|
PVDZE_send = [_unit,"Bandage",[_unit,player]];
|
||||||
|
publicVariableServer "PVDZE_send";
|
||||||
|
*/
|
||||||
[player,20] call player_humanityChange;
|
[player,20] call player_humanityChange;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ if ((_unit == player) or (vehicle player != player)) then {
|
|||||||
_control = _display displayCtrl 1303;
|
_control = _display displayCtrl 1303;
|
||||||
_control ctrlShow false;
|
_control ctrlShow false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* 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];
|
||||||
};
|
};
|
||||||
@@ -55,7 +55,7 @@ switch (_variable) do {
|
|||||||
_unit setVariable["medForceUpdate",true];
|
_unit setVariable["medForceUpdate",true];
|
||||||
};
|
};
|
||||||
|
|
||||||
case "Morphine": {
|
case "Morphine": { //DONE
|
||||||
usecMorphine = _arraytosend;
|
usecMorphine = _arraytosend;
|
||||||
_owner publicVariableClient "usecMorphine";
|
_owner publicVariableClient "usecMorphine";
|
||||||
//Don't forget!! Checkout dayz_code\medical\publicEH\medMorphine.sqf #22
|
//Don't forget!! Checkout dayz_code\medical\publicEH\medMorphine.sqf #22
|
||||||
@@ -64,20 +64,18 @@ switch (_variable) do {
|
|||||||
_unit setVariable["medForceUpdate",true];
|
_unit setVariable["medForceUpdate",true];
|
||||||
};
|
};
|
||||||
|
|
||||||
case "Epinephrine": {
|
case "Epinephrine": { //DONE
|
||||||
usecEpi = _arraytosend;
|
usecEpi = _arraytosend;
|
||||||
_owner publicVariableClient "usecEpi";
|
_owner publicVariableClient "usecEpi";
|
||||||
//Don't forget!! Checkout dayz_code\medical\publicEH\medEpi.sqf #24
|
//Don't forget!! Checkout dayz_code\medical\publicEH\medEpi.sqf #24
|
||||||
_unit setVariable["medForceUpdate",true];
|
_unit setVariable["medForceUpdate",true];
|
||||||
};
|
};
|
||||||
|
|
||||||
case "Bandage": {
|
case "Bandage": { //DONE
|
||||||
PVCDZ_hlt_Bandage = _arraytosend;
|
usecBandage = _arraytosend;
|
||||||
_owner publicVariableClient "PVCDZ_hlt_Bandage";
|
_owner publicVariableClient "usecBandage";
|
||||||
|
//Don't forget!! Checkout dayz_code\medical\publicEH\medEpi.sqf #21
|
||||||
_unit setVariable["medForceUpdate",true];
|
_unit setVariable["medForceUpdate",true];
|
||||||
|
|
||||||
//diag_log ("Bandage: " +str(PVCDZ_hlt_Bandage));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
case "Antibiotics": {
|
case "Antibiotics": {
|
||||||
|
|||||||
Reference in New Issue
Block a user