actionwashhandssnow.c 659 B

12345678910111213141516171819202122232425
  1. class ActionWashHandsSnowCB : ActionContinuousBaseCB
  2. {
  3. override void CreateActionComponent()
  4. {
  5. m_ActionData.m_ActionComponent = new CAContinuousRepeat(UATimeSpent.WASH_HANDS);
  6. }
  7. }
  8. class ActionWashHandsSnow : ActionWashHandsWater
  9. {
  10. void ActionWashHandsSnow()
  11. {
  12. m_CallbackClass = ActionWashHandsSnowCB;
  13. m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_WASHHANDSPOND;
  14. m_FullBody = true;
  15. m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
  16. m_Text = "#wash_hands";
  17. }
  18. override void CreateConditionComponents()
  19. {
  20. m_ConditionItem = new CCINone();
  21. m_ConditionTarget = new CCTWaterSurfaceEx(UAMaxDistances.DEFAULT, LIQUID_SNOW);
  22. }
  23. }