Smashed Bottle: Difference between revisions

From PZwiki
m (→‎top: New infobox upgrade - initial test)
(→‎Code: CodeBox update)
Line 31: Line 31:
A smashed bottle is a short blade weapon with low durability and damage. Like many short bladed weapons, it can perform the jaw stab attack which will instantly kill a [[zombie]] when attacking from close proximity.
A smashed bottle is a short blade weapon with low durability and damage. Like many short bladed weapons, it can perform the jaw stab attack which will instantly kill a [[zombie]] when attacking from close proximity.


== Code ==
==Code==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=55}}
| {{CodeSnip
<pre> item SmashedBottle
  | lang = java
MaxRange = 0.8,
  | line = false
WeaponSprite = SmashedBottle,
  | source = items_weapons.txt
MinAngle = 0.65,
  | retrieved = true
Type = Weapon,
  | version = 41
MinimumSwingTime = 4,
  | incver = 55
KnockBackOnNoDeath = FALSE,
  | code =
SwingAmountBeforeImpact = 0.02,
item SmashedBottle
Categories = SmallBlade,
{
ConditionLowerChanceOneIn = 1,
    MaxRange               = 0.8,
Weight = 1,
    WeaponSprite           = SmashedBottle,
SplatNumber = 3,
    MinAngle               = 0.65,
PushBackMod = 0.3,
    Type                   = Weapon,
SubCategory = Stab,
    MinimumSwingTime       = 4,
CloseKillMove = Jaw_Stab,
    KnockBackOnNoDeath     = FALSE,
ConditionMax = 3,
    SwingAmountBeforeImpact = 0.02,
MaxHitCount = 1,
    Categories             = SmallBlade,
DoorDamage = 0,
    ConditionLowerChanceOneIn= 1,
SwingAnim = Stab,
    Weight                 = 1,
DisplayName = Smashed Bottle,
    SplatNumber             = 3,
MinRange = 0.61,
    PushBackMod             = 0.3,
SwingTime = 4,
    SubCategory             = Stab,
KnockdownMod = 2,
    CloseKillMove           = Jaw_Stab,
SplatBloodOnNoDeath = FALSE,
    ConditionMax           = 3,
Icon = BrokenBottle,
    MaxHitCount             = 1,
BreakSound = SmashedBottleBreak,
    DoorDamage             = 0,
TreeDamage = 0,
    SwingAnim               = Stab,
CriticalChance = 5,
    DisplayName             = Smashed Bottle,
CritDmgMultiplier = 5,
    MinRange               = 0.61,
MinDamage = 0.2,
    SwingTime               = 4,
MaxDamage = 0.5,
    KnockdownMod           = 2,
BaseSpeed = 1.4,
    SplatBloodOnNoDeath     = FALSE,
WeaponLength = 0.2,
    Icon                   = BrokenBottle,
DamageCategory = Slash,
    BreakSound             = SmashedBottleBreak,
DamageMakeHole = TRUE,
    TreeDamage             = 0,
HitFloorSound = SmashedBottleHit,
    CriticalChance         = 5,
ImpactSound = SmashedBottleHit,
    CritDmgMultiplier       = 5,
DoorHitSound = SmashedBottleHit,
    MinDamage               = 0.2,
HitSound = SmashedBottleHit,
    MaxDamage               = 0.5,
SwingSound = SmashedBottleSwing,
    BaseSpeed               = 1.4,
</pre>
    WeaponLength           = 0.2,
    DamageCategory         = Slash,
    DamageMakeHole         = TRUE,
    HitFloorSound           = SmashedBottleHit,
    ImpactSound             = SmashedBottleHit,
    DoorHitSound           = SmashedBottleHit,
    HitSound               = SmashedBottleHit,
    SwingSound             = SmashedBottleSwing,
}
  }}
}}


{{Navbox_weapons}}
{{Navbox_weapons}}

Revision as of 10:17, 31 January 2024

Template:Header/sandbox2

Spiffo controlyourself.png
This page was last updated for an older version (41.55).
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.
Smashed Bottle
SmashedBottle Model.png
General
Category
Weapon
Encumbrance
Moodle Icon HeavyLoad.png
1
Equipped
One-handed
Properties
Max condition
3
Performance
Damage
0.2–0.5
Range
0.61–0.8
Knockback
0.3
Knockdown
2
Special ability
Jaw Stab
Technical
Item ID
SmashedBottle

A smashed bottle is a short blade weapon.

Usage

A smashed bottle is a short blade weapon with low durability and damage. Like many short bladed weapons, it can perform the jaw stab attack which will instantly kill a zombie when attacking from close proximity.

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.55
item SmashedBottle
{
    MaxRange                = 0.8,
    WeaponSprite            = SmashedBottle,
    MinAngle                = 0.65,
    Type                    = Weapon,
    MinimumSwingTime        = 4,
    KnockBackOnNoDeath      = FALSE,
    SwingAmountBeforeImpact = 0.02,
    Categories              = SmallBlade,
    ConditionLowerChanceOneIn= 1,
    Weight                  = 1,
    SplatNumber             = 3,
    PushBackMod             = 0.3,
    SubCategory             = Stab,
    CloseKillMove           = Jaw_Stab,
    ConditionMax            = 3,
    MaxHitCount             = 1,
    DoorDamage              = 0,
    SwingAnim               = Stab,
    DisplayName             = Smashed Bottle,
    MinRange                = 0.61,
    SwingTime               = 4,
    KnockdownMod            = 2,
    SplatBloodOnNoDeath     = FALSE,
    Icon                    = BrokenBottle,
    BreakSound              = SmashedBottleBreak,
    TreeDamage              = 0,
    CriticalChance          = 5,
    CritDmgMultiplier       = 5,
    MinDamage               = 0.2,
    MaxDamage               = 0.5,
    BaseSpeed               = 1.4,
    WeaponLength            = 0.2,
    DamageCategory          = Slash,
    DamageMakeHole          = TRUE,
    HitFloorSound           = SmashedBottleHit,
    ImpactSound             = SmashedBottleHit,
    DoorHitSound            = SmashedBottleHit,
    HitSound                = SmashedBottleHit,
    SwingSound              = SmashedBottleSwing,
}