mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-12 19:22:56 +03:00
@@ -1,4 +1,4 @@
|
||||
private ["_hunger","_thirst","_timeOut","_result","_randomSpot","_distance","_mylastPos","_lastTemp","_rnd","_listTalk","_messTimer","_PlayerNearby","_ZedsNearby","_saveTime"];
|
||||
private ["_hunger","_thirst","_timeOut","_result","_randomSpot","_distance","_mylastPos","_lastTemp","_rnd","_messTimer","_PlayerNearby","_ZedsNearby","_saveTime"];
|
||||
disableSerialization;
|
||||
_timeOut = 0;
|
||||
_messTimer = 0;
|
||||
@@ -216,8 +216,6 @@ while {1 == 1} do {
|
||||
if (!r_player_infected && !_isPZombie) then {
|
||||
// Infectionriskstart
|
||||
if (dayz_temperatur < ((80 / 100) * (dayz_temperaturnormal - dayz_temperaturmin) + dayz_temperaturmin)) then { //TeeChange
|
||||
private "_listTalk";
|
||||
_listTalk = _mylastPos nearEntities ["CAManBase",12];
|
||||
{
|
||||
if (_x getVariable["USEC_infected",false]) then {
|
||||
_rnd = (random 1) * (((dayz_temperaturnormal - dayz_temperatur) * (100 /(dayz_temperaturnormal - dayz_temperaturmin)))/ 50); //TeeChange
|
||||
@@ -229,7 +227,7 @@ while {1 == 1} do {
|
||||
};
|
||||
};
|
||||
};
|
||||
} count _listTalk;
|
||||
} count (_mylastPos nearEntities ["CAManBase",12]);
|
||||
if (dayz_temperatur < ((50 / 100) * (dayz_temperaturnormal - dayz_temperaturmin) + dayz_temperaturmin)) then { //TeeChange
|
||||
_rnd = (random 1) * (((dayz_temperaturnormal - dayz_temperatur) * (100 /(dayz_temperaturnormal - dayz_temperaturmin)))/ 25); //TeeChange
|
||||
if (_rnd < 0.05) then {
|
||||
|
||||
Reference in New Issue
Block a user