Machete: Difference between revisions
m (→Buildings: minor) |
(added CodeBox, Condition and other fixes/updates/adjustments) |
||
Line 13: | Line 13: | ||
|equipped=One-handed | |equipped=One-handed | ||
|condition_max=13 | |condition_max=13 | ||
|skill_type=Long Blade | |||
|attachment_type=BigBlade | |||
<!--DAMAGE--> | <!--DAMAGE--> | ||
|type= | |type=Slash | ||
| | |base_speed=1 | ||
|min_range=0.61 | |min_range=0.61 | ||
|max_range=1.23 | |max_range=1.23 | ||
Line 24: | Line 25: | ||
|knockdown=2 | |knockdown=2 | ||
<!--TECHNICAL DETAILS--> | <!--TECHNICAL DETAILS--> | ||
|class_name=Machete | |class_name=Base.Machete | ||
}}A '''machete''' is a one-handed long blade weapon | }}A '''machete''' is a one-handed long blade [[Weapons|weapon]]. | ||
==Usage== | ==Usage== | ||
{{pros-cons | {{pros-cons | ||
<!-- #PROS# - below this line --> | <!-- #PROS# - below this line --> | ||
|pros1 | |pros1 = Deals more damage than most melee weapons. | ||
|pros2 = Good durability. | |||
| | |pros3 = Longer range than most one-handed melee weapons. | ||
| | |||
<!-- #CONS# - below this line --> | <!-- #CONS# - below this line --> | ||
|cons1 = Hard to level up long blade skill due to the machete and [[Katana]] being the only long blade weapons. | |cons1 = Hard to level up long blade skill due to the machete and [[Katana]] being the only long blade weapons. | ||
Line 42: | Line 42: | ||
Can be used to remove bushes. | Can be used to remove bushes. | ||
=== | ===Weapon=== | ||
The machete can hit up to 2 enemies at a time (with multi-hit enabled), dealing a maximum of 3 damage to enemies (unless a critical hit) from up to 1.23 tiles away at an attack speed of 1. | |||
The weapon can be attached to the character's back for quick access and weight reduction. | |||
==Condition== | |||
The machete has a maximum condition of 13. Its rate of degradation is influenced by the [[Skills|long blade]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (25 + maintenanceMod × 2)</code>. Where "maintenanceMod" is calculated using the long blade and maintenance skills.<br> | |||
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|long blade]] skills. | |||
{{Durability weapon|25}} | |||
==Distribution== | ==Distribution== | ||
Line 63: | Line 70: | ||
==Code== | ==Code== | ||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 354 | |||
| source = weapons.txt | |||
| retrieved = true | |||
| version = 41 | |||
| incver = 78.16 | |||
| code = | |||
item Machete | |||
{ | { | ||
DisplayCategory = Weapon, | |||
MaxRange = 1.23, | MaxRange = 1.23, | ||
WeaponSprite = Machete, | WeaponSprite = Machete, | ||
Line 105: | Line 121: | ||
DamageMakeHole = TRUE, | DamageMakeHole = TRUE, | ||
AttachmentType = BigBlade, | AttachmentType = BigBlade, | ||
Tags = CutPlant, | Tags = CutPlant;SharpKnife, | ||
DoorHitSound = MacheteHit, | DoorHitSound = MacheteHit, | ||
HitSound = MacheteHit, | HitSound = MacheteHit, | ||
Line 111: | Line 127: | ||
BreakSound = MacheteBreak, | BreakSound = MacheteBreak, | ||
SwingSound = MacheteSwing, | SwingSound = MacheteSwing, | ||
} | } | ||
}} | |||
}} | |||
==See also== | ==See also== |
Revision as of 13:20, 29 December 2023
Machete | ||
---|---|---|
| ||
General | ||
Category | Weapon | |
Encumbrance | 2 | |
Equipped | One-handed | |
Condition max. | 13 | |
Skill | Long Blade | |
Attachment | Back | |
Damage | ||
Type | Slash | |
Attack speed | 1 | |
Range | 0.61–1.23 tiles | |
Damage | 2–3 | |
Knockback | 0.3 | |
Knockdown | 2 | |
Technical details | ||
Base ID | Base.Machete | |
A machete is a one-handed long blade weapon.
Usage
Pros | Cons |
---|---|
|
|
Tool-usage
Can be used to remove bushes.
Weapon
The machete can hit up to 2 enemies at a time (with multi-hit enabled), dealing a maximum of 3 damage to enemies (unless a critical hit) from up to 1.23 tiles away at an attack speed of 1.
The weapon can be attached to the character's back for quick access and weight reduction.
Condition
The machete has a maximum condition of 13. Its rate of degradation is influenced by the long blade and maintenance skills. The chance of losing durability can be simplified to the following formula: 1 in (25 + maintenanceMod × 2)
. Where "maintenanceMod" is calculated using the long blade and maintenance skills.
Below is an example of the chance of losing durability at varying levels of the maintenance and long blade skills.
Maintenance skill | Weapon skill | Condition lower chance |
---|---|---|
0 | 0 | 1/25 (4%) |
0 | 4 | 1/27 (4%) |
0 | 8 | 1/29 (3%) |
4 | 0 | 1/29 (3%) |
8 | 0 | 1/33 (3%) |
4 | 4 | 1/31 (3%) |
4 | 8 | 1/33 (3%) |
8 | 8 | 1/37 (3%) |
10 | 10 | 1/39 (3%) |
Distribution
Buildings
- The best method of finding a machete is looting hardware stores. The West Point and Riverside shopping district each have a hardware store.
- Pawn shops and military surplus stores have a high chance of spawning machetes. Both can be found in Louisville.
- Machetes can spawn in metal shelves in warehouses.
- Machetes can also be found inside barricaded buildings.
Zombies
- After 20 days survived, a machete can be rarely found impaled in some zombies.
- Can be found impaled in a rare zombie dressed as the Friday the Thirteenth antagonist Jason Voorhees; regardless of days survived.
Gallery
Code
Source: ProjectZomboid\media\scripts\weapons.txt
item Machete
{
DisplayCategory = Weapon,
MaxRange = 1.23,
WeaponSprite = Machete,
MinAngle = 0.7,
Type = Weapon,
SwingSound = MacheteSwing,
HitFloorSound = MacheteHit,
ImpactSound = MacheteHit,
DoorHitSound = MacheteHit,
HitSound = MacheteHit,
MinimumSwingTime = 4,
KnockBackOnNoDeath = FALSE,
SwingAmountBeforeImpact = 0.02,
Categories = LongBlade,
ConditionLowerChanceOneIn = 25,
Weight = 2,
SplatNumber = 2,
PushBackMod = 0.3,
SubCategory = Swinging,
ConditionMax = 13,
MaxHitCount = 2,
DoorDamage = 10,
SwingAnim = Bat,
DisplayName = Machete,
MinRange = 0.61,
SwingTime = 4,
KnockdownMod = 2,
SplatBloodOnNoDeath = FALSE,
Icon = Machete,
TreeDamage = 10,
CriticalChance = 20,
CritDmgMultiplier = 5,
MinDamage = 2,
MaxDamage = 3,
BaseSpeed = 1,
WeaponLength = 0.3,
DamageCategory = Slash,
DamageMakeHole = TRUE,
AttachmentType = BigBlade,
Tags = CutPlant;SharpKnife,
DoorHitSound = MacheteHit,
HitSound = MacheteHit,
HitFloorSound = MacheteHit,
BreakSound = MacheteBreak,
SwingSound = MacheteSwing,
}