class MagazineSource
Magazine › InventoryItemSuper
Derived classes
View all 65 descendants
- MagazineStorage
- Mag_12gaSnaploader_2Rnd
- Mag_1911_7Rnd
- Mag_308WinSnaploader_2Rnd
- Mag_357Speedloader_6Rnd
- Mag_762x54Snaploader_2Rnd
- Mag_AK101_30Rnd
- Mag_AK74_30Rnd
- Mag_AK74_45Rnd
- Mag_AKM_30Rnd
- Mag_AKM_Drum75Rnd
- Mag_AKM_Palm30Rnd
- Mag_Arrows_Quiver
- Mag_Aug_30Rnd
- Mag_Bolts_Quiver
- Mag_CLIP762x39_10Rnd
- Mag_CLIP762x54_5Rnd
- Mag_CLIP9x19_10Rnd
- Mag_CMAG_10Rnd
- Mag_CMAG_20Rnd
- Mag_CMAG_30Rnd
- Mag_CMAG_40Rnd
- Mag_CZ527_5rnd
- Mag_CZ550_10rnd
- Mag_CZ550_4rnd
- Mag_CZ61_20Rnd
- Mag_CZ75_15Rnd
- Mag_Dartgun_CO2
- Mag_Deagle_9rnd
- Mag_FAL_20Rnd
- Mag_FAMAS_25Rnd
- Mag_FNX45_15Rnd
- Mag_Glock_15Rnd
- Mag_Groza_20Rnd
- Mag_IJ70_8Rnd
- Mag_M14_10Rnd
- Mag_M14_20Rnd
- Mag_M249_Box200Rnd
- Mag_MakarovPB_8Rnd
- Mag_MKII_10Rnd
- Mag_MP5_15Rnd
- Mag_MP5_30Rnd
- Mag_P1_8Rnd
- Mag_PM73_15Rnd
- Mag_PM73_25Rnd
- Mag_PP19_64Rnd
- Mag_Ruger1022_10Rnd
- Mag_Ruger1022_15Rnd
- Mag_Ruger1022_30Rnd
- Mag_Saiga_5Rnd
- Mag_Saiga_8Rnd
- Mag_Saiga_Drum20Rnd
- Mag_SCARH_20Rnd
- Mag_Scout_5Rnd
- Mag_ShockCartridge
- Mag_SSG82_5rnd
- Mag_STANAG_30Rnd
- Mag_STANAG_60Rnd
- Mag_STANAGCoupled_30Rnd
- Mag_SV98_10Rnd
- Mag_SVD_10Rnd
- Mag_UMP_25Rnd
- Mag_VAL_20Rnd
- Mag_Vikhr_30Rnd
- Mag_VSS_10Rnd
Constructors 1
void Magazine()Members 4
protected float m_ManipulationDamageMethods 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 ServerSetAmmoCount(int ammoCount)Sets magazine ammo count
Referenced by SetupSpawnedItem(), ActionCraftBolts.OnFinishProgressServer(), ActionCraftBoltsFeather.OnFinishProgressServer()
Show 18 more
, Ammunition_Base.SetQuantityToMinimum(), DayZPlayerUtils.HandleDropCartridge(), DayZPlayerUtils.HandleStoreCartridge(), DayZPlayerUtils.SelectStoreCartridge(), ItemBase.OnAction(), ServerAddAmmoCount(), ServerSetAmmoMax(), SplitItem(), SplitItemToInventoryLocation(), MiscGameplayFunctions.CreateMagazinePiles(), MiscGameplayFunctions.CreateMagazinePilesDispersed(), MiscGameplayFunctions.CreateMagazinePilesFromBullet(), MiscGameplayFunctions.TransferEntityVariables(), PlayerSpawnHandler.ApplyAttributes(), RecipeBase.ApplyModificationsIngredients(), RecipeBase.ApplyModificationsResults(), UnboxLambda.CopyOldPropertiesToNew(), and Weapon_Base.SpawnAttachedMagazine()proto native void LocalSetAmmoCount(int ammoCount)acquires cartridge(damage, type) to magazine
- out
ammoDamage damageof the ammo- out
cartTypeName typename of the ejected ammo
Returns: true if acquired
Referenced by pushToChamberFromAttachedMagazine()
stores cartridge(damage, type) to magazine
- in
ammoDamage damageof the cartridge- in
cartTypeName typename of the stored cartridge
Returns: true if stored
Referenced by ejectBulletAndStoreInMagazine()
queries cartridge(damage, type) info at specified index
- in
cartIndex indexof the cartridge.- out
ammoDamage damageof the cartridge- out
cartTypeName typename of the cartridge
Returns: true if index valid
modifies cartridge(damage, type) info at specified index
- in
cartIndex indexof the cartridge.- in
ammoDamage damageof the cartridge- in
cartTypeName typename of the cartridge
Returns: true if index valid
modifies cartridge damage info at specified index
- in
cartIndex indexof the cartridge.- in
ammoDamage damageof the cartridge
Returns: true if index valid
References new AmmoData(), map.Contains(), map.Get()
Show 3 more
, map.Insert(), m_AmmoData, and AmmoData.m_IsValidvoid ServerAddAmmoCount(int ammoCount)Adds magazine ammo, MP safe
void LocalAddAmmoCount(int ammoCount)int GetAmmoMax()returns max rounds for this mag (returns "count" config value)
References ItemBase.m_Count
Referenced by SetupSpawnedItem(), ActionCraftBolts.OnFinishProgressServer(), ActionCraftBoltsFeather.OnFinishProgressServer()
Show 17 more
, ActionEmptyMagazine.OnExecuteServer(), ActionLoadMagazine.CanLoadMagazine(), ActionLoadMagazineQuick.CanLoadMagazine(), CAContinuousLoadMagazine.Setup(), ItemBase.CanBeCombined(), ItemBase.OnAction(), CanAddCartridges(), CombineItems(), IsCombineAll(), IsFullQuantity(), LocalSetAmmoMax(), ServerSetAmmoMax(), PlayerSpawnHandler.ApplyAttributes(), QuantityConversions.GetItemQuantity(), QuantityConversions.GetItemQuantityMax(), Weapon_Base.SpawnAttachedMagazine(), and WeaponEjectAllMuzzles.OnEntry()void ServerSetAmmoMax()set max rounds for this mag
void LocalSetAmmoMax()Referenced by MiscGameplayFunctions.UnlimitedAmmoDebugCheck()
override bool CanBeSplit()Referenced by Magazine()
float GetChanceToJam()Referenced by Pistol_Base.GetChanceToJam(), PM73Rak_Base.GetChanceToJam(), RifleBoltFree_Base.GetChanceToJam()
Show 1 more
, RifleBoltLock_Base.GetChanceToJam()override void SplitItemToInventoryLocation(notnull InventoryLocation dst)override void SplitItem(PlayerBase player)void ApplyManipulationDamage()override bool IsFullQuantity()Referenced by FirearmActionLoadMultiBulletQuick.Start()
override void OnInventoryEnter(Man player)References Class.Cast(), PlayerBase.GetWeaponManager(), ItemBase.OnInventoryEnter()
Show 1 more
, WeaponManager.OnMagazineInventoryEnter()override void OnInventoryExit(Man player)References Class.Cast(), PlayerBase.GetWeaponManager(), ItemBase.OnInventoryExit()
Show 1 more
, WeaponManager.OnMagazineInventoryExit()References ItemBase.EEHealthLevelChanged(), GetAmmoCount(), Object.GetHealthLevelValue()
Show 1 more
, SetCartridgeDamageAtIndex()override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)References GetAmmoCount(), ItemBase.GetDebugActions(), array.Insert()
Show 3 more
, new TSelectableActionInfoWithColor(), FadeColors.LIGHT_GREY, and FadeColors.REDoverride bool OnAction(int action_id, Man player, ParamsReadContext ctx)References Class.CastTo(), string.Format(), GetAmmoCount()
Show 4 more
, GetCartridgeAtIndex(), CGame.IsServer(), Debug.Log(), and ItemBase.OnAction()override bool CanBeFSwaped()