Infection changes

This commit is contained in:
icomrade
2014-06-25 12:08:55 -04:00
parent d6c118c331
commit fc515d4407
2 changed files with 7 additions and 1 deletions

View File

@@ -3,6 +3,8 @@
[FIXED] Fixed client crash when player has chainsaw due to corrupt RTM file. @vbawol
[CHANGED] An infection chance of -1 disables self-transfusion infection. 0 is always infected. (DZE_selfTransfuse_Values) @icomrade
[INFO] dayz_epoch1051.bikey found in client files "Keys" folder.
[INFO] Server admins should add requiredSecureId = 2; to their server.cfg to prevent uid spoofing.
[INFO] Models/textures by Paul Tomany. @Sequisha.

View File

@@ -9,7 +9,11 @@ if (_unit == player) then {
_selfTransValues = _this select 1;
r_player_blood = r_player_blood + (_selfTransValues select 0);
if (r_player_blood > 12000) then {r_player_blood = 12000;};
_TransfusionInfection = ((random (_selfTransValues select 1)) < 1);
if ((_selfTransValues select 1) < 0) then {
_TransfusionInfection = false;
} else {
_TransfusionInfection = ((random (_selfTransValues select 1)) < 1);
};
} else {
r_player_blood = r_player_bloodTotal;
};