Smashed Bottle: Difference between revisions
VaileasysBot (talk | contribs) 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== | ||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = false | |||
| source = items_weapons.txt | |||
| retrieved = true | |||
| version = 41 | |||
| incver = 55 | |||
| code = | |||
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, | |||
} | |||
}} | |||
}} | |||
{{Navbox_weapons}} | {{Navbox_weapons}} |
Revision as of 10:17, 31 January 2024
Smashed Bottle
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 snippet! This section contains source code from Project ZomboidShow / Hide
Source: ProjectZomboid\media\scripts\items_weapons.txt
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,
}