User:Calvy/sandbox2: Difference between revisions

From PZwiki
m (Distribution table update)
(New bot test)
Line 1: Line 1:
{{Header|Project Zomboid|Items|Weapons|Firearms|Ammo}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}}
{{Page version|41.78.16}}
{{Page version|41.78.16}}
{{Infobox item
{{Infobox item
|name=.223 Round
|name=Shovel
|model=RifleAmmo_Model.png
|model=Shovel_Model.png
|icon=RifleAmmo223loose.png
|icon=Shovel.png
|icon_name=.223 Round
|icon_name=Shovel
|model2=RifleAmmoBox_Model.png
|model2=Shovel02_Model.png
|icon2=RifleAmmo223.png
|icon2=Shovel2.png
|icon_name2=Box of .223 Rounds
|icon_name2=Shovel
|category=Ammo
<!--General-->
|weapon1=VarmintRifle
|category=Gardening
|weight=0.02
|weight=2.0
|weight_text=(single)
|equipped=Two-handed
|weight2=0.6
|attachment_type=Shovel
|weight_text2=(box)
|function=[[Farming]]
|capacity=40
|skill_type=Blunt
|item_id=Base.223Bullets
<!--Properties-->
|item_id2=Base.223Box
|metal_value=70
|condition_max=10
|condition_lower_chance=10
<!--Damage-->
|damge_type=Slash
|min_damage=0.8
|max_damage=1.9
|door_damage=10
|tree_damage=1
|min_range=0.61
|max_range=1.6
|base_speed=0.8
|push_back=0.5
|knockdown=2
|crit_chance=40
<!--Technical-->
|tag=ClearAshes
|tag2=DigGrave
|tag3=DigPlow
|tag4=TakeDirt
|item_id=Base.Shovel
|item_id2=Base.Shovel2
}}
}}
A '''.223 round''' is a type of ammo for [[firearms]].
A '''shovel''' is a [[farming]] tool or [[Weapons#Long Blunt|long blunt weapon]] that can move dirt, sand, and gravel. It can also [[Farming|till soil]].


==Usage==
==Usage==
The '''.223 round''' is chambered for the [[MSR700 Rifle|MSR700 rifle]].
===General===
Shovels can be used to dig graves to permanently dispose of up to 5 corpses and all the items the corpses are wearing/carrying. It also fulfills the same functions as a [[trowel]] or [[Hand Fork|hand fork]], in that they can be used to [[Farming|till]] grass and dirt tiles and to find [[worm]]s.


==Crafting==
===Moving tiles===
40 rounds can be merged into a '''box of .223 bullets''', being much lighter than individual rounds.
While the player has the shovel and an [[Sack|empty sack]] in their main inventory, a new contextual option will appear when ''right-clicking'' any one of these aforementioned tiles. This new option allows the player to move up to ''four'' tiles of dirt, sand, or gravel into a single sack, upon changing the sack to a [[Dirt Bag|dirt bag]], [[sandbag]] or [[Gravel Bag|gravel bag]], respectively. Each filled sack can then be "spilled" over any other pre-existing tile, changing it to the contents of the sack.
This ammunition can be disassembled to created [[gunpowder]].
 
{{Crafting/sandbox2
This option only works with the spade variant of the shovel, not the square head.
|gunpowder
 
|223_round
This mechanic is ideal when a specific location is desired for farming in which doesn't already contain dirt tiles. There generally isn't much use in spreading sand around, but areas that have been covered in gravel will not be overgrown by [[erosion]] and saplings cannot grow there, allowing for the creation of artificial driveways. Finally, bags full of sand or gravel can be used to set up [[Sandbag Wall|sandbag wall]]s and [[Gravel Bag Wall|gravel bag wall]]s, which offer some protection from [[Weapons#Firearms|gunfire]].
|box_of_.223_rounds
 
}}
===Weapon===
The shovel may also be used as a blunt melee weapon with a fast attack speed and intermediate damage. However, it is fairly fragile and caps at around 20-50 [[zombie]] kills before breaking, depending on the players' maintenance and long blunt skills, respectively.
 
==Condition==
The shovel has a maximum condition of 10. Its rate of degradation is influenced by the [[Skills|long blunt]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (10 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the long blunt and maintenance skills.
 
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|long blunt]] skills.
{{Durability weapon|10}}


==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
The loot distributions can be found in the table(s) below.


<!--BOT FLAG|223Bullets|41.78.16-->
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
<div class="togglebox theme-red">
! colspan="4" | Containers
    <div>223Bullets distribution
|-
        <span class="mw-customtoggle-togglebox-223Bullets" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div>
! Building/Room
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-223Bullets">
! Container
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
! style="width: 3.2em;" | Rolls
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
! style="width: 3.2em;" | Chance
    |+ {{ll|Containers}}
|-
    ! Building / Room
|SafehouseLoot
    ! Container
|[[counter]]
    ! Rolls
|4
    ! Chance
|6
    |-
|-
    | all
|all
    | {{ll|Outfit_PrivateMilitia}}
|[[toolcabinet]]
    | 1
|4
    | 10
|4
    |}
|-
</div>
|bedroom
    </div><div style="clear:both;"></div>
|[[crate]]
    </div></div><div class="toggle large mw-customtoggle-togglebox-223Bullets" title="{{int:show}}/{{int:hide}}"></div></div>
|1
<!--END BOT FLAG|223Bullets|41.78.16-->
|0.4
 
|-
<!--BOT FLAG|223Box|41.78.16-->
|closet
<div class="togglebox theme-red">
|[[crate]]
    <div>223Box distribution
|4
        <span class="mw-customtoggle-togglebox-223Box" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div>
|4
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-223Box">
|-
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
|drugshack
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
|[[counter]]
    |+ {{ll|Containers}}
|4
    ! Building / Room
|4
    ! Container
|-
    ! Rolls
|farmstorage
    ! Chance
|[[crate]]
    |-
|4
    | SafehouseLoot
|4
    | {{ll|crate}}
|-
    | 4
|firestorage
    | 10
|[[metal_shelves]]
    |-
|4
    | SafehouseLoot
|4
    | {{ll|metal_shelves}}
|-
    | 4
|garagestorage
    | 10
|[[counter]]
    |-
|4
    | SafehouseLoot
|4
    | {{ll|wardrobe}}
|-
    | 4
|gardenstore
    | 10
|[[metal_shelves]]
    |-
|4
    | SurvivorCache1
|4
    | {{ll|counter}}
|-
    | 4
|generalstore
    | 10
|[[metal_shelves]]
    |-
|4
    | SurvivorCache2
|4
    | {{ll|counter}}
|-
    | 4
|pawnshop
    | 10
|[[counter]]
    |-
|4
    | all
|4
    | {{ll|RifleCase1}}
|}
    | 1
    | 10
    |-
    | all
    | {{ll|RifleCase1}}
    | 1
    | 50
    |-
    | all
    | {{ll|RifleCase1}}
    | 1
    | 20
    |-
    | all
    | {{ll|RifleCase1}}
    | 1
    | 200
    |-
    | armysurplus
    | {{ll|displaycase}}
    | 4
    | 10
    |-
    | gunstore
    | {{ll|counter}}
    | 4
    | 10
    |-
    | gunstore
    | {{ll|displaycase}}
    | 4
    | 10
    |-
    | gunstore
    | {{ll|locker}}
    | 4
    | 20
    |-
    | gunstore
    | {{ll|locker}}
    | 4
    | 10
    |-
    | gunstore
    | {{ll|metal_shelves}}
    | 4
    | 10
    |-
    | gunstore
    | {{ll|metal_shelves}}
    | 4
    | 20
    |-
    | gunstore
    | {{ll|shelves}}
    | 4
    | 10
    |-
    | gunstore
    | {{ll|shelves}}
    | 4
    | 20
    |-
    | gunstorestorage
    | {{ll|crate}}
    | 4
    | 10
    |-
    | gunstorestorage
    | {{ll|crate}}
    | 4
    | 20
    |-
    | gunstorestorage
    | {{ll|locker}}
    | 4
    | 20
    |-
    | gunstorestorage
    | {{ll|locker}}
    | 4
    | 10
    |-
    | gunstorestorage
    | {{ll|metal_shelves}}
    | 4
    | 10
    |-
    | gunstorestorage
    | {{ll|metal_shelves}}
    | 4
    | 20
    |-
    | gunstorestorage
    | {{ll|militarycrate}}
    | 4
    | 20
    |-
    | gunstorestorage
    | {{ll|militarycrate}}
    | 4
    | 10
    |-
    | gunstorestorage
    | {{ll|shelves}}
    | 4
    | 10
    |-
    | gunstorestorage
    | {{ll|shelves}}
    | 4
    | 20
    |-
    | hunting
    | {{ll|displaycase}}
    | 4
    | 10
    |-
    | hunting
    | {{ll|locker}}
    | 4
    | 20
    |-
    | hunting
    | {{ll|locker}}
    | 4
    | 10
    |-
    | hunting
    | {{ll|metal_shelves}}
    | 4
    | 20
    |-
    | hunting
    | {{ll|metal_shelves}}
    | 4
    | 10
    |-
    | pawnshopoffice
    | {{ll|crate}}
    | 4
    | 10
    |-
    | pawnshopoffice
    | {{ll|crate}}
    | 4
    | 20
    |-
    | pawnshopoffice
    | {{ll|metal_shelves}}
    | 4
    | 20
    |-
    | pawnshopoffice
    | {{ll|metal_shelves}}
    | 4
    | 10
    |-
    | pawnshopoffice
    | {{ll|shelves}}
    | 4
    | 10
    |-
    | pawnshopoffice
    | {{ll|shelves}}
    | 4
    | 20
    |-
    | pawnshopstorage
    | {{ll|crate}}
    | 4
    | 10
    |-
    | pawnshopstorage
    | {{ll|crate}}
    | 4
    | 20
    |-
    | pawnshopstorage
    | {{ll|metal_shelves}}
    | 4
    | 10
    |-
    | pawnshopstorage
    | {{ll|metal_shelves}}
    | 4
    | 20
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-223Box" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|223Box|41.78.16-->.223 rounds can be found in houses, police stations, medical centers, [[vehicles]], and even on zombies.
 
==Trivia==
*.223 rounds seen in game are loosely based on the real life [[Wikipedia:.223 Remington|.223 Remington]] round. This round also served as the basis for [[5.56mm Round|5.56mm NATO]]. While practically considered interchangeable, the .223 Remington and 5.56mm NATO were tested and certified using different analysis and sampling procedures, resulting in the NATO cartridge reporting to having a higher cartridge pressure than the .223 Remington. While .223 Remington chambered rifles are routinely fired with 5.56mm NATO ammunition, and no instance of failure, damage, or injury have ever been determined to be caused by chambering 5.56mm in a .223 rifle, it is generally considered unsafe.


==Code==
==Code==
{{CodeBox|''.223 Round'' [[File:RifleAmmo223loose.png]]<br>
{{CodeBox|[[File:Shovel.png]] {{ID|Base.Shovel}}<br>
{{CodeSnip
{{CodeSnip
   | lang = java
   | lang = java
   | line = true
   | line = true
   | start = 6463
   | start = 1727
   | source = items_weapons.txt
   | source = items_weapons.txt
   | retrieved = true
   | retrieved = true
   | version = 41.78.16
   | version = 41.78.16
   | code =
   | code =
item 223Bullets
item Shovel
     {
     {
         DisplayCategory = Ammo,
         DisplayCategory = Gardening,
         Count = 5,
         Type = Weapon,
         Weight = 0.02,
        DisplayName = Shovel,
         AlwaysWelcomeGift = TRUE,
        Icon = Shovel,
         Type = Normal,
        Weight = 2.0,
         DisplayName = .223 Ammo,
        SubCategory    =    Swinging,
         Icon = RifleAmmo223loose,
        MinAngle = 0.85,
         MetalValue = 1,
        MaxRange = 1.6,
         WorldStaticModel = RifleAmmo,
        MinRange = 0.61,
    }
        PushBackMod = 0.5,
        HitAngleMod = -30.0,
        SwingAnim = Bat,
        MaxHitCount = 3,
        WeaponSprite = Shovel,
        IdleAnim = Idle_Weapon2,
        RunAnim = Run_Weapon2,
         Weight = 1.5,
        DoorDamage = 10,
        MinimumSwingTime = 2.1,
        SwingTime = 2.1,
        SwingAmountBeforeImpact = 0.02,
         ConditionLowerChanceOneIn = 10,
        ConditionMax = 10,
        Categories = Blunt,
        TwoHandWeapon = TRUE,
         BreakSound  =  ShovelBreak,
        DoorHitSound = ShovelHit,
HitSound = ShovelHit,
HitFloorSound = ShovelHit,
SwingSound = ShovelSwing,
         KnockdownMod = 2,
         KnockBackOnNoDeath = TRUE,
         MetalValue = 70,
        TreeDamage = 1,
         CriticalChance = 40,
        CritDmgMultiplier = 2,
        MaxDamage = 1.9,
        MinDamage = 0.8,
        BaseSpeed = 0.8,
      WeaponLength = 0.55,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = Shovel,
        Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
    }
}}
}}
''Box of .223 Bullets'' [[File:RifleAmmo223.png]]<br>
 
[[File:Shovel2.png]] {{ID|Base.Shovel2}}<br>
{{CodeSnip
{{CodeSnip
   | lang = java
   | lang = java
   | line = true
   | line = true
   | start = 6476
   | start = 1775
   | source = items_weapons.txt
   | source = items_weapons.txt
   | retrieved = true
   | retrieved = true
   | version = 41.78.16
   | version = 41.78.16
   | code =
   | code =
item 223Box
item Shovel2
     {
     {
         DisplayCategory = Ammo,
         DisplayCategory = Gardening,
         Weight = 0.6,
        Type = Weapon,
         AlwaysWelcomeGift = TRUE,
        DisplayName = Shovel,
         Type = Normal,
        Icon = Shovel2,
         DisplayName = Box of .223 Bullets,
         Weight = 2.0,
         Icon = RifleAmmo223,
        SubCategory    =    Swinging,
         MetalValue = 40,
        MinAngle = 0.85,
         WorldStaticModel = RifleAmmoBox,
        MaxRange = 1.6,
         PlaceOneSound = BoxOfRoundsPlaceOne,
         MinRange = 0.61,
         PlaceMultipleSound = BoxOfRoundsPlaceAll,
        PushBackMod = 0.5,
    }
        HitAngleMod = -30.0,
        SwingAnim = Bat,
        MaxHitCount = 3,
        WeaponSprite = Shovel02,
        IdleAnim = Idle_Weapon2,
        RunAnim = Run_Weapon2,
        Weight = 1.5,
        DoorDamage = 5,
        MinimumSwingTime = 2.1,
        SwingTime = 2.1,
        SwingAmountBeforeImpact = 0.02,
        ConditionLowerChanceOneIn = 10,
        ConditionMax = 10,
        Categories = Blunt,
        TwoHandWeapon = TRUE,
         BreakSound  =  ShovelBreak,
        DoorHitSound = ShovelHit,
        HitSound = ShovelHit,
        HitFloorSound = ShovelHit,
        SwingSound = ShovelSwing,
         KnockdownMod = 2,
         KnockBackOnNoDeath = TRUE,
         MetalValue = 70,
        TreeDamage = 1,
        CriticalChance = 40,
         CritDmgMultiplier = 2,
        MinDamage = 0.8,
        MaxDamage = 1.9,
        BaseSpeed = 0.8,
      WeaponLength = 0.55,
         DamageCategory = Slash,
         DamageMakeHole = TRUE,
        AttachmentType = Shovel,
        Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
    }
}}
}}
}}
}}


==See also==
==See also==
*[[5.56mm Round]]
*[[Trowel]]
*[[.308 Round]]
*[[Hand Fork]]
*[[Shotgun Shells]]
*[[Farming]]
{{Navbox items|firearms}}
 
{{Navbox items|blunt}}
 
 
 
[[Category:Farming tools]]
[[Category:Tools]]

Revision as of 15:40, 23 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Shovel
Shovel Model.png
Shovel02 Model.png
General
Category
Gardening
Encumbrance
Moodle Icon HeavyLoad.png
2.0
Equipped
Two-handed
Slot attached
Back
Function
Skill
Properties
Max condition
10
Condition lower chance
10
Performance
Damage
0.8–1.9
Door damage
10
Tree damage
1
Range
0.61–1.6
Attack speed
0.8
Knockback
0.5
Knockdown
2
Crit chance
40%
Technical
Item ID
Base.Shovel
Base.Shovel2

A shovel is a farming tool or long blunt weapon that can move dirt, sand, and gravel. It can also till soil.

Usage

General

Shovels can be used to dig graves to permanently dispose of up to 5 corpses and all the items the corpses are wearing/carrying. It also fulfills the same functions as a trowel or hand fork, in that they can be used to till grass and dirt tiles and to find worms.

Moving tiles

While the player has the shovel and an empty sack in their main inventory, a new contextual option will appear when right-clicking any one of these aforementioned tiles. This new option allows the player to move up to four tiles of dirt, sand, or gravel into a single sack, upon changing the sack to a dirt bag, sandbag or gravel bag, respectively. Each filled sack can then be "spilled" over any other pre-existing tile, changing it to the contents of the sack.

This option only works with the spade variant of the shovel, not the square head.

This mechanic is ideal when a specific location is desired for farming in which doesn't already contain dirt tiles. There generally isn't much use in spreading sand around, but areas that have been covered in gravel will not be overgrown by erosion and saplings cannot grow there, allowing for the creation of artificial driveways. Finally, bags full of sand or gravel can be used to set up sandbag walls and gravel bag walls, which offer some protection from gunfire.

Weapon

The shovel may also be used as a blunt melee weapon with a fast attack speed and intermediate damage. However, it is fairly fragile and caps at around 20-50 zombie kills before breaking, depending on the players' maintenance and long blunt skills, respectively.

Condition

The shovel has a maximum condition of 10. Its rate of degradation is influenced by the long blunt and maintenance skills. The chance of losing durability can be simplified to the following formula: 1 in (10 + maintenanceMod × 2). Where "maintenanceMod" is calculated using the long blunt and maintenance skills.

Below is an example of the chance of losing durability at varying levels of the maintenance and long blunt skills.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Condition lower chance
0 0 1/10 (10%)
0 4 1/12 (8%)
0 8 1/14 (7%)
4 0 1/14 (7%)
8 0 1/18 (6%)
4 4 1/16 (6%)
4 8 1/18 (6%)
8 8 1/22 (5%)
10 10 1/24 (4%)

Distribution

The loot distributions can be found in the table(s) below.

Containers
Building/Room Container Rolls Chance
SafehouseLoot counter 4 6
all toolcabinet 4 4
bedroom crate 1 0.4
closet crate 4 4
drugshack counter 4 4
farmstorage crate 4 4
firestorage metal_shelves 4 4
garagestorage counter 4 4
gardenstore metal_shelves 4 4
generalstore metal_shelves 4 4
pawnshop counter 4 4

Code

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

Shovel.png Base.Shovel
Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item Shovel
    {
        DisplayCategory = Gardening,
        Type				=			Weapon,
        DisplayName			=		Shovel,
        Icon				=		Shovel,
        Weight				=		2.0,
        SubCategory    		=     Swinging,
        MinAngle			=			0.85,
        MaxRange 			= 			1.6,
        MinRange 			= 			0.61,
        PushBackMod			=			0.5,
        HitAngleMod			=			-30.0,
        SwingAnim			=			Bat,
        MaxHitCount 		=			3,
        WeaponSprite	=	Shovel,
        IdleAnim			=			Idle_Weapon2,
        RunAnim				=			Run_Weapon2,
        Weight				=			1.5,
        DoorDamage			=			10,
        MinimumSwingTime 	= 			2.1,
        SwingTime			=			2.1,
        SwingAmountBeforeImpact = 		0.02,
        ConditionLowerChanceOneIn 	= 	10,
        ConditionMax 		= 			10,
        Categories 			=			Blunt,
        TwoHandWeapon = TRUE,
        BreakSound  =   ShovelBreak,
        DoorHitSound = ShovelHit,
		HitSound = ShovelHit,
		HitFloorSound = ShovelHit,
		SwingSound = ShovelSwing,
        KnockdownMod	=	2,
        KnockBackOnNoDeath	=	TRUE,
        MetalValue = 70,
        TreeDamage = 1,
        CriticalChance	=	40,
        CritDmgMultiplier = 2,
        MaxDamage			=			1.9,
        MinDamage			=			0.8,
        BaseSpeed = 0.8,
       	WeaponLength = 0.55,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = Shovel,
        Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
     }

Shovel2.png Base.Shovel2
Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item Shovel2
    {
        DisplayCategory = Gardening,
        Type				=			Weapon,
        DisplayName			=		Shovel,
        Icon				=		Shovel2,
        Weight				=		2.0,
        SubCategory    		=     Swinging,
        MinAngle			=			0.85,
        MaxRange 			= 			1.6,
        MinRange 			= 			0.61,
        PushBackMod			=			0.5,
        HitAngleMod			=			-30.0,
        SwingAnim			=			Bat,
        MaxHitCount 		=			3,
        WeaponSprite	=	Shovel02,
        IdleAnim			=			Idle_Weapon2,
        RunAnim				=			Run_Weapon2,
        Weight				=			1.5,
        DoorDamage			=			5,
        MinimumSwingTime 	= 			2.1,
        SwingTime			=			2.1,
        SwingAmountBeforeImpact = 		0.02,
        ConditionLowerChanceOneIn 	= 	10,
        ConditionMax 		= 			10,
        Categories 			=			Blunt,
        TwoHandWeapon = TRUE,
        BreakSound  =   ShovelBreak,
        DoorHitSound = ShovelHit,
        HitSound = ShovelHit,
        HitFloorSound = ShovelHit,
        SwingSound = ShovelSwing,
        KnockdownMod	=	2,
        KnockBackOnNoDeath	=	TRUE,
        MetalValue = 70,
        TreeDamage = 1,
        CriticalChance	=	40,
        CritDmgMultiplier = 2,
        MinDamage			=			0.8,
        MaxDamage			=			1.9,
        BaseSpeed = 0.8,
       	WeaponLength = 0.55,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = Shovel,
        Tags = ClearAshes;DigGrave;DigPlow;TakeDirt,
     }

See also