Table Leg: Difference between revisions

From PZwiki
(Added the weapon code information from the project zomboid "item_weapons.txt")
 
(Add infobox, stub)
Line 1: Line 1:
===Item===
{{stub}}
{{languages|{{PAGENAME}}}}
{{header|The Game World|Items|Weapons|type=Weapon|version=Version 41|incver=55}}
{{Infobox weapon
|display_name=Table Leg
|name_colour=Weapon
|name_text_colour=Weapon
|image=Image.png
|image_width=120px
|alternate_image=TableLeg.png
<!--GENERAL-->
|category=Weapon
|weight=1.5
|equipped=One-handed
|condition_max=4
<!--CHARACTERISTICS-->
<!--DAMAGE-->
|type=SmallBlunt
|swing_time=4
|min_range=0.61
|max_range=1
|min_damage=0.5
|max_damage=0.9
|door_damage=5
|push_back=0.3
|knockdown=2
<!--TECHNICAL DETAILS-->
|class_name=TableLeg
}}
A '''table leg''' is a short blunt weapon.
 
== Usage ==
A table leg functions as an improvised weapon with low durability and damage. It deals moderate damage to doors, however.
 
== Code ==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=41|incver=55}}
{{Retrieved|version=41|incver=55}}
<nowiki>
<pre> item TableLeg
item TableLeg
MaxRange = 1,
        MaxRange = 1,
WeaponSprite = TableLeg,
        WeaponSprite = TableLeg,
MinAngle = 0.65,
        MinAngle = 0.65,
Type = Weapon,
        Type = Weapon,
MinimumSwingTime = 4,
        MinimumSwingTime = 4,
KnockBackOnNoDeath = FALSE,
        KnockBackOnNoDeath = FALSE,
SwingAmountBeforeImpact = 0.02,
        SwingAmountBeforeImpact = 0.02,
Categories = Improvised;SmallBlunt,
        Categories = Improvised;SmallBlunt,
ConditionLowerChanceOneIn = 3,
        ConditionLowerChanceOneIn = 3,
Weight = 1.5,
        Weight = 1.5,
SplatNumber = 1,
        SplatNumber = 1,
PushBackMod = 0.3,
        PushBackMod = 0.3,
SubCategory = Swinging,
        SubCategory = Swinging,
ConditionMax = 4,
        ConditionMax = 4,
MaxHitCount = 2,
        MaxHitCount = 2,
DoorDamage = 5,
        DoorDamage = 5,
SwingAnim = Bat,
        SwingAnim = Bat,
DisplayName = Table Leg,
        DisplayName = Table Leg,
MinRange = 0.61,
        MinRange = 0.61,
SwingTime = 4,
        SwingTime = 4,
KnockdownMod = 2,
        KnockdownMod = 2,
SplatBloodOnNoDeath = FALSE,
        SplatBloodOnNoDeath = FALSE,
Icon = TableLeg,
        Icon = TableLeg,
BreakSound = TableLegBreak,
        BreakSound =   TableLegBreak,
DoorHitSound = TableLegHit,
        DoorHitSound = TableLegHit,
HitSound = TableLegHit,
HitSound = TableLegHit,
HitFloorSound = TableLegHit,
HitFloorSound = TableLegHit,
SwingSound = TableLegSwing,
SwingSound = TableLegSwing,
TreeDamage = 0,
        TreeDamage =   0,
CriticalChance = 10,
        CriticalChance = 10,
CritDmgMultiplier = 2,
        CritDmgMultiplier = 2,
MinDamage = 0.5,
        MinDamage = 0.5,
MaxDamage = 0.9,
        MaxDamage = 0.9,
BaseSpeed = 1,
        BaseSpeed = 1,
</pre>
        {</nowiki>

Revision as of 22:59, 19 November 2021

Notebook.png
This article may need more content.
Editors are encouraged to add new material to the page while expanding upon current topics.
The Game WorldItemsWeaponsTable Leg
Table Leg
Table Leg
TableLeg.png
General
Category Weapon
Encumbrance
Heavy Load
1.5
Equipped One-handed
Condition max. 4
Skill Short Blunt
Damage
Type SmallBlunt
Attack speed 4
Range 0.61–1 tiles
Damage 0.5–0.9
Door damage 5
Knockback 0.3
Knockdown 2
Technical details
Base ID TableLeg

A table leg is a short blunt weapon.

Usage

A table leg functions as an improvised weapon with low durability and damage. It deals moderate damage to doors, however.

Code

From items.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.55

	item TableLeg
		MaxRange			= 1,
		WeaponSprite			= TableLeg,
		MinAngle			= 0.65,
		Type				= Weapon,
		MinimumSwingTime		= 4,
		KnockBackOnNoDeath		= FALSE,
		SwingAmountBeforeImpact		= 0.02,
		Categories			= Improvised;SmallBlunt,
		ConditionLowerChanceOneIn	= 3,
		Weight				= 1.5,
		SplatNumber			= 1,
		PushBackMod			= 0.3,
		SubCategory			= Swinging,
		ConditionMax			= 4,
		MaxHitCount			= 2,
		DoorDamage			= 5,
		SwingAnim			= Bat,
		DisplayName			= Table Leg,
		MinRange			= 0.61,
		SwingTime			= 4,
		KnockdownMod			= 2,
		SplatBloodOnNoDeath		= FALSE,
		Icon				= TableLeg,
		BreakSound			= TableLegBreak,
		DoorHitSound			= TableLegHit,
		HitSound			= TableLegHit,
		HitFloorSound			= TableLegHit,
		SwingSound			= TableLegSwing,
		TreeDamage			= 0,
		CriticalChance			= 10,
		CritDmgMultiplier		= 2,
		MinDamage			= 0.5,
		MaxDamage			= 0.9,
		BaseSpeed			= 1,