Shovel

From PZwiki
Jump to: navigation, search
Language policy Language: English  • русский • 日本語


Shovel
TZ Shovel 120px.png
Weight: 2.0
Weapon Type: Melee
Ammunition: None
Hands: One/Two Handed
Damage: Min - 0.8
Max - 1.9
Max Condition: 10
Degrade Chance: 1 in 10
Item ID: Shovel

The shovel is a farming tool primarily used to move dirt, sand and gravel. While the player has the shovel and an empty sack in their main inventory, a new contextual option will appear when right-clicking any one of these aforementioned tiles. This new option allows the player to move up to four tiles of dirt, sand or gravel into a single sack, upon changing the sack to a dirt bag, sandbag or gravel bag, respectively. Each filled sack can then be "spilled" over any other pre-existing tile, changing it to the contents of the sack. This mechanic is ideal when a specific location is desired for farming in which doesn't already contain dirt tiles. Doing so with sand or gravel bags is trivial, and should only be done for aesthetic purposes. However, the sand and gravel bags themselves are required in crafting the bulletproof defenses, sandbag wall and gravel bag wall.

The shovel may also be used as a blunt melee weapon with a fast attack speed and intermediate damage, however it is fairly fragile and caps at around 20 zombie kills before breaking. It can commonly be found inside crates, sheds, and work shelves.








Code

From farming.txt (Project Zomboid directory/media/scripts/)

	
    item Shovel
		Type				= Weapon,
		DisplayName			= Shovel,
		Icon				= TZ_Shovel,
		Weight				= 2.0,
		SubCategory    			= Swinging,
		MinAngle			= 0,
		MaxDamage			= 1.9,
		MinDamage			= 0.8,
		MaxRange 			= 1.5,
		MinRange 			= 0.61,
		CriticalChance 			= 10,
		PushBackMod			= 0.5,
		HitAngleMod			= -30.0,
		SwingAnim			= Bat,
		MaxHitCount 			= 1,
		WeaponSprite			= Shovel,
		IdleAnim			= Idle_Weapon2,
		RunAnim				= Run_Weapon2,
		Weight				= 1.5,
		DoorDamage			= 5,
		MinimumSwingTime 		= 2.1,
		SwingTime			= 2.1,
		SwingAmountBeforeImpact 	= 0.02,
		ConditionLowerChanceOneIn 	= 10,
		ConditionMax 			= 10,
		Categories 			= Blunt,
		TwoHandWeapon 			= TRUE,
		BreakSound  			= PZ_WoodSnap,
		KnockdownMod			= 2,
        	KnockBackOnNoDeath		= TRUE,
        	MetalValue 			= 70,


See Also


Tools
Camping Campfire MaterialsChipped StoneNotched Wooden PlankSturdy StickTent Kit
Construction AxeBucketCrowbarHammerNeedlePaint BrushPropane TankBlow TorchRaw AxeSawScrewdriverSledgehammerStone HammerSuture NeedleWelding Mask
Cooking Baking PanBowlButter KnifeCan OpenerCooking PotEmpty Bottle (Alcohol)Empty Bottle (Mayonnaise)Empty Bottle (Remoulade)Empty Bottle (Water)Empty JarEmpty MugEmpty Pop BottleFrying PanHunting KnifeJar LidKettleKitchen KnifeRolling PinRoasting PanSaucepan
Farming Gardening Spray CanNPK FertilizerSackShovelTrowelWatering Can
Fishing Fishing Net TrapFishing RodFishing Rod (Crafted)Fishing TackleWooden Spear
Illumination Lit CandleFlashlightLighterMatches
Keys Car KeyCombination PadlockKey RingKey (Door)Key (Padlock)Padlock
Mechanics Gas CanJackLug WrenchTire PumpWrench
Miscellaneous Bath TowelDish TowelExtinguisherMopMortar and PestleUmbrella
Stationery Empty NotebookEraserJournalPenPencilSheet of Paper
Trapping Cage TrapMouse TrapSnare TrapStick TrapTrap BoxTrap Crate
Weapons
Blunt Bare HandsBaseball BatCrowbarFishing RodFishing Rod Without LineFishing Rod (Crafted)Frying PanGolfclubHammerHockey StickPlankPoolcueRolling PinSledgehammerShovelSpiked Baseball BatSpiked PlankStone HammerWooden Spear
Bladed Butter KnifeForkHunting KnifeIce PickKitchen KnifeLetter OpenerPenPencilScissorsScrewdriverSpoon
Axes AxeRaw Axe
Firearms Hunting RiflePistolSawn Off ShotgunShotgunVarmint Rifle
Throwables Aerosol BombAlarm ClockFlame TrapMolotov CocktailNoise MakerPipe BombSmoke Bomb
Ammo Shotgun Shells9mm Rounds.233 Ammo.308 Ammo
Weapon Parts 9mm MagazineAmmo StrapsChoke Tube ImprovedChoke Tube FullFiberglass StockIron SightsLaserRecoil PadRed DotSlingx2 Scopex4 Scopex8 Scope