Dumbbell: Difference between revisions

From PZwiki
m (Updated distribution table)
m (→‎Code: Codebox)
Line 79: Line 79:
==Code==
==Code==
{{CodeBox
{{CodeBox
| {{CodeSnip
|{{CodeSnip
   | lang = java
   | lang = java
   | line = true
   | line = true
  | start = 1326
   | source = items_weapons.txt
   | source = items_weapons.txt
   | retrieved = true
   | retrieved = true
   | version = 41.50
   | version = 41.78.16
  | code =
item DumbBell
item DumbBell
{
    {
  MaxRange                 = 1,
        DisplayCategory = Sports,
  WeaponSprite             = DumbBell,
        MaxRange = 1,
  MinAngle                 = 0.65,
        WeaponSprite = DumbBell,
  Type                     = Weapon,
        MinAngle = 0.65,
  MinimumSwingTime         = 3,
        Type = Weapon,
  KnockBackOnNoDeath       = TRUE,
        MinimumSwingTime = 3,
  SwingAmountBeforeImpact   = 0.02,
        KnockBackOnNoDeath = TRUE,
  Categories               = SmallBlunt,
        SwingAmountBeforeImpact = 0.02,
  ConditionLowerChanceOneIn = 25,
        Categories = SmallBlunt,
  Weight                   = 5,
        ConditionLowerChanceOneIn = 25,
  SplatNumber               = 1,
        Weight = 5,
  PushBackMod               = 0.5,
        SplatNumber = 1,
  SubCategory               = Swinging,
        PushBackMod = 0.5,
  ConditionMax             = 10,
        SubCategory = Swinging,
  MaxHitCount               = 1,
        ConditionMax = 10,
  DoorDamage               = 9,
        MaxHitCount = 1,
  CanBarricade             = TRUE,
        DoorDamage = 9,
  SwingAnim                 = Bat,
        CanBarricade = TRUE,
  DisplayName               = DumbBell,
        SwingAnim = Bat,
  MinRange                 = 0.61,
        DisplayName = DumbBell,
  SwingTime                 = 3,
        MinRange = 0.61,
  KnockdownMod             = 0,
        SwingTime = 3,
  SplatBloodOnNoDeath       = TRUE,
        KnockdownMod = 0,
  Icon                     = Dumbbell,
        SplatBloodOnNoDeath = TRUE,
  RunAnim                   = Run_Weapon2,
        Icon = Dumbbell,
  IdleAnim                 = Idle_Weapon2,
        RunAnim = Run_Weapon2,
   BreakSound                = BreakMetalItem,
        IdleAnim = Idle_Weapon2,
  TreeDamage               = 0,
        BreakSound  =   DumbBellBreak,
  MetalValue               = 25,
        DoorHitSound = DumbBellHit,
  CriticalChance           = 25,
HitSound = DumbBellHit,
  CritDmgMultiplier         = 3,
HitFloorSound = DumbBellHit,
  MinDamage                 = 0.5,
SwingSound = DumbBellSwing,
  MaxDamage                 = 1,
        TreeDamage =   0,
  BaseSpeed                 = 0.90,
        MetalValue = 25,
  WeaponLength             = 0.2,
        CriticalChance = 25,
}
        CritDmgMultiplier = 3,
  }}
        MinDamage = 0.5,
        MaxDamage = 1,
        BaseSpeed = 0.90,
        WeaponLength = 0.2,
    }  
}}
}}
}}



Revision as of 02:19, 25 March 2024

Spiffo controlyourself.png
This page was last updated for an older version (41.50).
The current stable version is 41.78.16, released 2022-12-12, so information on this page may be inaccurate. Help get this page updated by adding any missing content. [edit]
Please update the version after updating the page.
Dumbbell
Dumbbell Model.png
General
Category
Tool
Encumbrance
Moodle Icon HeavyLoad.png
5
Equipped
One-handed
Function
Performance
Damage
0.5–1
Range
0.61–1
Knockback
0.5
Knockdown
0
Technical
Item ID
DumbBell

The Dumbbell is a one-handed short blunt weapon and piece of exercise equipment.

Usage

Pros and cons

Pros Cons
  • Decent durability.
  • Can be used for exercise.
  • Doubles as a weapon.
  • Extremely heavy

Fitness

For main article, see Exercise

While the player has a dumbbell in their inventory, they can perform two new exercises, the dumbbell press and the bicep curl. Both of these focus on the arms and are 80% more efficient as an arm exercise than their weightless counterpart, pushups.


Distribution

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

Containers
Building/Room Container Rolls Chance
closet crate 4 1
crate 4 2
crate 4 1
gym metal_shelves 4 1
metal_shelves 4 2

Code

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

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item DumbBell
    {
        DisplayCategory = Sports,
        MaxRange	=	1,
        WeaponSprite	=	DumbBell,
        MinAngle	=	0.65,
        Type	=	Weapon,
        MinimumSwingTime	=	3,
        KnockBackOnNoDeath	=	TRUE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	SmallBlunt,
        ConditionLowerChanceOneIn	=	25,
        Weight	=	5,
        SplatNumber	=	1,
        PushBackMod	=	0.5,
        SubCategory	=	Swinging,
        ConditionMax	=	10,
        MaxHitCount	=	1,
        DoorDamage	=	9,
        CanBarricade	=	TRUE,
        SwingAnim	=	Bat,
        DisplayName	=	DumbBell,
        MinRange	=	0.61,
        SwingTime	=	3,
        KnockdownMod	=	0,
        SplatBloodOnNoDeath	=	TRUE,
        Icon	=	Dumbbell,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        BreakSound  =   DumbBellBreak,
        DoorHitSound = DumbBellHit,
		HitSound = DumbBellHit,
		HitFloorSound = DumbBellHit,
		SwingSound = DumbBellSwing,
        TreeDamage  =   0,
        MetalValue = 25,
        CriticalChance	=	25,
        CritDmgMultiplier = 3,
        MinDamage	=	0.5,
        MaxDamage	=	1,
        BaseSpeed = 0.90,
        WeaponLength = 0.2,
     }

See also