Acoustic Guitar: Difference between revisions
(added CodeBox and condition) |
m (→Code) |
||
Line 50: | Line 50: | ||
| line = true | | line = true | ||
| start = 1590 | | start = 1590 | ||
| source = | | source = items_weapons.txt | ||
| retrieved = true | | retrieved = true | ||
| version = 41 | | version = 41 |
Revision as of 13:36, 29 December 2023
Acoustic Guitar | ||
---|---|---|
| ||
General | ||
Category | Instrument | |
Encumbrance | 2.3 | |
Equipped | Two-handed | |
Condition max. | 2 | |
Skill | Long Blunt | |
Attachment | Back | |
Damage | ||
Type | Blunt | |
Attack speed | 0.9 | |
Range | 0.61–1.3 tiles | |
Damage | 0.3–0.8 | |
Tree damage | 10 | |
Door damage | 3 | |
Knockback | 0.3 | |
Knockdown | 1.5 | |
Technical details | ||
Base ID | Base.GuitarAcoustic | |
An acoustic guitar is an improvised blunt weapon.
Usage
An acoustic guitar can be used as an improvised weapon. It has poor durability and damage, but can hit two zombies simultaneously.
It cannot be played as of Build 41.78.16.
Condition
The ice hockey stick has a maximum condition of 2. 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 (3 + 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.
Maintenance skill | Weapon skill | Condition lower chance |
---|---|---|
0 | 0 | 1/3 (33%) |
0 | 4 | 1/5 (20%) |
0 | 8 | 1/7 (14%) |
4 | 0 | 1/7 (14%) |
8 | 0 | 1/11 (9%) |
4 | 4 | 1/9 (11%) |
4 | 8 | 1/11 (9%) |
8 | 8 | 1/15 (7%) |
10 | 10 | 1/17 (6%) |
Distribution
Code
Source: ProjectZomboid\media\scripts\items_weapons.txt
item GuitarAcoustic
{
DisplayCategory = Instrument,
MaxRange = 1.3,
MinAngle = 0.8,
WeaponSprite = Guitar_Acoustic,
Type = Weapon,
MinimumSwingTime = 3.0,
KnockBackOnNoDeath = TRUE,
Categories = Blunt,
ConditionLowerChanceOneIn = 3,
Weight = 2.3,
SplatNumber = 1,
PushBackMod = 0.3,
SubCategory = Swinging,
ConditionMax = 2,
MaxHitCount = 3,
DoorDamage = 3,
IdleAnim = Idle_Weapon2,
SwingAnim = Bat,
DisplayName = Acoustic Guitar,
MinRange = 0.61,
SwingTime = 3.0,
HitAngleMod = -30,
SplatSize = 5,
KnockdownMod = 1.5,
SplatBloodOnNoDeath = TRUE,
Icon = GuitarAcoustic,
RunAnim = Run_Weapon2,
TwoHandWeapon = TRUE,
DoorHitSound = AcousticGuitarHit,
HitSound = AcousticGuitarHit,
HitFloorSound = AcousticGuitarHit,
BreakSound = AcousticGuitarBreak,
SwingSound = AcousticGuitarSwing,
TreeDamage = 10,
CriticalChance = 20,
CritDmgMultiplier = 2,
MinDamage = 0.3,
MaxDamage = 0.8,
BaseSpeed = 0.9,
AttachmentType = GuitarAcoustic,
}