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
protected EntityAI m_Owner
protected const int VERSION
protected ref array< EntityAI > m_Arrows
void ArrowManagerPlayer(PlayerBase player)
static private void AddArrowTypeToHash(string ArrowType)
bool Load(ParamsReadContext ctx)
static private GetArrowTypeFromHash(int hash)
bool Save(ParamsWriteContext ctx)
static private void InitializeHash()
static private ref map< int, typename > m_TypeHashTable
Serialization general interface. Serializer API works with:
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.
proto native CGame GetGame()
proto native ToType()
Returns internal type representation. Can be used in runtime, or cached in variables and used for fas...
proto native int Hash()
Returns hash of string.