Fix gut dog

Body was disappearing because it had no meat on it (yield = 0). Thanks
@AirwavesMan
This commit is contained in:
ebaydayz
2016-09-14 16:42:25 -04:00
parent b349150548
commit 815b54ec44
3 changed files with 3 additions and 2 deletions

View File

@@ -49,6 +49,7 @@
[NEW] You may set the buying or selling price of any item to -1 to disallow the respective trading action, only with config traders and advanced trading @icomrade [NEW] You may set the buying or selling price of any item to -1 to disallow the respective trading action, only with config traders and advanced trading @icomrade
[NEW] Salvage can now be disabled on locked vehicles via DZE_salvageLocked variable. #1757 @oiad [NEW] Salvage can now be disabled on locked vehicles via DZE_salvageLocked variable. #1757 @oiad
[NEW] You may now rearm pooks and other helicoper/vehicle pilot/driver weapons @icomrade [NEW] You may now rearm pooks and other helicoper/vehicle pilot/driver weapons @icomrade
[NEW] Dogs can now be gutted and yield 2xFoodDogRaw @ebaydayz
[CHANGED] Combattimeout now uses diag_tickTime instead of time. [CHANGED] Combattimeout now uses diag_tickTime instead of time.
[CHANGED] AmmoBoxSmall_556/762 is replaced with DZ_AmmoBoxUS/RU/EU/CZ and MedBox0 is replaced with DZ_MedBox (new model) [CHANGED] AmmoBoxSmall_556/762 is replaced with DZ_AmmoBoxUS/RU/EU/CZ and MedBox0 is replaced with DZ_MedBox (new model)

View File

@@ -378,7 +378,6 @@ class CfgSurvival {
}; };
class Cock: Hen {}; class Cock: Hen {};
class DZ_Fin: Default { class DZ_Fin: Default {
yield = 0;
rawfoodtype = "FoodDogRaw"; rawfoodtype = "FoodDogRaw";
}; };
class DZ_Pastor: DZ_Fin {}; class DZ_Pastor: DZ_Fin {};

View File

@@ -26,7 +26,8 @@ a_player_cooking = true;
for "_x" from 1 to _qty do { for "_x" from 1 to _qty do {
player removeMagazine _meat; player removeMagazine _meat;
player addMagazine _meatcooked; player addMagazine _meatcooked;
if !(_meat in magazines player) exitWith {format[localize "str_player_31",_text,localize "str_player_31_cook"] call dayz_rollingMessages;}; // "xMeat must be in your main inventory to cook it" - Doesn't make sense here since meat was already cooked successfully.
if !(_meat in magazines player) exitWith {};
}; };
format[localize "str_success_cooked",_qty,_text] call dayz_rollingMessages; format[localize "str_success_cooked",_qty,_text] call dayz_rollingMessages;
}; };