3 protected float m_TargetUnits;
4 protected float m_SpentQuantity;
5 protected float m_ItemQuantity;
6 protected float m_ItemMaxQuantity;
7 protected float m_SourceQuantity;
8 protected float m_QuantityFilledPerSecond;
13 m_DefaultTimeToComplete = time_to_complete_action;
18 super.Setup(action_data);
22 m_SpentUnits =
new Param1<float>(0);
26 m_SpentUnits.param1 = 0;
30 Class.CastTo(itm, action_data.m_MainItem);
31 m_ItemQuantity = itm.GetAmmoCount();
32 m_ItemMaxQuantity = itm.GetAmmoMax();
34 Class.CastTo(trg, action_data.m_Target.GetObject() );
35 m_SourceQuantity = trg.GetAmmoCount();
36 m_TargetUnits = itm.GetAmmoMax();