User:Vaileasys/sandbox

From PZwiki
< User:Vaileasys
Revision as of 14:59, 20 June 2018 by Vaileasys (talk | contribs) (2nd personal sandbox for those larger projects -- current potential future format)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

-

The Game WorldItemsWeaponsMelee WeaponsVaileasys/sandbox
Baseball Bat
Baseball Bat
Spiked Baseball Bat
General
Category Weapon
Encumbrance
Heavy Load
2
Equipped Two-handed
Condition max. 15
Damage
Range 0.61–1.5 tiles
Damage 0.8–1.5
Technical details
Base ID Base.BaseballBat

The baseball bat is a blunt weapon of modest weight, and is particularly effective when dealing with large numbers of zombies.

Usage

Weapon

The baseball bat performs a swinging attack hitting up to 2 enemies at once. This combined with an above average knock-back (0.5), one of the highest knockdown values (2) and long range (1.5), the baseball bat is one the most effective weapons for keeping back a small group of zombies. Its knockdown potential is beaten only by the sledgehammer (3) and shotgun/sawn off shotgun (8).

It only has an attack damage of 0.8–1.5, making it better suited for keeping back larger groups of zombies, rather than for killing them.

Breaking doors

It is average when used to bash down doors, dealing 7 damage per hit. Weapons with similar damage include the hammer (9) and crowbar (8).

Tree chopping

The baseball bat can be used to chop down trees, however very poorly, dealing just 1 damage per hit. Similar weapons include the hammer, kitchen knife, screwdriver, crowbar and stone hammer.

Recipes

The baseball bat can be upgraded to a spiked baseball bat or be used to smash open a watermelon. Template:Crafting table header Template:Recipe Carpentry Template:Recipe Cooking Template:Crafting table footer


Condition

The baseball bat is a blunt weapon, therefore being influenced by the blunt skills: accuracy, guard and maintenance. It has a maximum condition of 15 and will be damaged depending on the player's maintenance skill. The chance of losing durability is: 1 in (20 + maintenance x 2).

Repairing

Materials that can be used to repair the baseball bat, based on first time repairing.

Item Repaired 55% Repaired, 100% Success 20% Repaired, 95% Success 10% Repaired, 95% Success 10% Repaired, 95% Success
BaseballBat.png
Baseball Bat
Woodglue.png
Wood Glue (2 Uses)
(Requires Carpentry Level 2)
DuctTape.png
Duct Tape (2 Uses)
Glue.png
Glue (2 Uses)
Scotchtape.png
Adhesive Tape (4 Uses)


Item distribution

Baseball bats are commonly found in wardrobes of houses and counters in stores and bars, or rarely on zombie corpses. They will not spawn in any vehicle.

Buildings

Building/Room Container Rolls Chance
All Male Corpse 1 0.1
Wardrobe 4 2
Bar Shelf 4 2
Counter 2 2
Bedroom Wardrobe 2 2
Changeroom Locker 2 2
Fossoil Counter 4 5
Grocery Store Counter 4 5
Storage Unit All 3 5
Zippee Store Counter 1 5

Vehicles

The baseball bat does not spawn in any vehicle.


Code

Item

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

	item BaseballBat
		MaxRange			= 1.5,
		WeaponSprite			= Baseballbat,
		MinAngle			= 0.2,
		Type				= Weapon,
		MinimumSwingTime		= 3,
		KnockBackOnNoDeath		= TRUE,
		SwingAmountBeforeImpact		= 0.02,
		Categories			= Blunt,
		ConditionLowerChanceOneIn	= 20,
		Weight				= 2,
		SplatN.umber			= 1,
		PushBackMod			= 0.5,
		MaxDamage			= 1.2,
		SubCategory			= Swinging,
		ConditionMax			= 15,
		MaxHitCount			= 2,
		DoorDamage			= 7,
		IdleAnim			= Idle_Weapon2,
		SwingAnim			= Bat,
		CriticalChance			= 10,
		WeaponWeight			= 2,
		DisplayName			= Baseball Bat,
		MinRange			= 0.61,
		SwingTime			= 3,
		HitAngleMod			= -30,
		MinDamage			= 0.8,
		KnockdownMod			= 2,
		SplatBloodOnNoDeath		= FALSE,
		Icon				= BaseballBat,
		RunAnim				= Run_Weapon2,
        	TwoHandWeapon 			= TRUE,
        	BreakSound  			= PZ_WoodSnap,
        	TreeDamage  			= 1,

Repair

From fixing.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 39.67.5

	fixing Fix Baseball Bat
		Require : BaseballBat,
		Fixer : Woodglue=2; Woodwork=2,
		Fixer : DuctTape=2,
		Fixer : Glue=2,
		Fixer : Scotchtape=4,


See Also

Template:Navbox/Weapons