Spear with Fork: Difference between revisions

From PZwiki
(Added the weapon code information from the project zomboid "items_weapons.txt")
 
m (Minor cleanup)
Line 1: Line 1:
== Code ==
{{Stub}}{{Languages}}
 
==Code==
 
===Item===
===Item===
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=41|incver=55}}
{{Retrieved|version=41|incver=55}}
<nowiki>
<pre>
     item SpearFork
     item SpearFork
     {
     {
Line 48: Line 51:
AttachmentType = Shovel,
AttachmentType = Shovel,
         Tags = FishingSpear,
         Tags = FishingSpear,
         {</nowiki>
         {
</pre>
 
{{Navbox weapons}}

Revision as of 08:48, 8 April 2023

Notebook.png
This article may need more content.
Editors are encouraged to add new material to the page while expanding upon current topics.

Code

Item

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

    item SpearFork
    {
        MaxRange	=	1.42,
        WeaponSprite	=	SpearFork,
        MinAngle	=	0.8,
        Type	=	Weapon,
        MinimumSwingTime	=	2,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	Improvised;Spear,
        ConditionLowerChanceOneIn	=	3,
        Weight	=	1.5,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Spear,
        ConditionMax	=	6,
        MaxHitCount	=	2,
        DoorDamage	=	5,
        SwingAnim	=	Spear,
        DisplayName	=	Spear With Fork,
        MinRange	=	0.98,
        SwingTime	=	2,
        KnockdownMod	=	0,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	SpearFork,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        TreeDamage  =   0,
        TwoHandWeapon = TRUE,
        CriticalChance	=	30,
        CritDmgMultiplier = 10,
        MinDamage	=	1,
        MaxDamage	=	1.6,
        BaseSpeed = 0.95,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        BreakSound  =   SpearForkBreak,
        HitFloorSound	=	SpearForkHit,
        ImpactSound	=	SpearForkHit,
        DoorHitSound = SpearForkHit,
        HitSound	=	SpearForkHit,
        SwingSound	=	SpearForkSwing,
		AttachmentType = Shovel,
        Tags = FishingSpear,
         {