mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 09:29:21 +03:00
Customize self transfusion settings
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
// animHealed.sqf
|
||||
private ["_array","_unit","_display","_control","_rndInfection","_TransfusionInfection"];
|
||||
private ["_selfTransValues","_unit","_display","_control","_rndInfection","_TransfusionInfection"];
|
||||
disableserialization;
|
||||
_unit = _this select 0;
|
||||
|
||||
_rndInfection = (random 15);
|
||||
_TransfusionInfection = (_rndInfection < 1);
|
||||
|
||||
if (_unit == player) then {
|
||||
r_player_blood = r_player_bloodTotal;
|
||||
if ((count _this) > 1) then {
|
||||
_selfTransValues = _this select 1;
|
||||
r_player_blood = (_selfTransValues select 0);
|
||||
_TransfusionInfection = ((random (_selfTransValues select 1)) < 1);
|
||||
} else {
|
||||
r_player_blood = r_player_bloodTotal;
|
||||
};
|
||||
r_player_lowblood = false;
|
||||
10 fadeSound 1;
|
||||
"dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5;
|
||||
|
||||
Reference in New Issue
Block a user