Advertisement
Guest User

Untitled

a guest
Aug 11th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. private["_hasKnife","_qty","_item","_text","_string","_type","_loop","_meat","_timer"];
  2. _item = _this select 3;
  3. _hasKnife = "ItemKnife" in items player;
  4. _type = typeOf _item;
  5. _hasHarvested = _item getVariable["meatHarvested",false];
  6.  
  7. player removeAction s_player_butcher;
  8. s_player_butcher = -1;
  9.  
  10. if (_hasKnife && !_hasHarvested) then {
  11.  
  12. _loop = true;
  13. _rnd = random(100);
  14.  
  15. player playActionNow "Medic";
  16. [player,"gut",0,false] call dayz_zombieSpeak;
  17. _item setVariable["meatHarvested",true,true];
  18.  
  19. if (_rnd > 90) then {
  20. r_player_inpain = true;
  21. player setVariable["USEC_inPain",true,true];
  22. r_player_blood = r_player_blood - 500;
  23. cutText ["You have accidentally cut your finger.", "PLAIN DOWN"];
  24. };
  25.  
  26. _qty = (random 3);
  27.  
  28. _id = [player,50,true,(getPosATL player)] spawn player_alertZombies;
  29.  
  30. dayzHumanity = [player,-100];
  31. _id = dayzHumanity spawn player_humanityChange;
  32.  
  33. _array = [_item,_qty];
  34. _meat = "FoodSteakRaw";
  35.  
  36. for "_x" from 1 to _qty do {
  37. _item addMagazine "FoodSteakRaw";
  38. _result = [player,_meat] call BIS_fnc_invAdd;
  39. if (_result) then {
  40.  
  41. } else {
  42. cutText ["You didn't have enough room to store the meat.", "PLAIN DOWN"];
  43. _x = _qty;
  44. }
  45.  
  46. };
  47.  
  48. sleep 8;
  49. cutText ["You have gutted a human your hands are covered with blood, you feel your humanity lower.", "PLAIN DOWN"];
  50. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement