Umbrella: Difference between revisions

From PZwiki
(updated to 41.78.16, included info about the weapon, variants, spear charge (from Garden Fork page) and added CodeBox)
m (infobox: damage makes a hole)
Line 23: Line 23:
<!--DAMAGE-->
<!--DAMAGE-->
|type=Slash
|type=Slash
|damage_make_hole=true
|base_speed=0.9
|base_speed=0.9
|min_range=0.61
|min_range=0.61

Revision as of 04:20, 7 January 2024

The Game WorldItemsToolsUmbrella
Umbrella
Umbrella
Umbrella (Blue) Umbrella (Red) Umbrella (Black) Umbrella (White)
General
Category Household
Encumbrance
Heavy Load
1
Function Keep player dry
Condition max. 7
Skill Spear
Damage
Type Slash
Attack speed 0.9
Range 0.61–1.1 tiles
Damage 0.5–0.7
Door damage 1
Knockback 0.3
Knockdown 0
Technical details
Base ID Base.UmbrellaBlack
Base.UmbrellaBlue
Base.UmbrellaRed
Base.UmbrellaWhite
Base.ClosedUmbrellaBlack
Base.ClosedUmbrellaBlue
Base.ClosedUmbrellaRed
Base.ClosedUmbrellaWhite

An umbrella is a functionable item and improvised weapon.

Usage

Staying dry

An umbrella can be equipped by the player to keep dry when it's raining. This has become incredibly useful post build 40, with the additional weather effects on the player, increasing the importance of staying dry, especially on windy days.

Weapon

The umbrella can hit only 1 enemy at a time (even with multi-hit enabled), dealing a maximum of 0.7 damage (unless a critical hit or using the spear charge) from up to 1.1 tiles away at an attack speed of 0.9.

Special ability: spear charge

The umbrella is considered an improvised spear. All spears have the ability to use a unique spear charge attack. To use the spear charge ability can be used by sprinting (Left Alt key by default), then after a few seconds of sprinting, the character will begin a spear charge and any zombie on the receiving end of the charge will be killed in one blow. Spear charges are best used against lone zombies due to the character being vulnerable during the kill animation. The noise from sprinting may also alert nearby zombies, and it is more difficult for the character to turn while sprinting. The character will fall over if they sprint into a wall.

Condition

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

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

Distribution

Buildings

Umbrellas can rarely be found in wardrobes and changing room lockers.

Vehicles

Umbrellas are commonly found in the trunk of vehicles.

Gallery

Code

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

UmbrellaBlack.png Base.UmbrellaBlack Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item UmbrellaBlack
    {
        DisplayCategory = Household,
        Type				=			Normal,
        DisplayName			=		    Umbrella,
        Icon				=			UmbrellaBlack,
        Weight				=			1.5,
        primaryAnimMask = HoldingUmbrellaRight,
        secondaryAnimMask = HoldingUmbrellaLeft,
        StaticModel = UmbrellaBlack,
        MetalValue = 9,
        ProtectFromRainWhenEquipped = TRUE,
        EquippedNoSprint = TRUE,
        WorldStaticModel = Umbrella_Closed_Black,
    }

UmbrellaBlue.png Base.UmbrellaBlue Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item UmbrellaBlue
    {
        DisplayCategory = Household,
        Type				=			Normal,
        DisplayName			=		    Umbrella,
        Icon				=			UmbrellaBlue,
        Weight				=			1.5,
        primaryAnimMask = HoldingUmbrellaRight,
        secondaryAnimMask = HoldingUmbrellaLeft,
        StaticModel = UmbrellaBlue,
        MetalValue = 9,
        ProtectFromRainWhenEquipped = TRUE,
        EquippedNoSprint = TRUE,
        WorldStaticModel = Umbrella_Closed_Blue,
    }

UmbrellaRed.png Base.UmbrellaRed Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item UmbrellaRed
    {
        DisplayCategory = Household,
        Type				=			Normal,
        DisplayName			=		    Umbrella,
        Icon				=			UmbrellaRed,
        Weight				=			1.5,
        primaryAnimMask = HoldingUmbrellaRight,
        secondaryAnimMask = HoldingUmbrellaLeft,
        StaticModel = UmbrellaRed,
        MetalValue = 9,
        ProtectFromRainWhenEquipped = TRUE,
        EquippedNoSprint = TRUE,
        WorldStaticModel = Umbrella_Closed_Red,
    }

UmbrellaWhite.png Base.UmbrellaWhite Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item UmbrellaWhite
    {
        DisplayCategory = Household,
        Type				=			Normal,
        DisplayName			=		    Umbrella,
        Icon				=			UmbrellaWhite,
        Weight				=			1.5,
        primaryAnimMask = HoldingUmbrellaRight,
        secondaryAnimMask = HoldingUmbrellaLeft,
        StaticModel = UmbrellaWhite,
        MetalValue = 9,
        ProtectFromRainWhenEquipped = TRUE,
        EquippedNoSprint = TRUE,
        WorldStaticModel = Umbrella_Closed_White,
    }

UmbrellaBlack.png Base.ClosedUmbrellaBlack Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item ClosedUmbrellaBlack
    {
        DisplayCategory = Household,
        MaxRange	=	1.1,
        WeaponSprite	=	Umbrella_Closed_Black,
        MinAngle	=	0.8,
        Type	=	Weapon,
        MinimumSwingTime	=	2,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	Improvised;Spear,
        ConditionLowerChanceOneIn	=	3,
        Weight	=	1,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	7,
        MaxHitCount	=	1,
        DoorDamage	=	1,
        SwingAnim	=	Spear,
        DisplayName	=	Closed Umbrella,
        MinRange	=	0.61,
        SwingTime	=	2,
        KnockdownMod	=	0,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	Umbrella_Red,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        TreeDamage  =   0,
        TwoHandWeapon = TRUE,
        CriticalChance	=	10,
        CritDmgMultiplier = 1,
        MinDamage	=	0.5,
        MaxDamage	=	0.7,
        BaseSpeed = 0.9,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        BreakSound  =   UmbrellaBreak,
        HitFloorSound	=	UmbrellaHit,
        ImpactSound	=	UmbrellaHit,
        DoorHitSound = UmbrellaHit,
        HitSound	=	UmbrellaHit,
        SwingSound = UmbrellaSwing,
    }

UmbrellaBlue.png Base.ClosedUmbrellaBlue Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item ClosedUmbrellaBlue
    {
        DisplayCategory = Household,
        MaxRange	=	1.1,
        WeaponSprite	=	Umbrella_Closed_Blue,
        MinAngle	=	0.8,
        Type	=	Weapon,
        MinimumSwingTime	=	2,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	Improvised;Spear,
        ConditionLowerChanceOneIn	=	3,
        Weight	=	1,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	7,
        MaxHitCount	=	1,
        DoorDamage	=	1,
        SwingAnim	=	Spear,
        DisplayName	=	Closed Umbrella,
        MinRange	=	0.61,
        SwingTime	=	2,
        KnockdownMod	=	0,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	Umbrella_Red,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        TreeDamage  =   0,
        TwoHandWeapon = TRUE,
        CriticalChance	=	10,
        CritDmgMultiplier = 1,
        MinDamage	=	0.5,
        MaxDamage	=	0.7,
        BaseSpeed = 0.9,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        BreakSound  =   UmbrellaBreak,
        HitFloorSound	=	UmbrellaHit,
        ImpactSound	=	UmbrellaHit,
        DoorHitSound = UmbrellaHit,
        HitSound	=	UmbrellaHit,
        SwingSound = UmbrellaSwing,
    }

UmbrellaRed.png Base.ClosedUmbrellaRed Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item ClosedUmbrellaRed
    {
        DisplayCategory = Household,
        MaxRange	=	1.1,
        WeaponSprite	=	Umbrella_Closed_Red,
        MinAngle	=	0.8,
        Type	=	Weapon,
        MinimumSwingTime	=	2,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	Improvised;Spear,
        ConditionLowerChanceOneIn	=	3,
        Weight	=	1,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	7,
        MaxHitCount	=	1,
        DoorDamage	=	1,
        SwingAnim	=	Spear,
        DisplayName	=	Closed Umbrella,
        MinRange	=	0.61,
        SwingTime	=	2,
        KnockdownMod	=	0,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	Umbrella_Red,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        TreeDamage  =   0,
        TwoHandWeapon = TRUE,
        CriticalChance	=	10,
        CritDmgMultiplier = 1,
        MinDamage	=	0.5,
        MaxDamage	=	0.7,
        BaseSpeed = 0.9,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        BreakSound  =   UmbrellaBreak,
        HitFloorSound	=	UmbrellaHit,
        ImpactSound	=	UmbrellaHit,
        DoorHitSound = UmbrellaHit,
        HitSound	=	UmbrellaHit,
        SwingSound = UmbrellaSwing,
    }

UmbrellaWhite.png Base.ClosedUmbrellaWhite Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item ClosedUmbrellaWhite
    {
        DisplayCategory = Household,
        MaxRange	=	1.1,
        WeaponSprite	=	Umbrella_Closed_White,
        MinAngle	=	0.8,
        Type	=	Weapon,
        MinimumSwingTime	=	2,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	Improvised;Spear,
        ConditionLowerChanceOneIn	=	3,
        Weight	=	1,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	7,
        MaxHitCount	=	1,
        DoorDamage	=	1,
        SwingAnim	=	Spear,
        DisplayName	=	Closed Umbrella,
        MinRange	=	0.61,
        SwingTime	=	2,
        KnockdownMod	=	0,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	Umbrella_Red,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        TreeDamage  =   0,
        TwoHandWeapon = TRUE,
        CriticalChance	=	10,
        CritDmgMultiplier = 1,
        MinDamage	=	0.5,
        MaxDamage	=	0.7,
        BaseSpeed = 0.9,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        BreakSound  =   UmbrellaBreak,
        HitFloorSound	=	UmbrellaHit,
        ImpactSound	=	UmbrellaHit,
        DoorHitSound = UmbrellaHit,
        HitSound	=	UmbrellaHit,
        SwingSound = UmbrellaSwing,
    }

See also