5.56mm Round: Difference between revisions

From PZwiki
m (Minor cleanups)
(→‎Code: code box update)
Line 40: Line 40:


==Code==
==Code==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
''5.56mm Round'' [[File:RifleAmmo308loose.png]]
''5.56mm Round'' [[File:RifleAmmo308loose.png]]
{{Retrieved|version=41|incver=65}}
{{CodeBox
<pre>
| {{CodeSnip
    item 556Bullets
  | lang = java
    {
  | line = true
        DisplayCategory = Ammo,
  | start = 0
        Count = 5,
  | source = items_weapons.txt
        Weight = 0.025,
  | retrieved = true
        AlwaysWelcomeGift = TRUE,
  | version = 41
        Type = Normal,
  | incver = 65
        DisplayName = .556 Ammo,
  | code =
        Icon = RifleAmmo308loose,
item 556Bullets
        MetalValue = 1,
{
        WorldStaticModel = RifleAmmo,
  DisplayCategory   = Ammo,
    }
  Count             = 5,
</pre>
  Weight           = 0.025,
 
  AlwaysWelcomeGift = TRUE,
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
  Type             = Normal,
  DisplayName       = .556 Ammo,
  Icon             = RifleAmmo308loose,
  MetalValue       = 1,
  WorldStaticModel = RifleAmmo,
}
  }}
}}


''Box of 5.56mm Rounds'' [[File:RifleAmmo308.png]]
''Box of 5.56mm Rounds'' [[File:RifleAmmo308.png]]
{{Retrieved|version=41|incver=65}}
{{CodeBox
<pre>
| {{CodeSnip
    item 556Box
  | lang = java
    {
  | line = true
        DisplayCategory = Ammo,
  | start = 0
        Weight = 1.2,
  | source = items_weapons.txt
        AlwaysWelcomeGift = TRUE,
  | retrieved = true
        Type = Normal,
  | version = 41
        DisplayName = Box of .556 Bullets,
  | incver = 65
        Icon = RifleAmmo308,
  | code =
        MetalValue = 40,
item 556Box
        WorldStaticModel = RifleAmmoBox,
{
    }
  DisplayCategory   = Ammo,
</pre>
  Weight           = 1.2,
  AlwaysWelcomeGift = TRUE,
  Type             = Normal,
  DisplayName       = Box of .556 Bullets,
  Icon             = RifleAmmo308,
  MetalValue       = 40,
  WorldStaticModel = RifleAmmoBox,
}
  }}
}}


==See also==
==See also==

Revision as of 09:19, 8 January 2024

The Game WorldItemsWeaponsFirearmsAmmo5.56mm Round
5.56mm Round
5.56mm Round
5.56mm Round Box of 5.56mm Rounds
General
Category Ammo
Weapon(s) M16 Assault Rifle
Loose Ammo
Encumbrance
Heavy Load
0.025
Count 5
Box of Ammo
Encumbrance
Heavy Load
1.2
Contents 60 Rounds
Technical details
Item ID (Loose) Base.556Bullets
Item ID (Boxed) Base.556Box

The 5.56mm Round is a type of ammo for firearms.

Usage

5.56mm Rounds are used in the M16 Assault Rifle. They can be loaded into a 5.56mm Magazine.

Crafting

60 rounds can be merged into a box of 5.56mm rounds, saving weight compared to carrying the bullets individually

This ammunition can be disassembled to create gunpowder.

Product XP gained Skill(s) Recipe Ingredient 1
GunpowderJar.png
Gunpowder
0 XP none
(consumed)
RifleAmmo308loose.png
5.56 Round x60
0 XP none Box of 5.56 Rounds
Box of 5.56 Rounds
(consumed)
Box of 5.56 Rounds
Box of 5.56 Rounds
0 XP none RifleAmmo308loose.png
5.56 Round x60
(consumed)

Distribution

5.56mm Rounds can be found very rarely in police stations, gun stores, military buildings, and on zombies.

Code

5.56mm Round RifleAmmo308loose.png

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.65
item 556Bullets
{
  DisplayCategory   = Ammo,
  Count             = 5,
  Weight            = 0.025,
  AlwaysWelcomeGift = TRUE,
  Type              = Normal,
  DisplayName       = .556 Ammo,
  Icon              = RifleAmmo308loose,
  MetalValue        = 1,
  WorldStaticModel  = RifleAmmo,
}

Box of 5.56mm Rounds RifleAmmo308.png

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.65
item 556Box
{
  DisplayCategory   = Ammo,
  Weight            = 1.2,
  AlwaysWelcomeGift = TRUE,
  Type              = Normal,
  DisplayName       = Box of .556 Bullets,
  Icon              = RifleAmmo308,
  MetalValue        = 40,
  WorldStaticModel  = RifleAmmoBox,
}

See also