class SwapOldAndNewMagazineSource
SwapOldAndNewMagazine › WeaponStateBase
All members, including inherited
old magazine to inventory, new to left hand
stores old magazine in left hand somewhere in inventory (or drop to ground if necessary) and moves new magazine to left hand. on abort new magazine is dropped to ground.
Members 2
Magazine m_newMagazinemagazine that will be dropped on abort
ref InventoryLocation m_newDstMethods 5
override void OnEntry(WeaponEventBase e)References GameInventory.ClearInventoryReservationEx(), InventoryLocation.DumpToStringNullSafe(), Error()
Show 14 more
, Object.GetDebugName(), EntityAI.GetInventory(), new InventoryLocation(), InventoryLocation.IsValid(), LogManager.IsWeaponLogEnable(), GameInventory.LocationSyncMoveEntity(), WeaponStateBase.OnEntry(), InventoryLocation.SetAttachment(), Weapon_Base.ShowMagazine(), wpnDebugPrint(), m_newDst, m_newMagazine, WeaponEventBase.m_player, and WeaponStateBase.m_weaponoverride void OnAbort(WeaponEventBase e)override void OnExit(WeaponEventBase e)override bool SaveCurrentFSMState(ParamsWriteContext ctx)References Error(), Object.GetDebugName(), OptionalLocationWriteToContext()
Show 5 more
, WeaponStateBase.SaveCurrentFSMState(), Serializer.Write(), m_newDst, m_newMagazine, and WeaponStateBase.m_weaponoverride bool LoadCurrentFSMState(ParamsReadContext ctx, int version)References Error(), Object.GetDebugName(), WeaponStateBase.LoadCurrentFSMState()