Change self transfuse timeout to 2 min default

Also properly handle the infection chance
This commit is contained in:
icomrade
2016-05-06 11:52:36 -04:00
parent 6ab855fd9d
commit 6e430bdb84
25 changed files with 25 additions and 25 deletions

View File

@@ -515,7 +515,7 @@ if (isNil "DZE_BuildOnRoads") then {DZE_BuildOnRoads = false;};
if (isNil "DZE_ConfigTrader") then {DZE_ConfigTrader = true;};
if (isNil "DZE_MissionLootTable") then {DZE_MissionLootTable = false;};
if (isNil "DZE_SelfTransfuse") then {DZE_SelfTransfuse = false;};
if (isNil "DZE_selfTransfuse_Values") then {DZE_selfTransfuse_Values = [12000,15,300];};
if (isNil "DZE_selfTransfuse_Values") then {DZE_selfTransfuse_Values = [12000,15,120];};
if (isNil "DZE_PlotPole") then {DZE_PlotPole = [30,45];};
DZE_checkNearbyRadius = DZE_PlotPole select 0;
DZE_maintainRange = ((DZE_PlotPole select 0)+20);

View File

@@ -105,7 +105,7 @@ while {r_doLoop and (_i < 12)} do {
_randomamount = round(random 200);
if (DZE_SelfTransfuse) then {
r_player_blood = (r_player_blood + (DZE_selfTransfuse_Values select 0)) min r_player_bloodTotal;
_TransfusionInfection = if ((DZE_selfTransfuse_Values select 1) < 0) then {false} else {((random (DZE_selfTransfuse_Values select 1)) < 1)};
_TransfusionInfection = if ((DZE_selfTransfuse_Values select 1) < 0) then {false} else {((random 100) < (DZE_selfTransfuse_Values select 1))};
} else {
r_player_blood = r_player_blood + 800 + _randomamount;
};