+ 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:
vbawol
2013-02-06 19:38:47 -06:00
parent d21edefbd6
commit 0ed1223c5e
11 changed files with 180 additions and 150 deletions

View File

@@ -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{