actionforcefeed.c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. class ActionForceFeedCB : ActionContinuousBaseCB
  2. {
  3. override void CreateActionComponent()
  4. {
  5. m_ActionData.m_ActionComponent = new CAContinuousQuantityEdible(UAQuantityConsumed.EAT_NORMAL, UATimeSpent.DEFAULT);
  6. }
  7. }
  8. class ActionForceFeed: ActionForceConsume
  9. {
  10. void ActionForceFeed()
  11. {
  12. m_CallbackClass = ActionForceFeedCB;
  13. m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_FORCEFEED;
  14. m_FullBody = true;
  15. m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
  16. m_Text = "#feed";
  17. }
  18. override void CreateConditionComponents()
  19. {
  20. m_ConditionTarget = new CCTMan(UAMaxDistances.DEFAULT);
  21. m_ConditionItem = new CCINonRuined();
  22. }
  23. }
  24. //-----------------SMALL BITES VARIANT-------------------
  25. class ActionForceFeedSmallCB : ActionContinuousBaseCB
  26. {
  27. override void CreateActionComponent()
  28. {
  29. m_ActionData.m_ActionComponent = new CAContinuousQuantityEdible(UAQuantityConsumed.EAT_NORMAL,UATimeSpent.DEFAULT);
  30. }
  31. };
  32. class ActionForceFeedSmall: ActionForceConsume
  33. {
  34. void ActionForceFeed()
  35. {
  36. m_CallbackClass = ActionForceFeedSmallCB;
  37. m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_FORCEFEED;
  38. m_FullBody = true;
  39. m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
  40. }
  41. override void CreateConditionComponents()
  42. {
  43. m_ConditionTarget = new CCTMan(UAMaxDistances.DEFAULT);
  44. m_ConditionItem = new CCINonRuined();
  45. }
  46. override string GetText()
  47. {
  48. return "#feed";
  49. }
  50. }