mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-20 02:16:29 +03:00
0.93
+ moved biomeat to a new badfood category, fixes mixed up cooking of raw meats. + few changes from community dev build 020613
This commit is contained in:
@@ -14,6 +14,8 @@ _hasfooditem = _item in magazines player;
|
||||
|
||||
//_rawfood = _item in ["FoodSteakRaw","FoodmeatRaw","FoodbeefRaw","FoodmuttonRaw","FoodchickenRaw","FoodrabbitRaw","FoodbaconRaw"];
|
||||
//_cookedfood = _item in ["FoodSteakCooked","FoodmeatCooked","FoodbeefCooked","FoodmuttonCooked","FoodchickenCooked","FoodrabbitCooked","FoodbaconCooked"];
|
||||
|
||||
_badfood = _item in badfood;
|
||||
_rawfood = _item in meatraw;
|
||||
_cookedfood = _item in meatcooked;
|
||||
|
||||
@@ -38,6 +40,11 @@ if ( _rawfood and (random 15 < 1)) then {
|
||||
player setVariable["USEC_infected",true];
|
||||
};
|
||||
|
||||
if ( _badfood and (random 7 < 1)) then {
|
||||
r_player_infected = true;
|
||||
player setVariable["USEC_infected",true];
|
||||
};
|
||||
|
||||
[player,"eat",0,false] call dayz_zombieSpeak;
|
||||
|
||||
if (!_rawfood and !_cookedfood) then{
|
||||
|
||||
Reference in New Issue
Block a user