mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-18 18:26:39 +03:00
Add optional self transfuse
Right click on blood bag, if enable it will show the self transfuse button. Currently replenishes all blood. May be used once every 5 minutes.
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
// animHealed.sqf
|
||||
private ["_array","_unit","_medic","_display","_control","_rndInfection","_TransfusionInfection"];
|
||||
private ["_array","_unit","_display","_control","_rndInfection","_TransfusionInfection"];
|
||||
disableserialization;
|
||||
_array = _this; //_this select 0;
|
||||
_unit = _array select 0;
|
||||
_medic = _array select 1;
|
||||
_unit = _this select 0;
|
||||
|
||||
_rndInfection = (random 15);
|
||||
_TransfusionInfection = (_rndInfection < 1);
|
||||
|
||||
if (_unit == player) then {
|
||||
r_player_blood = r_player_bloodTotal;
|
||||
r_player_lowblood = false;
|
||||
r_player_lowblood = false;
|
||||
10 fadeSound 1;
|
||||
"dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5;
|
||||
"colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 1], [1, 1, 1, 1]];"colorCorrections" ppEffectCommit 5;
|
||||
|
||||
Reference in New Issue
Block a user