Molotov Cocktail: Difference between revisions

From PZwiki
m (→‎Usage: Subject-verb agreement (its replaced by their). Clean-up of description of aftermath of a Molotov. Molotov is a name and thus always proper noun.)
(added CodeBox, updates, links, etc.)
Line 15: Line 15:
|max_range=8
|max_range=8
|swing_time=1.5
|swing_time=1.5
|min_damage=0
|max_damage=0
|effect_power=90
|effect_power=90
|effect_range=4
|effect_range=4
|effect_type=Fire
|effect_type=Fire
<!--TECHNICAL-->
|class_name=Base.Molotov
|class_name=Base.Molotov
}}[[Molotov Cocktail]]s are a hand-made incendiary weapon which can be thrown by the player.
}}A '''Molotov cocktail''' is a hand-made incendiary weapon which can be thrown by the player.


==Usage==
==Usage==
Molotov cocktails do not cause any damage upon impact. They will, however, spark a fire in their area of effect, allowing them to be useful for dispatching a medium to large group of zombies. Care must be taken though, as the fire can spread and even engulf the thrower in flames.  
Molotov cocktails do not cause any damage upon impact. They will, however, spark a fire in their area of effect, allowing them to be useful for dispatching a medium to large group of [[zombie]]s. Care must be taken though, as the fire can spread and even engulf the thrower in flames.  


A [[lighter]] must be in the secondary slot in order to use it. After throwing, another Molotov will be chosen as the current weapon if the player has one.  
A [[lighter]] must be in the secondary slot in order to use it. After throwing, another Molotov will be chosen as the current weapon if the player has one.  
Line 31: Line 30:


==Crafting==
==Crafting==
Molotov cocktails can be crafted from a full [[Whiskey Bottle (Full)|whiskey bottle]] and a [[Ripped Sheet|ripped sheet]], or from a [[Gas Can|gas can]], an [[Empty Bottle|empty bottle]], and a [[Ripped Sheet|ripped sheet]].
Molotov cocktails can be crafted from a full [[bourbon]] and a [[Ripped Sheet|ripped sheet]], or from a [[Gas Can|gas can]], an [[Empty Bottle|empty bottle]], and a [[Ripped Sheet|ripped sheet]].
{{Crafting header|ing=3}}
{{Crafting header|ing=3}}
{{Crafting general|007|ing=3}}
{{Crafting general|007|ing=3}}
Line 38: Line 37:


==Code==
==Code==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|
{{Retrieved|version=41|incver=50}}
{{CodeSnip
<pre>
  | lang = java
  | line = true
  | start = 3146
  | source = items_weapons.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
     item Molotov
     item Molotov
OtherHandUse = TRUE,
    {
MaxRange = 8,
        DisplayCategory = Explosives,
WeaponSprite = Molotov,
        OtherHandUse = TRUE,
Type = Weapon,
        MaxRange = 8,
MinimumSwingTime = 1.5,
        WeaponSprite = Molotov,
SwingAnim = Throw,
        Type = Weapon,
UseSelf = TRUE,
        MinimumSwingTime = 1.5,
DisplayName = Molotov Cocktail,
        SwingAnim = Throw,
SwingTime = 1.5,
        UseSelf = TRUE,
SwingAmountBeforeImpact = 0.1,
        DisplayName = Molotov Cocktail,
PhysicsObject = MolotovCocktail,
        SwingTime = 1.5,
MinDamage = 0,
        SwingAmountBeforeImpact = 0.1,
Weight = 1.5,
        PhysicsObject = MolotovCocktail,
MaxDamage = 0,
        MinDamage = 0,
OtherHandRequire = Lighter,
        Weight = 1.5,
MaxHitCount = 0,
        MaxDamage = 0,
FirePower = 90,
        OtherHandRequire = Lighter,
FireRange = 4,
        MaxHitCount = 0,
Icon = Molotov,
        FirePower =   90,
</pre>
        FireRange =   4,
        Icon = Molotov,
        EquipSound = MolotovCocktailEquip,
        ExplosionSound = MolotovCocktailExplode,
        SwingSound = MolotovCocktailThrow,
    }
}}
}}


==History==
==History==
Line 81: Line 94:
==See also==
==See also==
*[[Fire]]
*[[Fire]]
*[[Items#Bomb & Throwing Item|More Throwable Weapons]]
*[[Items#Bomb & Throwing Item|Throwable weapons]]
*[[Whiskey Bottle (Full)]]
*[[Bourbon]]


{{Navbox weapons}}
{{Navbox weapons}}

Revision as of 11:41, 2 January 2024

Molotov cocktail
Molotov cocktail
Molotov
General
Category Weapon
Encumbrance
Heavy Load
1.5
Equipped One-handed
Secondary Lighter
Skill Fire
Damage
Type Fire
Attack speed 1.5
Range 0–8 tiles
Fire power 90
Fire range 4 tiles
Technical details
Base ID Base.Molotov

A Molotov cocktail is a hand-made incendiary weapon which can be thrown by the player.

Usage

Molotov cocktails do not cause any damage upon impact. They will, however, spark a fire in their area of effect, allowing them to be useful for dispatching a medium to large group of zombies. Care must be taken though, as the fire can spread and even engulf the thrower in flames.

A lighter must be in the secondary slot in order to use it. After throwing, another Molotov will be chosen as the current weapon if the player has one.

It is recommended to read more about the dangers of fire.

Crafting

Molotov cocktails can be crafted from a full bourbon and a ripped sheet, or from a gas can, an empty bottle, and a ripped sheet.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
Molotov.png
Molotov Cocktail
0 XP none Bourbon
Bourbon
(consumed)

(consumed)

Molotov.png
Molotov Cocktail
0 XP none
(consumed)
Petrol.png
Gas Can
(1 unit)

(consumed)

(consumed)

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.78.16
item Molotov
    {
        DisplayCategory = Explosives,
        OtherHandUse	=	TRUE,
        MaxRange	=	8,
        WeaponSprite = Molotov,
        Type	=	Weapon,
        MinimumSwingTime	=	1.5,
        SwingAnim	=	Throw,
        UseSelf	=	TRUE,
        DisplayName	=	Molotov Cocktail,
        SwingTime	=	1.5,
        SwingAmountBeforeImpact	=	0.1,
        PhysicsObject	=	MolotovCocktail,
        MinDamage	=	0,
        Weight	=	1.5,
        MaxDamage	=	0,
        OtherHandRequire	=	Lighter,
        MaxHitCount	=	0,
        FirePower  =   90,
        FireRange  =   4,
        Icon	=	Molotov,
        EquipSound = MolotovCocktailEquip,
        ExplosionSound = MolotovCocktailExplode,
        SwingSound = MolotovCocktailThrow,
    }

History

Pre Alpha
Initial Added into the game
Alpha
0.2.0i Fire temporarily taken out. Fires are invisible from this point on.
RC 2.9 Fire re-added but doesn't work in certain builds of this version
2.9.9.17 Changes to molotov flying visuals. After throwing, another molotov will be chosen as the current weapon if the player has one rather than switching to some other weapon.

See also