Molotov Cocktail: Difference between revisions

From PZwiki
mNo edit summary
m (Automated CodeBox update)
(26 intermediate revisions by 10 users not shown)
Line 1: Line 1:
__NOTOC__
{{Header|Project Zomboid|Items|Weapons|Explosives}}
{{notice|Standard}}
{{Page version|41.50}}
{{languages|Molotov cocktail}}
{{Infobox item
{{header|The Game World|Items|Bomb and Throwing Items|version=Version 39|incver=52}}
|name=Molotov Cocktail
<!--Comment: This section is for the infobox which will be positioned on the right of the page. Image.png is the default question mark image. The information can be pulled from the items/newitems.txt file in [Zomboid Folder\media\scripts] -->
|model=Molotov_Model.png
{{Weapons
|icon=Molotov.png
|image = Molotov_120px.png
|icon_name=Molotov
|weapontype = Ranged
|category=Weapon
|ammo = None
|weight=1.5
|mindamage = 0
|equipped=One-handed
|maxdamage = 0
|secondary_item=Lighter
|hands= Primary
|type=Fire
|weight = 1.5
|min_range=0
|id = Molotov
|max_range=8
|swing_time=1.5
|effect_power=90
|effect_range=4
|effect_type=Fire
<!--TECHNICAL-->
|item_id=Base.Molotov
}}
}}
[[Molotov cocktail]]s are a hand-made incendiary weapon which can be thrown by the player. They do not cause any damage upon impact, however will spark a fire in its area of effect. Thus allowing them to be useful for dispatching a medium to large group of zombies. Care must be taken though, as the fire created will spread and maybe 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, rather than switching to some other weapon.  
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 [[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.


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


 
==Crafting==
== Crafting ==
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]].
Molotov cocktails can be crafted from one [[Whiskey Bottle (Full)|whiskey bottle (full)]], and a [[Ripped Sheet|ripped sheet]]. Or a [[Gas Can|gas can]] and [[Empty Bottle|empty bottle (alcohol)]] instead of a whiskey bottle (full).
{{Crafting header|ing=3}}
{| class="pztable unsortable" style="text-align:center;"
{{Crafting general|007|ing=3}}
|-
{{Crafting general|008|ing=3}}
! Name
! Recipe
! Description
! Level
{{RecipeLookup|3000}}
{{RecipeLookup|3007}}
|}
|}


==Code==
{{CodeBox|
{{CodeSnip
  | lang = java
  | line = true
  | start = 6264
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
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,
    }
}}
}}


== Code ==
==History==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{| class="wikitable theme-red" width="550" style="text-align:left;"
<nowiki>
item Molotov
OtherHandUse = TRUE,
MaxRange = 8,
Type = Weapon,
MinimumSwingTime = 1.5,
SwingAnim = Bat,
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,
</nowiki>
 
 
== History ==
 
{| class="pztable" width="550" style="text-align:left;"
|-
|-
! colspan="2"| Pre Alpha
! colspan="2"| Pre Alpha
|-
|-
| style="text-align: center;"| Initial|| Added into the game
| style="text-align: center;"| Initial|| Added into the game
Line 74: Line 90:
|-
|-
| style="text-align: center;"| 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.
| style="text-align: center;"| 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==
==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|explosives}}
[[Category:Guns and Explosives (Project)]]

Revision as of 11:07, 26 March 2024

Project ZomboidItemsWeaponsExplosivesMolotov Cocktail
Spiffo controlyourself.png
This page was last updated for an older version (41.50).
The current stable version is 41.78.16, released 2022-12-12, so information on this page may be inaccurate. Help get this page updated by adding any missing content. [edit]
Please update the version after updating the page.
Molotov Cocktail
Molotov Model.png
General
Category
Weapon
Encumbrance
Moodle Icon HeavyLoad.png
1.5
Equipped
One-handed
Secondary
Lighter
Performance
Range
0–8
Fire power
90
Fire range
4 tiles
Technical
Item 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