3 override void CreateActionComponent()
41 if (item && item.IsHeavyBehaviour())
44 return player.CanEatAndDrink();
49 super.OnStart(action_data);
51 action_data.m_Player.TryHideItemInHands(
true);
56 action_data.m_Player.TryHideItemInHands(
false);
61 Param1<float> nacdata = Param1<float>.Cast(action_data.m_ActionComponent.GetACData());
63 action_data.m_Player.Consume(
null, amount,
EConsumeType.ENVIRO_POND);
68 if (action_data.m_Player.HasBloodyHands() && !action_data.m_Player.GetInventory().FindAttachment(
InventorySlots.GLOVES))
70 action_data.m_Player.SetBloodyHandsPenalty();
76 super.WriteToContext(ctx, action_data);
80 ctx.Write(action_data.m_Target.GetCursorHitPos());
89 super.ReadFromContext(ctx, action_recive_data);
94 if (!ctx.Read(cursorPosition))
97 action_recive_data.m_Target.SetCursorHitPos(cursorPosition);