86 int ammoCount = GetAmmoCount();
103 super.OnStoreSave(ctx);
109 if(!super.OnStoreLoad(ctx, version))
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Wrapper class for managing sound through SEffectManager.
float m_AmmoOffset
the number of bullets at which the animation reaches m_AnimEnd (e.g. animation finishes at 12 bullets...
override void UpdateAnimation()
float m_MaxAmmoPercentage
string m_DrumLeverSoundset
float m_AnimStart
at 1.0 the magazine is at max bullets
override bool OnStoreLoad(ParamsReadContext ctx, int version)
float m_AnimEnd
at 0.0 the magazine is at 12 bullets and anim stops there as requested by designers
override void OnStoreSave(ParamsWriteContext ctx)
proto bool Write(void value_out)
proto bool Read(void value_in)
Serializer ParamsReadContext
Serializer ParamsWriteContext
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.