DIFF

class MagazineSource

Magazine InventoryItemSuper

Constructors 1

Members 4

protected static ref map<string, ref AmmoData> m_AmmoData
Referenced by GetAmmoData(), and Magazine()
ref array<string> m_CompatiableAmmo
Referenced by IsCompatiableAmmo(), and Magazine()
ref array<float> m_ChanceToJam
Referenced by GetChanceToJam(), and Magazine()
protected float m_ManipulationDamage

Methods 38

proto native int GetAmmoCount()

Gets magazine ammo count

Referenced by ActionCraftBolts.OnFinishProgressServer(), ActionCraftBoltsFeather.OnFinishProgressServer(), ActionEmptyMagazine.CanEmpty()
Show 43 more, ActionEmptyMagazine.OnExecuteServer(), ActionLoadMagazine.CanLoadMagazine(), ActionLoadMagazineQuick.CanLoadMagazine(), ActionSortAmmoPile.SortAmmo(), Ammunition_Base.GetWeightSpecialized(), CAContinuousEmptyMagazine.Setup(), CAContinuousLoadMagazine.Setup(), FirearmActionLoadMultiBulletQuick.Start(), InspectMenuNew.UpdateItemInfoQuantity(), ItemActionsWidget.SetWeaponQuantity(), ItemBase.CanBeCombined(), ItemBase.DoAmmoExplosion(), ItemBase.EEKilled(), ItemBase.OnAction(), CanAddCartridges(), CanBeSplit(), CombineItems(), EEHealthLevelChanged(), GetDebugActions(), GetWeightSpecialized(), IsCombineAll(), IsFullQuantity(), LocalAddAmmoCount(), OnAction(), ServerAddAmmoCount(), SplitItem(), SplitItemToInventoryLocation(), MiscGameplayFunctions.TransferEntityVariables(), MiscGameplayFunctions.UnlimitedAmmoDebugCheck(), PlayerBase.GetMagazineToReload(), QuantityConversions.GetItemQuantity(), QuantityConversions.GetItemQuantityText(), RecipeBase.ApplyModificationsIngredients(), RecipeBase.CheckConditions(), VicinitySlotsContainer.GetItemQuantity(), VicinitySlotsContainer.GetItemQuantityText(), WeaponEjectAllMuzzles.OnEntry(), WeaponGuardHasAmmo.GuardCondition(), WeaponGuardHasAmmoInEvent.GuardCondition(), WeaponGuardHasAmmoInLoopedState.GuardCondition(), WeaponManager.CompareMagazinesSuitability(), WeaponManager.GetNextPreparedMagazine(), and WeaponManager.GetPreparedMagazine()
proto native void LocalSetAmmoCount(int ammoCount)
proto bool LocalAcquireCartridge(out float dmg, out string cartTypeName)

acquires cartridge(damage, type) to magazine

out ammoDamage
damage of the ammo
out cartTypeName
type name of the ejected ammo

Returns: true if acquired

proto native bool LocalStoreCartridge(float ammoDamage, string cartTypeName)

stores cartridge(damage, type) to magazine

in ammoDamage
damage of the cartridge
in cartTypeName
type name of the stored cartridge

Returns: true if stored

proto bool GetCartridgeAtIndex(int cartIndex, out float dmg, out string cartTypeName)

queries cartridge(damage, type) info at specified index

in cartIndex
index of the cartridge.
out ammoDamage
damage of the cartridge
out cartTypeName
type name of the cartridge

Returns: true if index valid

proto bool SetCartridgeAtIndex(int cartIndex, out float dmg, out string cartTypeName)

modifies cartridge(damage, type) info at specified index

in cartIndex
index of the cartridge.
in ammoDamage
damage of the cartridge
in cartTypeName
type name of the cartridge

Returns: true if index valid

proto bool SetCartridgeDamageAtIndex(int cartIndex, float dmg)

modifies cartridge damage info at specified index

in cartIndex
index of the cartridge.
in ammoDamage
damage of the cartridge

Returns: true if index valid

void ServerAddAmmoCount(int ammoCount)

Adds magazine ammo, MP safe

void LocalAddAmmoCount(int ammoCount)
void ServerSetAmmoMax()

set max rounds for this mag

void LocalSetAmmoMax()
override bool IsMagazine()

Returns if this entity is Magazine

override bool CanBeSplit()
bool InitReliability(out array<float> reliability_array)
Referenced by Magazine()
override bool IsFullQuantity()
override bool IsCombineAll(ItemBase other_item, bool use_stack_max = false)
References Class.Cast(), GetAmmoCount(), GetAmmoCount()
Show 1 more, GetAmmoMax()
override void OnInventoryEnter(Man player)
override void OnInventoryExit(Man player)
override void EEHealthLevelChanged(int oldLevel, int newLevel, string zone)
override bool OnAction(int action_id, Man player, ParamsReadContext ctx)
override bool CanBeFSwaped()