39 for (i = count - 1; i >= 0; i--)
50 for (i = 0; i < count; i++)
54 string type = arrow.GetType();
57 vector angle = arrow.GetLocalYawPitchRoll();
58 vector pos = arrow.GetLocalPosition();
67 int pivot = arrow.GetHierarchyPivot();
78 if (!ctx.
Read(version))
89 for (
int i = 0; i < count; i++)
104 if (!ctx.
Read(value))
110 if (!ctx.
Read(value))
116 if (!ctx.
Read(value))
122 if (!ctx.
Read(value))
128 if (!ctx.
Read(value))
134 if (!ctx.
Read(value))
147 if (!ctx.
Read(pivot))
164 arrow.SetQuantityToMinimum();
165 arrow.SetYawPitchRoll(angle);
166 m_Owner.AddChild(arrow, pivot);
const int ECE_DYNAMIC_PERSISTENCY
ref array< EntityAI > m_Arrows
void ArrowManagerBase(EntityAI owner)
bool Save(ParamsWriteContext ctx)
static ref map< int, typename > m_TypeHashTable
void ArrowManagerPlayer(EntityAI owner)
static GetArrowTypeFromHash(int hash)
bool Load(ParamsReadContext ctx)
static void InitializeHash()
static void AddArrowTypeToHash(string ArrowType)
proto bool Write(void value_out)
proto bool Read(void value_in)
static vector ArrayToVec(float arr[])
Convert static array of floats into a vector.
Serializer ParamsReadContext
proto native CGame GetGame()
Serializer ParamsWriteContext
proto native int Hash()
Returns hash of string.
proto native ToType()
Returns internal type representation. Can be used in runtime, or cached in variables and used for fas...