Pool Cue: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
(→‎Code: Codebox Update)
Line 42: Line 42:


==Code==
==Code==
'''''From Items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=50}}
| {{CodeSnip
<pre>
  | lang = java
item Poolcue
  | line = true
{
  | start = 0
MaxRange = 1.6,
  | source = Items_weapons.txt
WeaponSprite = PoolCue,
  | retrieved = true
MinAngle = 0.85,
  | version = 41
Type = Weapon,
  | incver = 50
MinimumSwingTime = 2,
  | code =
KnockBackOnNoDeath = FALSE,
item Poolcue
SwingAmountBeforeImpact = 0.02,
{
Categories = Improvised;Blunt,
  MaxRange               = 1.6,
ConditionLowerChanceOneIn = 10,
  WeaponSprite           = PoolCue,
Weight = 1,
  MinAngle               = 0.85,
SplatNumber = 1,
  Type                   = Weapon,
PushBackMod = 0.3,
  MinimumSwingTime       = 2,
SubCategory = Swinging,
  KnockBackOnNoDeath     = FALSE,
ConditionMax = 10,
  SwingAmountBeforeImpact = 0.02,
MaxHitCount = 2,
  Categories             = Improvised;Blunt,
DoorDamage = 1,
  ConditionLowerChanceOneIn = 10,
SwingAnim = Bat,
  Weight                 = 1,
DisplayName = Poolcue,
  SplatNumber             = 1,
MinRange = 0.61,
  PushBackMod             = 0.3,
SwingTime = 2,
  SubCategory             = Swinging,
KnockdownMod = 0,
  ConditionMax           = 10,
SplatBloodOnNoDeath = FALSE,
  MaxHitCount             = 2,
Icon = Poolcue,
  DoorDamage             = 1,
RunAnim = Run_Weapon2,
  SwingAnim               = Bat,
IdleAnim = Idle_Weapon2,
  DisplayName             = Poolcue,
TwoHandWeapon = TRUE,
  MinRange               = 0.61,
BreakSound =   BreakWoodItem,
  SwingTime               = 2,
TreeDamage =   0,
  KnockdownMod           = 0,
CriticalChance = 0,
  SplatBloodOnNoDeath     = FALSE,
MinDamage = 0.2,
  Icon                   = Poolcue,
MaxDamage = 0.4,
  RunAnim                 = Run_Weapon2,
BaseSpeed = 1.2,
  IdleAnim               = Idle_Weapon2,
AttachmentType = BigBlade,
  TwoHandWeapon           = TRUE,
}
  BreakSound             = BreakWoodItem,
</pre>
  TreeDamage             = 0,
  CriticalChance         = 0,
  MinDamage               = 0.2,
  MaxDamage               = 0.4,
  BaseSpeed               = 1.2,
  AttachmentType         = BigBlade,
}
  }}
}}


==See also==
==See also==

Revision as of 04:38, 13 January 2024

Pool Cue
Pool Cue
Pool Cue
General
Category Weapon
Encumbrance
Heavy Load
1
Equipped Two-handed
Condition max. 10
Skill Long Blunt
Damage
Type Blunt
Attack speed 2
Range 0.61–1.6 tiles
Damage 0.2–0.4
Knockback 0.3
Knockdown 0
Technical details
Base ID Base.Poolcue

A pool cue is a two-handed blunt melee weapon.

Usage

Weapon

The pool cue is a multi-attack weapon, capable of hitting two zombies at a time in a swing. It is light for a long two-handed weapon, however will only deal 0.2 to 0.4 damage per swing. The pool cue has difficulty knocking a zombie to the ground and will instead knock them back slightly.

Breaking doors

It is somewhat ineffective at bashing down doors, dealing just 1 damage per hit. For comparison, an axe deals 35 damage.

Chopping trees

It cannot be used to chop trees, dealing 0 damage per hit. For comparison, an axe deals 35 damage.

Condition

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

Repairing

A pool cue cannot be fixed.

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\Items_weapons.txt

Retrieved: Build 41.50
item Poolcue
{
  MaxRange                = 1.6,
  WeaponSprite            = PoolCue,
  MinAngle                = 0.85,
  Type                    = Weapon,
  MinimumSwingTime        = 2,
  KnockBackOnNoDeath      = FALSE,
  SwingAmountBeforeImpact = 0.02,
  Categories              = Improvised;Blunt,
  ConditionLowerChanceOneIn = 10,
  Weight                  = 1,
  SplatNumber             = 1,
  PushBackMod             = 0.3,
  SubCategory             = Swinging,
  ConditionMax            = 10,
  MaxHitCount             = 2,
  DoorDamage              = 1,
  SwingAnim               = Bat,
  DisplayName             = Poolcue,
  MinRange                = 0.61,
  SwingTime               = 2,
  KnockdownMod            = 0,
  SplatBloodOnNoDeath     = FALSE,
  Icon                    = Poolcue,
  RunAnim                 = Run_Weapon2,
  IdleAnim                = Idle_Weapon2,
  TwoHandWeapon           = TRUE,
  BreakSound              = BreakWoodItem,
  TreeDamage              = 0,
  CriticalChance          = 0,
  MinDamage               = 0.2,
  MaxDamage               = 0.4,
  BaseSpeed               = 1.2,
  AttachmentType          = BigBlade,
}

See also