Electric Bass: Difference between revisions

From PZwiki
(added CodeBox, removed some autogenerated content)
m (→‎Code: fix code source)
Line 71: Line 71:
   | line = true
   | line = true
   | start = 2966
   | start = 2966
   | source = weapons.txt
   | source = items_weapons.txt
   | retrieved = true
   | retrieved = true
   | version = 41
   | version = 41
Line 126: Line 126:
   | line = true
   | line = true
   | start = 3010
   | start = 3010
   | source = weapons.txt
   | source = items_weapons.txt
   | retrieved = true
   | retrieved = true
   | version = 41
   | version = 41
Line 181: Line 181:
   | line = true
   | line = true
   | start = 3054
   | start = 3054
   | source = weapons.txt
   | source = items_weapons.txt
   | retrieved = true
   | retrieved = true
   | version = 41
   | version = 41

Revision as of 13:42, 29 December 2023

Electric Bass
Electric Bass
Black Electric Bass Blue Electric Bass Red Electric Bass
General
Category Instrument
Encumbrance
Heavy Load
3.5
Equipped One-handed
Condition max. 12
Skill Long Blunt
Attachment Back
Damage
Type Blunt
Attack speed 1
Range 0.61–1.35 tiles
Damage 0.9–1.4
Crit chance 70%
Tree damage 0
Door damage 10
Knockback 0.3
Knockdown 1.5
Technical details
Base ID Base.GuitarElectricBassBlack
Base.GuitarElectricBassBlue
Base.GuitarElectricBassRed

An electric bass is a long blunt melee weapon.

Usage

Weapon

The electric bass can attack up to 3 enemies at a time dealing a maximum of 1.4 damage to enemies (unless a critical hit) from up to 1.35 tiles away at an attack speed of 1.

Breaking doors

It is effective at bashing down doors, dealing 10 damage per hit.

Condition

The electric bass has a maximum condition of 12. Its rate of degradation is influenced by the long blunt and maintenance skills. The chance of losing durability can be simplified to the following formula: 1 in (9 + maintenanceMod × 2). Where "maintenanceMod" is calculated using the long blunt and maintenance skills.
Below is an example of the chance of losing durability at varying levels of maintenance and long blunt levels.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Condition lower chance
0 0 1/9 (11%)
0 4 1/11 (9%)
0 8 1/13 (8%)
4 0 1/13 (8%)
8 0 1/17 (6%)
4 4 1/15 (7%)
4 8 1/17 (6%)
8 8 1/21 (5%)
10 10 1/23 (4%)

Distribution

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

Gallery

Code

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

BassElectricBlack.png Black Electric Bass Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item GuitarElectricBassBlack
    {
        DisplayCategory = Instrument,
        MaxRange	=	1.35,
        MinAngle	=	0.8,
        WeaponSprite	=	Guitar_ElectricBassBlack,
        Type	=	Weapon,
        MinimumSwingTime	=	3.0,
        KnockBackOnNoDeath	=	TRUE,
        Categories	=	Blunt,
        ConditionLowerChanceOneIn	=	9,
        Weight	=	3.5,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	12,
        MaxHitCount	=	3,
        DoorDamage	=	10,
        IdleAnim	=	Idle_Weapon2,
        SwingAnim	=	Heavy,
        DisplayName	=	Black Electric Bass,
        MinRange	=	0.61,
        SwingTime	=	3.0,
        HitAngleMod	=	-30,
        SplatSize	=	5,
        KnockdownMod	=	1.5,
        SplatBloodOnNoDeath	=	TRUE,
        Icon	=	BassElectricBlack,
        RunAnim	=	Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  =   ElectricBassBreak,
        DoorHitSound = ElectricBassHit,
		HitSound = ElectricBassHit,
		HitFloorSound = ElectricBassHit,
		SwingSound = ElectricBassSwing,
        TreeDamage  =   0,
        CriticalChance	=	70,
        CritDmgMultiplier = 2,
        MinDamage	=	0.9,
        MaxDamage	=	1.4,
        BaseSpeed = 1,
        AttachmentType = Guitar,
    }

BassElectricBlue.png Blue Electric Bass Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item GuitarElectricBassBlue
    {
        DisplayCategory = Instrument,
        MaxRange	=	1.35,
        MinAngle	=	0.8,
        WeaponSprite	=	Guitar_ElectricBassBlue,
        Type	=	Weapon,
        MinimumSwingTime	=	3.0,
        KnockBackOnNoDeath	=	TRUE,
        Categories	=	Blunt,
        ConditionLowerChanceOneIn	=	9,
        Weight	=	3.5,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	12,
        MaxHitCount	=	3,
        DoorDamage	=	10,
        IdleAnim	=	Idle_Weapon2,
        SwingAnim	=	Heavy,
        DisplayName	=	Blue Electric Bass,
        MinRange	=	0.61,
        SwingTime	=	3.0,
        HitAngleMod	=	-30,
        SplatSize	=	5,
        KnockdownMod	=	1.5,
        SplatBloodOnNoDeath	=	TRUE,
        Icon	=	BassElectricBlue,
        RunAnim	=	Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  =   ElectricBassBreak,
        DoorHitSound = ElectricBassHit,
		HitSound = ElectricBassHit,
		HitFloorSound = ElectricBassHit,
		SwingSound = ElectricBassSwing,
        TreeDamage  =   0,
        CriticalChance	=	70,
        CritDmgMultiplier = 2,
        MinDamage	=	0.9,
        MaxDamage	=	1.4,
        BaseSpeed = 1,
        AttachmentType = Guitar,
    }

BassElectricRed.png Red Electric Bass Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item GuitarElectricBassRed
    {
        DisplayCategory = Instrument,
        MaxRange	=	1.35,
        MinAngle	=	0.8,
        WeaponSprite	=	Guitar_ElectricBassRed,
        Type	=	Weapon,
        MinimumSwingTime	=	3.0,
        KnockBackOnNoDeath	=	TRUE,
        Categories	=	Blunt,
        ConditionLowerChanceOneIn	=	9,
        Weight	=	3.5,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	12,
        MaxHitCount	=	3,
        DoorDamage	=	10,
        IdleAnim	=	Idle_Weapon2,
        SwingAnim	=	Heavy,
        DisplayName	=	Red Electric Bass,
        MinRange	=	0.61,
        SwingTime	=	3.0,
        HitAngleMod	=	-30,
        SplatSize	=	5,
        KnockdownMod	=	1.5,
        SplatBloodOnNoDeath	=	TRUE,
        Icon	=	BassElectricRed,
        RunAnim	=	Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  =   ElectricBassBreak,
        DoorHitSound = ElectricBassHit,
		HitSound = ElectricBassHit,
		HitFloorSound = ElectricBassHit,
		SwingSound = ElectricBassSwing,
        TreeDamage  =   0,
        CriticalChance	=	70,
        CritDmgMultiplier = 2,
        MinDamage	=	0.9,
        MaxDamage	=	1.4,
        BaseSpeed = 1,
        AttachmentType = Guitar,
    }

See also