class Mag_MP18_Drum32Rnd
Mag_MP18_Drum32Rnd › MagazineStorage › Magazine
Members 7
protected float m_AnimStart = 1.0at 1.0 the magazine is at max bullets
Referenced by UpdateAnimation()
protected float m_AnimEnd = 0.0at 0.0 the magazine is at 12 bullets and anim stops there as requested by designers
Referenced by UpdateAnimation()
protected float m_LastAnimPhase = 0.0protected float m_AmmoOffset = 12the number of bullets at which the animation reaches m_AnimEnd (e.g. animation finishes at 12 bullets)
Referenced by UpdateAnimation()
protected float m_MaxAmmoPercentage = 1.0 /(GetAmmoMax() - m_AmmoOffset)Referenced by UpdateAnimation()
protected string m_AnimationSource = "drum"protected string m_DrumLeverSoundset = "wpn_mp18_drum_mag_SoundSet"Referenced by UpdateAnimation()
Methods 3
override void UpdateAnimation()override void OnStoreSave(ParamsWriteContext ctx)override bool OnStoreLoad(ParamsReadContext ctx, int version)References ItemBase.OnStoreLoad(), Serializer.Read(), Entity.SetAnimationPhase()