ActionForceDrink.c
class ActionForceDrinkCB : ActionContinuousBaseCB
{
override void CreateActionComponent()
{
m_ActionData.m_ActionComponent = new CAContinuousQuantityEdible(UAQuantityConsumed.DRINK,UATimeSpent.DEFAULT);
}
};
class ActionForceDrink: ActionForceConsume
{
void ActionForceDrink()
{
m_CallbackClass = ActionForceDrinkCB;
m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_EMPTY_VESSEL;
m_FullBody = true;
m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
m_Text = "#give_drink";
}
override void CreateConditionComponents()
{
m_ConditionTarget = new CCTMan(UAMaxDistances.DEFAULT);
m_ConditionItem = new CCINonRuined;
}
override protected void PlaySound(PlayerBase player)
{
if (player)
player.RequestSoundEventEx(EPlayerSoundEventID.FORCE_DRINK);
}
};