5 Magazine m_dstMagazine;
9 ref WeaponEjectBullet_Cartridge
m_eject;
11 ref WeaponChambering_W4T m_w4t;
16 m_actionType = actionType;
22 m_w4t =
new WeaponChambering_W4T(
m_weapon,
this);
24 WeaponEventAnimBulletEject __be_ =
new WeaponEventAnimBulletEject;
25 WeaponEventAnimBulletShow __bs_ =
new WeaponEventAnimBulletShow;
26 WeaponEventAnimBulletInChamber __bc_ =
new WeaponEventAnimBulletInChamber;
52 int mi =
m_weapon.GetCurrentMuzzle();
53 string magazineTypeName =
m_weapon.GetChamberedCartridgeMagazineTypeName(mi);
56 if (
m_weapon.GetCartridgeInfo(mi, damage, type))
58 bool is_single_or_server = !
GetGame().IsMultiplayer() ||
GetGame().IsServer();
59 if (is_single_or_server)
64 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" WeaponRechamber - error, cannot prepare mag for catridge, magType=" + magazineTypeName);
68 m_eject.m_dstMagazine = m_dstMagazine;
90 if (!super.SaveCurrentFSMState(ctx))
93 if (!ctx.Write(m_dstMagazine))
95 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" WeaponRechamber.SaveCurrentFSMState: cannot save m_dstMagazine for weapon=" +
m_weapon);
100 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" WeaponRechamber.SaveCurrentFSMState: cannot save m_srcMagazine for weapon=" +
m_weapon);
108 if (!super.LoadCurrentFSMState(ctx, version))
111 if (!ctx.Read(m_dstMagazine))
113 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" WeaponRechamber.LoadCurrentFSMState: cannot read m_dstMagazine for weapon=" +
m_weapon);
118 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" WeaponRechamber.LoadCurrentFSMState: cannot read m_srcMagazine for weapon=" +
m_weapon);