mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Add humanity gain for giving splint to other players
Vanilla commit:
879d6ee4bf
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
private ["_started","_finished","_animState","_isMedic","_id","_unit","_item"];
|
private ["_started","_finished","_animState","_isMedic","_id","_unit","_item","_humanityGain"];
|
||||||
|
|
||||||
_unit = (_this select 3) select 0;
|
_unit = (_this select 3) select 0;
|
||||||
_item = (_this select 3) select 1;
|
_item = (_this select 3) select 1;
|
||||||
@@ -50,8 +50,14 @@ if (_finished) then {
|
|||||||
//give to remote player, ie the player fixed another player
|
//give to remote player, ie the player fixed another player
|
||||||
|
|
||||||
//Give humanity reward to player giving the morphine to another player.
|
//Give humanity reward to player giving the morphine to another player.
|
||||||
if (_item in ["ItemMorphine"]) then {
|
_humanityGain = switch true do {
|
||||||
[50,0] call player_humanityChange;
|
case (_item == "ItemMorphine"): { 50 };
|
||||||
|
case (_item == "equip_woodensplint"): { 25 };
|
||||||
|
default { 0 };
|
||||||
|
};
|
||||||
|
|
||||||
|
if (_humanityGain > 0) then {
|
||||||
|
[_humanityGain,0] call player_humanityChange;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user