DayZ 1.24
Loading...
Searching...
No Matches
CAContinuousLoadMagazine.c
Go to the documentation of this file.
2{
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;
9 //protected ref Param1<float> m_SpentUnits;
10
15
17 {
18 super.Setup(action_data);
20 if (!m_SpentUnits)
22 else
23 m_SpentUnits.param1 = 0;
24
26 Class.CastTo(itm, action_data.m_MainItem);
27 m_ItemQuantity = itm.GetAmmoCount();
28 m_ItemMaxQuantity = itm.GetAmmoMax();
30 Class.CastTo(trg, action_data.m_Target.GetObject());
31 m_SourceQuantity = trg.GetAmmoCount();
32 m_TargetUnits = itm.GetAmmoMax();
33 }
34};
void CAContinuousLoadMagazine(float time_to_complete_action)
override void Setup(ActionData action_data)
ref Param1< float > m_SpentUnits
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.