623 {
624 super.OnStoreSave(ctx);
625
626
627 int current_muzzle = GetCurrentMuzzle();
628 ctx.
Write(current_muzzle);
629
630
631 int mode_count = GetMuzzleCount();
632 ctx.
Write(mode_count);
633 for (int m = 0; m < mode_count; ++m)
634 ctx.
Write(GetCurrentMode(m));
635
637
639 m_fsm.OnStoreSave(ctx);
640 else
641 {
642 int dummy = 0;
644 }
645 }
proto bool Write(void value_out)
bool m_isJammed
weapon state machine
ref WeaponFSM m_fsm
weapon abilities