Magazine (firearms)

From PZwiki
Revision as of 12:31, 30 January 2022 by Lextar (talk | contribs) (→‎Types)

Magazine (firearms)
The Game WorldItemsWeaponsFirearmsWeapon PartsMagazine (firearms)
Magazine (firearms)
Magazine (firearms)
Magazine (icon)
General
Category Normal
Encumbrance
Heavy Load
0.2
Part type Magazine
Technical details
Item ID See Types

A magazine stores ammo to feed into a firearm.

Usage

A magazine is required in many firearms to load more than one round at a time. Firearms that use magazines are much quicker to reload, as rather than having to load each individual round into the firearm, a single magazine needs to be inserted to fully reload. Each magazine can only be inserted into certain firearms, and loaded specific rounds.

Reloading

A magazine can be reloaded by either:

  • right-clicking the magazine in the player's inventory, then selecting "Insert X Bullets in Magazine".
  • equipping the firearm and holding R, then selecting "Load Bullets into Spare Magazine".

Both options will result in the player inserting one round at a time until the magazine is filled, unless interrupted.
Once filled, the magazine can then be inserted into the firearm. This can done by either:

  • equipping the firearm and tapping R (the fullest magazine will be inserted).
  • equipping the firearm and holding R, then selecting "Insert Magazine".
  • right-cliking the the magazine or firearm in the player's inventory, then selecting "Insert Magazine".

A magazine can be filled with rounds while walking (upright or crouched), but not running or sprinting.

Types

Icon Name Weapons Ammo Capacity Base ID
M9 Magazine 9mm Magazine M9 Pistol 9mm Round 15 Base.9mmClip
M1911 Auto Magazine .45 Auto Magazine M1911 Pistol .45 Auto Round 7 Base.45Clip
D-E Magazine .44 Magazine D-E Pistol .44 Magnum Round 8 Base.44Clip
MSR700 Magazine .223 Magazine none .223 Round 3 Base.223Clip
MSR788 Magazine .308 Magazine MSR788 Rifle .308 Round 3 Base.308Clip
M16 Magazine .556 Magazine M16 Assault Rifle 5.56mm Round 30 Base.556Clip
M14 Magazine .308 Magazine M14 Rifle .308 Round 20 Base.M14Clip

Code

From items_weapons.txt (Project Zomboid directory/media/scripts/)

M9 Magazine 9mm Magazine Retrieved: Build 41.52

    item 9mmClip
    {
        CanStack	=	FALSE,
        Weight	=	0.2,
        Type	=	Normal,
        DisplayName	=	9mm Magazine,
        Icon	=	BerettaClip,
        MaxAmmo = 15,
        AmmoType = Base.Bullets9mm,
        StaticModel = GunMagazine,
        GunType = Base.Pistol,
    }


M9 Magazine .45 Auto Magazine Retrieved: Build 41.52

    item 45Clip
    {
        CanStack	=	FALSE,
        Weight	=	0.2,
        Type	=	Normal,
        DisplayName	=	.45 Auto Magazine,
        Icon	=	BerettaClip,
        MaxAmmo = 7,
        AmmoType = Base.Bullets45,
        StaticModel = GunMagazine,
        GunType = Base.Pistol2,
    }


M9 Magazine .44 Magazine Retrieved: Build 41.52

    item 44Clip
    {
        CanStack	=	FALSE,
        Weight	=	0.2,
        Type	=	Normal,
        DisplayName	=	.44 Magazine,
        Icon	=	BerettaClip,
        MaxAmmo = 8,
        AmmoType = Base.Bullets44,
        StaticModel = GunMagazine,
        GunType = Base.Pistol3,
    }


M9 Magazine .223 Magazine Retrieved: Build 41.52

    item 223Clip
    {
        CanStack	=	FALSE,
        Weight	=	0.2,
        Type	=	Normal,
        DisplayName	=	.223 Magazine,
        Icon	=	BerettaClip,
        MaxAmmo = 3,
        AmmoType = Base.223Bullets,
        StaticModel = GunMagazine,
        /*GunType = Base.VarmintRifle,*/
    }


M9 Magazine .308 Magazine Retrieved: Build 41.52

    item 308Clip
    {
        CanStack	=	FALSE,
        Weight	=	0.2,
        Type	=	Normal,
        DisplayName	=	.308 Magazine,
        Icon	=	BerettaClip,
        MaxAmmo = 3,
        AmmoType = Base.308Bullets,
        StaticModel = GunMagazine,
        GunType = Base.HuntingRifle,
    }


M9 Magazine .556 Magazine Retrieved: Build 41.52

    item 556Clip
    {
        CanStack	=	FALSE,
        Weight	=	0.2,
        Type	=	Normal,
        DisplayName	=	.556 Magazine,
        Icon	=	BerettaClip,
        MaxAmmo = 30,
        AmmoType = Base.556Bullets,
        StaticModel = GunMagazine,
        GunType = Base.AssaultRifle,
    }


M9 Magazine .308 Magazine Retrieved: Build 41.52

    item M14Clip
    {
        CanStack	=	FALSE,
        Weight	=	0.2,
        Type	=	Normal,
        DisplayName	=	.308 Magazine,
        Icon	=	BerettaClip,
        MaxAmmo = 20,
        AmmoType = Base.308Bullets,
        StaticModel = GunMagazine,
        GunType = Base.AssaultRifle2,
    }


See also