8 float quantityPerSecond = 1.0;
11 quantityPerSecond = bottle.GetLiquidEmptyRate() * bottle.GetLiquidThroughputCoef();
16 wetMax = clothing.GetWetMax();
20 float stepTime = stepSize / quantityPerSecond;
44 m_Text =
"#STR_Wet_Clothing";
66 Object targetObject = target.GetObject();
67 if (!targetObject || !item || item.IsDamageDestroyed())
74 if (targetItem.GetHierarchyParent())
77 if (targetItem.GetWet() >= targetItem.GetWetMax())
80 if (!item.IsLiquidPresent() || item.GetQuantity() <= item.GetQuantityMin() || item.GetIsFrozen())
83 int lt = item.GetLiquidType();
94 if (!container || !clothing)
97 if (container.GetQuantity() <= container.GetQuantityMin())
100 if (clothing.GetWet() >= clothing.GetWetMax())
112 if (!clothing)
return;
129 clothing.SetWet(
Math.
Clamp(clothing.GetWet() + wetGain, 0.0, clothing.GetWetMax()));
133 super.OnEndServer(action_data);
148 Param1<bool> play =
new Param1<bool>(enable);
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
void SetCommand(int command_uid)
bool UseAlternativeInterrupt(ActionData action_data)
void ActionContinuousBase()
ref ActionTarget m_Target
ref CABase m_ActionComponent
override void OnFinishProgressServer(ActionData action_data)
override bool HasAlternativeInterrupt()
void SendRPC(ActionData actionData, bool enable)
override bool ActionConditionContinue(ActionData action_data)
override void OnStartAnimationLoop(ActionData action_data)
void ActionWetClothingFromContainer()
override void OnEndAnimationLoop(ActionData action_data)
override bool UseAlternativeInterrupt(ActionData action_data)
override void OnEndServer(ActionData action_data)
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
static const float WET_PER_QUANTITY
override void CreateActionComponent()
bool m_RPCStopAlreadySent
override void EndActionComponent()
override bool IsClothing()
DayZPlayerConstants
defined in C++
const int LIQUID_GASOLINE
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.