Keytar: Difference between revisions

From PZwiki
(Added the weapon code information from the project zomboid "items_weapons.txt")
 
(Page contents largely auto-generated using ItemZed)
Line 1: Line 1:
== Code ==
<!-- This page has been auto-generated using ItemZed with a custom Lua script -->
===Item===
{{Languages}}
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{Header|The Game World|Items|Weapons|Melee Weapons|version=Version 41|incver=68}}
{{Retrieved|version=41|incver=55}}
{{Infobox weapon
<nowiki>
|display_name=Keytar
     item Keytar
|image=Keytar_Model.png
 
|image_width=200px
|alternate_image=Keytar.png
|alternate_name=Keytar
|alternate_link=
<!--GENERAL-->
|category=Instrument
|weight=2
|equipped=One-handed
|condition_max=2
|attachment_type=Guitar
<!--DAMAGE-->
|type=Blunt
|skill_type=Long Blunt
|base_speed=1.2
|min_range=0.58
|max_range=1.25
|min_damage=0.2
|max_damage=0.7
|crit_chance=20
|crit_multiplier=2
|tree_damage=10
|door_damage=3
|push_back=0.3
|knockdown=1.5
<!--TECHNICAL DETAILS-->
|ingredients=
|class_name=Base.Keytar
}}
A <b>keytar</b> is a long blunt melee [[weapon]].
==Usage==
===Weapon===
The keytar can attack up to 2 enemies at a time dealing a maximum of 0.7 damage to enemies (unless a critical hit) from up to 1.25 [[tiles]] away at an attack speed of 1.2.
===Breaking doors===
It can be used to bash down [[Door|doors]], dealing 3 damage per hit.
===Chopping trees===
It is effective at chopping down [[Tree|trees]], dealing 10 damage per hit.
==Condition==
The keytar has a maximum condition of 2. Its rate of degradation is influenced by the [[Skills|long blunt]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (3 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the long blunt and maintenance skills.<br>
Below is an example of the chance of losing durability at varying levels of [[Skills|maintenance]] and [[Skills|long blunt]] levels.
{{Durability weapon|3}}
===Repairing===
Materials that can be used to repair the keytar, based on first time repairing. Repairing the keytar makes following repairs less likely to succeed and can, if repaired numerous times, cause reduced durability instead of increased.
<!-- {{Fixing weapon
|item=Keytar
|woodglue=2
|woodgluerepairs=20
|woodgluechance=35
|woodwork=2
|ducttape=2
|ducttaperepairs=10
|ducttapechance=95
|glue=2
|gluerepairs=10
|gluechance=95
|scotchtape=4
|scotchtaperepairs=10
|scotchtapechance=95
}}-->
==Distribution==
TODO
<!-- ==Trivia== -->
==Gallery==
<gallery>
File:Keytar.png|Item icon
File:Keytar_Model.png|Item model
</gallery>
==Code==
<b><i>From items_weapons.txt (Project Zomboid directory/media/scripts/)</i></b>
{{Retrieved|version=41|incver=68}}
<pre>   item Keytar
     {
        DisplayCategory = Instrument,
         MaxRange = 1.25,
         MaxRange = 1.25,
         MinAngle = 0.72,
         MinAngle = 0.72,
Line 35: Line 106:
         BreakSound  =  KeytarBreak,
         BreakSound  =  KeytarBreak,
         DoorHitSound = KeytarHit,
         DoorHitSound = KeytarHit,
HitSound = KeytarHit,
HitSound = KeytarHit,
HitFloorSound = KeytarHit,
HitFloorSound = KeytarHit,
SwingSound = KeytarSwing,
SwingSound = KeytarSwing,
         TreeDamage  =  10,
         TreeDamage  =  10,
         CriticalChance = 20,
         CriticalChance = 20,
Line 45: Line 116:
         BaseSpeed = 1.2,
         BaseSpeed = 1.2,
         AttachmentType = Guitar,
         AttachmentType = Guitar,
        {</nowiki>
    }</pre>
 
==See also==
*[[Acoustic Guitar]]
*[[Electric Guitar]]
*[[Electric Bass]]
 
{{Navbox weapons}}
{{clear}}
<!-- Do not add anything beneath this line, except categories.-->

Revision as of 14:27, 16 April 2022


Keytar
Keytar
Keytar
General
Category Instrument
Encumbrance
Heavy Load
2
Equipped One-handed
Condition max. 2
Skill Long Blunt
Attachment Back
Damage
Type Blunt
Attack speed 1.2
Range 0.58–1.25 tiles
Damage 0.2–0.7
Crit chance 20%
Tree damage 10
Door damage 3
Knockback 0.3
Knockdown 1.5
Technical details
Base ID Base.Keytar

A keytar is a long blunt melee weapon.

Usage

Weapon

The keytar can attack up to 2 enemies at a time dealing a maximum of 0.7 damage to enemies (unless a critical hit) from up to 1.25 tiles away at an attack speed of 1.2.

Breaking doors

It can be used to bash down doors, dealing 3 damage per hit.

Chopping trees

It is effective at chopping down trees, dealing 10 damage per hit.

Condition

The keytar 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 maintenance and long blunt levels.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Durability 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%)

Repairing

Materials that can be used to repair the keytar, based on first time repairing. Repairing the keytar makes following repairs less likely to succeed and can, if repaired numerous times, cause reduced durability instead of increased.

Distribution

TODO

Gallery

Code

From items_weapons.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.68

    item Keytar
    {
        DisplayCategory = Instrument,
        MaxRange	=	1.25,
        MinAngle	=	0.72,
        WeaponSprite	=	Keytar,
        Type	=	Weapon,
        MinimumSwingTime	=	3.0,
        KnockBackOnNoDeath	=	TRUE,
        Categories	=	Blunt,
        ConditionLowerChanceOneIn	=	3,
        Weight	=	2,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	2,
        MaxHitCount	=	2,
        DoorDamage	=	3,
        IdleAnim	=	Idle_Weapon2,
        SwingAnim	=	Bat,
        DisplayName	=	Keytar,
        MinRange	=	0.58,
        SwingTime	=	3.0,
        HitAngleMod	=	-30,
        SplatSize	=	5,
        KnockdownMod	=	1.5,
        SplatBloodOnNoDeath	=	TRUE,
        Icon	=	Keytar,
        RunAnim	=	Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  =   KeytarBreak,
        DoorHitSound = KeytarHit,
	HitSound = KeytarHit,
	HitFloorSound = KeytarHit,
	SwingSound = KeytarSwing,
        TreeDamage  =   10,
        CriticalChance	=	20,
        CritDmgMultiplier = 2,
        MinDamage	=	0.2,
        MaxDamage	=	0.7,
        BaseSpeed = 1.2,
        AttachmentType = Guitar,
    }

See also