Smoke Bomb: Difference between revisions

From PZwiki
m (→‎Code: Remove project category)
(info about the upgrades usage, CodeBox, Item IDs and infobox info/changes)
Line 1: Line 1:
{{Languages}}{{Header|Project Zomboid|Items|Weapons|Throwables|Bombs and Traps|type=Weapon|version=Version 40|incver=43}}
{{Languages}}{{Header|Project Zomboid|Items|Weapons|Ranged weapons|Throwables|type=Weapon|version=Version 41|incver=78.16}}
{{Infobox weapon
{{Infobox weapon
|display_name=Smoke Bomb
|display_name=Smoke Bomb
Line 11: Line 11:
|alternate_link=
|alternate_link=
<!--GENERAL-->
<!--GENERAL-->
|category=Weapon
|category=Explosives
|weight=1.5
|weight=1.5
|equipped=One-handed
|equipped=One-handed
Line 20: Line 20:
|effect_type=Smoke
|effect_type=Smoke
|effect_range=5
|effect_range=5
|effect_timer=50
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=''See [[#Item IDs|Item IDs]]''
|class_name=Base.SmokeBomb<br>Base.SmokeBombTriggered<br>Base.SmokeBombSensorV1<br>Base.SmokeBombSensorV2<br>Base.SmokeBombSensorV3<br>Base.SmokeBombRemote
|no_style=
}}A '''smoke bomb''' is a [[Weapons#Throwables|throwable bomb]].
}}The '''Smoke Bomb''' is a [[Weapons#Throwables|thrown bomb]].


==Usage==
==Usage==
A Smoke Bomb pacifies zombies that are in the area of effect of the bomb when it explodes. It deals no damage to [[Zombie|zombies]].  
A smoke bomb pacifies [[zombie]]s that are in the area of effect of the bomb when it explodes. It deals no damage to [[Zombie|zombies]].  


Note that although it immediately pacifies zombies in its area, they may still be influenced by [[zombie#Movement and Horde Behavior|horde behavior]] and continue towards their target. This is especially prevalent if there are many zombies nearby that were unaffected by the Smoke Bomb which can cause its effects to be almost unnoticeable.
Note that although it immediately pacifies zombies in its area, they may still be influenced by [[zombie#Movement and Horde Behavior|horde behavior]] and continue towards their target. This is especially prevalent if there are many zombies nearby that were unaffected by the smoke vomb which can cause its effects to be almost unnoticeable.
 
===Upgrades===
The smoke bomb has various upgrades allowing it to be triggered in several ways, rather than just when thrown.
====Sensor upgrade====
The smoke bomb with sensor has a [[Motion Sensor|motion sensor]] attached. It can be placed by moving to the desired location, then press {{key|{{abbr|RMB|Right Mouse Button}}}} on the item in the player's inventory and selecting "Place Smoke Bomb with Sensor" (this is different to "Place Item", which just places the item without arming it). Once placed, it will slowly beep 4 times before beeping rapidly and stopping. Once the beeping stops, the smoke bomb is armed, and will be triggered if movement is detected within a certain distance from the smoke bomb (without any warning). It's important to note that the character that armed the bomb can also trigger it.
 
There are 3 versions of the sensor upgrade, each with a different range before triggering.
{| class="pztable" style="text-align: center;"
! Version
! Sensor range
|-
| V1
| 3 tiles
|-
| V2
| 4 tiles
|-
| V3
| 5 tiles
|}
 
====Timer upgrade====
The smoke bomb with timer has a [[Crafted Timer|crafted timer]] attached. Before placing, the timer can be set by pressing {{key|{{abbr|RMB|Right Mouse Button}}}} on the item in the player's inventory and selecting "Set time before explosion". The time set is in real world seconds. The method of placing is identical to the [[#Sensor upgrade|sensor upgrade]]: move to location, {{key|{{abbr|RMB|Right Mouse Button}}}} on item, and select "Place Smoke Bomb with Timer". It will begin to beep slowly, once for every second, and on the last second it will beep rapidly before exploding.
 
====Remote upgrade====
The remote smoke bomb has a [[Crafted Trigger|crafted trigger]] attached, allowing it to be detonated remotely. To trigger, a [[Remote Controller|remote controller]] must first be crafted. Then the remote controller and remote smoke bomb will need to be linked by having both items in the player's inventory and pressing {{key|{{abbr|RMB|Right Mouse Button}}}} on either the remote or the smoke bomb and selecting "Link to ...". "(Linked)" will then appear next to the two items. If the wrong items have been linked, it can be reset by pressing {{key|{{abbr|RMB|Right Mouse Button}}}} and selecting "Reset Remote Frequency" (both items must be reset in order to be linked to a new item). Once linked, the smoke bomb can then be placed: move to location, {{key|{{abbr|RMB|Right Mouse Button}}}} on item, and select "Place Remote Smoke Bomb". Unlike the other upgrades, there will be no beeps, although it is armed. It is triggered by pressing {{key|{{abbr|RMB|Right Mouse Button}}}} on the linked remote controller and selecting "Trigger".
 
There are 3 versions of the [[Remote Controller|remote controller]], each with a different range that they can be used to trigger the smoke bomb.
{| class="pztable" style="text-align: center;"
! Version
! remote range
|-
| V1
| 7 tiles
|-
| V2
| 11 tiles
|-
| V3
| 15 tiles
|}


==Crafting==
==Crafting==
A smoke bomb requires several common items found in houses, and can be crafted by players that have chosen the [[Occupation|engineer occupation]] or read ''[[Engineer Magazine|Engineer Magazine Vol. 2]]''.
{{Crafting header|ing=3}}
{{Crafting header|ing=3}}
{{Crafting electrical|305|ing=3}}
{{Crafting electrical|305|ing=3}}
|}
|}


You may attach a [[timer]] or other devices for varying effects.
===Upgrades===
The smoke bomb can be upgraded by attaching a [[Crafted Timer|crafted timer]], [[Motion Sensor|motion sensor]], or [[Crafted Trigger|crafted trigger]], each with their own method of triggering.  
{{Crafting header|ing=4}}
{{Crafting header|ing=4}}
{{Crafting electrical|421|ing=4}}
{{Crafting electrical|421|ing=4}}
Line 46: Line 87:


==Item IDs==
==Item IDs==
{| class="pztable"
{| class="pztable" style="text-align: center;"
!Item
! Icon
!Class name
! Item
! Item ID
|-
|-
|Smoke Bomb
| [[File:Smokebomb.png]]
|{{ID|Base.SmokeBomb}}
| Smoke Bomb
| {{ID|Base.SmokeBomb}}
|-
|-
|Smoke Bomb with Timer
| [[File:SmokebombTimer.png]]
|{{ID|Base.SmokeBombTriggered}}
| Smoke Bomb with Timer
| {{ID|Base.SmokeBombTriggered}}
|-
|-
|Smoke Bomb with Sensor (V1)
| [[File:SmokebombTimer.png]]
|{{ID|Base.SmokeBombSensorV1}}
| Smoke Bomb with Sensor (V1)
| {{ID|Base.SmokeBombSensorV1}}
|-
|-
|Smoke Bomb with Sensor (V2)
| [[File:SmokebombTimer.png]]
|{{ID|Base.SmokeBombSensorV2}}
| Smoke Bomb with Sensor (V2)
| {{ID|Base.SmokeBombSensorV2}}
|-
|-
|Smoke Bomb with Sensor (V3)
| [[File:SmokebombTimer.png]]
|{{ID|Base.SmokeBombSensorV3}}
| Smoke Bomb with Sensor (V3)
| {{ID|Base.SmokeBombSensorV3}}
|-
|-
|Remote Smoke Bomb
| [[File:SmokebombTimer.png]]
|{{ID|Base.SmokeBombRemote}}
| Remote Smoke Bomb
| {{ID|Base.SmokeBombRemote}}
|}
|}


Line 77: Line 125:


==Code==
==Code==
[[File:Smokebomb.png]] Smoke Bomb
{{CodeBox|
 
[[File:Smokebomb.png]] Smoke Bomb ({{ID|Base.SmokeBomb}})<br>
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeSnip
{{Retrieved|version=40|incver=43}}
  | lang = java
<pre>
  | line = true
item SmokeBomb
  | start = 3315
         MaxRange         = 10,
  | source = newitems.txt
         Type                 = Weapon,
  | retrieved = true
         MinimumSwingTime = 1.5,
  | version = 41
        SwingAnim         = Bat,
  | incver = 78.16
         UseSelf                 = TRUE,
  | code =
         DisplayName         = Smoke Bomb,
item SmokeBomb
         SwingTime         = 1.5,
    {
         SwingAmountBeforeImpact = 0.1,
        DisplayCategory = Explosives,
         PhysicsObject         = ExplosiveTrap,
         MaxRange = 10,
         MinDamage         = 0,
         Type = Weapon,
         Weight                 = 1.5,
         MinimumSwingTime = 1.5,
         MaxDamage           = 0,
SwingAnim = Throw,
         MaxHitCount       = 0,
         WeaponSprite = Molotov,
         Icon                 = Smokebomb,
         UseSelf = TRUE,
         TriggerExplosionTimer  = 50,
         DisplayName = Smoke Bomb,
         SmokeRange             = 5,
         SwingTime = 1.5,
         CanBePlaced             = TRUE,
         SwingAmountBeforeImpact = 0.1,
         PlacedSprite           = constructedobjects_01_36,
         PhysicsObject = ExplosiveTrap,
         Tooltip                 = Tooltip_Trap,
         MinDamage = 0,
</pre>
         Weight = 1.5,
 
         MaxDamage = 0,
         MaxHitCount = 0,
         Icon = Smokebomb,
         TriggerExplosionTimer  =   50,
         SmokeRange =   5,
         CanBePlaced = TRUE,
         PlacedSprite = constructedobjects_01_36,
         Tooltip = Tooltip_Trap,
        WorldStaticModel = SmokeBomb,
        ExplosionSound = SmokeBombExplode,
        SwingSound = SmokeBombThrow,
    }
}}


<!-- Div to make all of the 'extra' code collapsible so it doesn't clutter the page. -->
[[File:SmokebombTimer.png]] Smoke Bomb with Timer ({{ID|Base.SmokeBombTriggered}})<br>
<div class="mw-collapsible mw-collapsed" style="overflow:auto;">'''Other code'''
{{CodeSnip
<div class="mw-collapsible-content">
  | lang = java
[[File:SmokebombTimer.png]] Smoke Bomb with Timer
  | line = true
  | start = 3454
  | source = newitems.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
item SmokeBombTriggered
    {
        DisplayCategory = Explosives,
        MaxRange = 10,
        Type = Weapon,
        MinimumSwingTime = 1.5,
SwingAnim = Throw,
        WeaponSprite = Molotov,
        UseSelf = TRUE,
        DisplayName = Smoke Bomb with Timer,
        SwingTime = 1.5,
        SwingAmountBeforeImpact = 0.1,
        PhysicsObject = ExplosiveTrap,
        MinDamage = 0,
        Weight = 1.5,
        MaxDamage = 0,
        MaxHitCount = 0,
        Icon = SmokebombTimer,
        ExplosionTimer  =  10,
        SmokeRange  =  5,
        CanBePlaced = TRUE,
        PlacedSprite = constructedobjects_01_36,
        WorldStaticModel = SmokeBombSensor,
        ExplosionSound = SmokeBombExplode,
        SwingSound = SmokeBombThrow,
    }
}}


'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
[[File:SmokebombTimer.png]] Smoke Bomb with Sensor ({{ID|Base.SmokeBombSensorV1}})<br>
{{Retrieved|version=40|incver=43}}
{{CodeSnip
<pre>
  | lang = java
item SmokeBombTriggered
  | line = true
         MaxRange         = 10,
  | start = 3370
         Type                 = Weapon,
  | source = newitems.txt
         MinimumSwingTime = 1.5,
  | retrieved = true
SwingAnim         = Throw,
  | version = 41
         WeaponSprite           = Molotov,
  | incver = 78.16
         UseSelf                 = TRUE,
  | code =
         DisplayName         = Smoke Bomb with Timer,
item SmokeBombSensorV1
         SwingTime         = 1.5,
    {
         SwingAmountBeforeImpact = 0.1,
        DisplayCategory = Explosives,
         PhysicsObject         = ExplosiveTrap,
         MaxRange = 10,
         MinDamage         = 0,
         Type = Weapon,
         Weight                 = 1.5,
         MinimumSwingTime = 1.5,
         MaxDamage         = 0,
SwingAnim = Throw,
         MaxHitCount         = 0,
         WeaponSprite = Molotov,
         Icon                 = SmokebombTimer,
         UseSelf = TRUE,
         ExplosionTimer          = 10,
         DisplayName = Smoke Bomb with Sensor,
         SmokeRange              = 5,
         SwingTime = 1.5,
         CanBePlaced             = TRUE,
         SwingAmountBeforeImpact = 0.1,
         PlacedSprite           = constructedobjects_01_36,
         PhysicsObject = ExplosiveTrap,
</pre>
         MinDamage = 0,
[[File:SmokebombTimer.png]] Smoke Bomb with Sensor (V1)
         Weight = 1.5,
         MaxDamage = 0,
         MaxHitCount = 0,
         SensorRange =   3,
         Icon = SmokebombTimer,
         SmokeRange  =   5,
         ExplosionTimer  =   5,
         CanBePlaced = TRUE,
         PlacedSprite = constructedobjects_01_36,
        WorldStaticModel = SmokeBombSensor,
        ExplosionSound = SmokeBombExplode,
        SwingSound = SmokeBombThrow,
    }
}}


'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
[[File:SmokebombTimer.png]] Smoke Bomb with Sensor ({{ID|Base.SmokeBombSensorV2}})<br>
{{Retrieved|version=40|incver=43}}
{{CodeSnip
<pre>
  | lang = java
item SmokeBombSensorV1
  | line = true
         MaxRange         = 10,
  | start = 3398
         Type                 = Weapon,
  | source = newitems.txt
         MinimumSwingTime = 1.5,
  | retrieved = true
SwingAnim         = Throw,
  | version = 41
         WeaponSprite           = Molotov,
  | incver = 78.16
         UseSelf                 = TRUE,
  | code =
         DisplayName         = Smoke Bomb with Sensor,
item SmokeBombSensorV2
         SwingTime         = 1.5,
    {
         SwingAmountBeforeImpact = 0.1,
        DisplayCategory = Explosives,
         PhysicsObject         = ExplosiveTrap,
         MaxRange = 10,
         MinDamage         = 0,
         Type = Weapon,
         Weight                 = 1.5,
         MinimumSwingTime = 1.5,
         MaxDamage         = 0,
SwingAnim = Throw,
         MaxHitCount         = 0,
         WeaponSprite = Molotov,
         SensorRange             = 3,
         UseSelf = TRUE,
         Icon                 = SmokebombTimer,
         DisplayName = Smoke Bomb with Sensor,
         SmokeRange             = 5,
         SwingTime = 1.5,
         ExplosionTimer         = 5,
         SwingAmountBeforeImpact = 0.1,
         CanBePlaced             = TRUE,
         PhysicsObject = ExplosiveTrap,
         PlacedSprite           = constructedobjects_01_36,
         MinDamage = 0,
</pre>
         Weight = 1.5,
[[File:SmokebombTimer.png]] Smoke Bomb with Sensor (V2)
         MaxDamage = 0,
         MaxHitCount = 0,
         SensorRange =   4,
         Icon = SmokebombTimer,
         SmokeRange =   5,
         ExplosionTimer =   5,
         CanBePlaced = TRUE,
         PlacedSprite = constructedobjects_01_36,
        WorldStaticModel = SmokeBombSensor,
        ExplosionSound = SmokeBombExplode,
        SwingSound = SmokeBombThrow,
    }
}}


'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
[[File:SmokebombTimer.png]] Smoke Bomb with Sensor ({{ID|Base.SmokeBombSensorV3}})<br>
{{Retrieved|version=40|incver=43}}
{{CodeSnip
<pre>
  | lang = java
item SmokeBombSensorV2
  | line = true
         MaxRange         = 10,
  | start = 3426
         Type                 = Weapon,
  | source = newitems.txt
         MinimumSwingTime = 1.5,
  | retrieved = true
SwingAnim         = Throw,
  | version = 41
         WeaponSprite           = Molotov,
  | incver = 78.16
         UseSelf                 = TRUE,
  | code =
         DisplayName         = Smoke Bomb with Sensor,
item SmokeBombSensorV3
         SwingTime         = 1.5,
    {
         SwingAmountBeforeImpact = 0.1,
        DisplayCategory = Explosives,
         PhysicsObject         = ExplosiveTrap,
         MaxRange = 10,
         MinDamage         = 0,
         Type = Weapon,
         Weight                 = 1.5,
         MinimumSwingTime = 1.5,
         MaxDamage         = 0,
SwingAnim = Throw,
         MaxHitCount         = 0,
         WeaponSprite = Molotov,
         SensorRange             = 4,
         UseSelf = TRUE,
         Icon                 = SmokebombTimer,
         DisplayName = Smoke Bomb with Sensor,
         SmokeRange             = 5,
         SwingTime = 1.5,
         ExplosionTimer         = 5,
         SwingAmountBeforeImpact = 0.1,
         CanBePlaced             = TRUE,
         PhysicsObject = ExplosiveTrap,
         PlacedSprite           = constructedobjects_01_36,
         MinDamage = 0,
</pre>
         Weight = 1.5,
[[File:SmokebombTimer.png]] Smoke Bomb with Sensor (V3)
         MaxDamage = 0,
         MaxHitCount = 0,
         SensorRange =   5,
         Icon = SmokebombTimer,
         SmokeRange =   5,
         ExplosionTimer =   5,
         CanBePlaced = TRUE,
         PlacedSprite = constructedobjects_01_36,
        WorldStaticModel = SmokeBombSensor,
        ExplosionSound = SmokeBombExplode,
        SwingSound = SmokeBombThrow,
    }
}}


'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
[[File:SmokebombTimer.png]] Remote Smoke Bomb ({{ID|Base.SmokeBombRemote}})<br>
{{Retrieved|version=40|incver=43}}
{{CodeSnip
<pre>
  | lang = java
item SmokeBombSensorV3
  | line = true
         MaxRange         = 10,
  | start = 3343
         Type                 = Weapon,
  | source = newitems.txt
         MinimumSwingTime = 1.5,
  | retrieved = true
SwingAnim         = Throw,
  | version = 41
         WeaponSprite           = Molotov,
  | incver = 78.16
         UseSelf                 = TRUE,
  | code =
         DisplayName         = Smoke Bomb with Sensor,
item SmokeBombRemote
         SwingTime         = 1.5,
    {
         SwingAmountBeforeImpact = 0.1,
        DisplayCategory = Explosives,
         PhysicsObject         = ExplosiveTrap,
         MaxRange = 10,
         MinDamage         = 0,
         Type = Weapon,
         Weight                 = 1.5,
         MinimumSwingTime = 1.5,
         MaxDamage         = 0,
SwingAnim = Throw,
         MaxHitCount         = 0,
         WeaponSprite = Molotov,
        SensorRange            = 5,
         UseSelf = TRUE,
         Icon                 = SmokebombTimer,
         DisplayName = Remote Smoke Bomb,
         SmokeRange             = 5,
         SwingTime = 1.5,
         ExplosionTimer          = 5,
         SwingAmountBeforeImpact = 0.1,
         CanBePlaced            = TRUE,
         PhysicsObject = ExplosiveTrap,
         PlacedSprite           = constructedobjects_01_36,
         MinDamage = 0,
</pre>
         Weight = 1.5,
[[File:SmokebombTimer.png]] Remote Smoke Bomb
         MaxDamage = 0,
         MaxHitCount = 0,
         Icon = SmokebombTimer,
         SmokeRange =   5,
         CanBePlaced = TRUE,
         CanBeRemote = TRUE,
         PlacedSprite = constructedobjects_01_36,
        WorldStaticModel = SmokeBombSensor,
        ExplosionSound = SmokeBombExplode,
        SwingSound = SmokeBombThrow,
    }
}}
}}


'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
==See also==
{{Retrieved|version=40|incver=43}}
*[[Noise Maker]]
<pre>
*[[Fire Bomb]]
item SmokeBombRemote
        MaxRange         = 10,
        Type                 = Weapon,
        MinimumSwingTime  = 1.5,
SwingAnim         = Throw,
        WeaponSprite            = Molotov,
        UseSelf                 = TRUE,
        DisplayName         = Remote Smoke Bomb,
        SwingTime         = 1.5,
        SwingAmountBeforeImpact = 0.1,
        PhysicsObject        = ExplosiveTrap,
        MinDamage              = 0,
        Weight                 = 1.5,
        MaxDamage         = 0,
        MaxHitCount         = 0,
        Icon                 = SmokebombTimer,
        SmokeRange              = 5,
        CanBePlaced            = TRUE,
        CanBeRemote            = TRUE,
        PlacedSprite            = constructedobjects_01_36,
</pre>
</div></div>


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


[[Category:Bomb and Throwing Items]]
[[Category:Electricals and Transmission (Project)]]
[[Category:Electricals and Transmission (Project)]]

Revision as of 14:32, 1 January 2024

Smoke Bomb
Smoke Bomb
Smoke Bomb Smoke Bomb with Upgrade
General
Category Explosives
Encumbrance
Heavy Load
1.5
Equipped One-handed
Damage
Attack speed 1.5
Range 0–10 tiles
Smoke range 5 tiles
Technical details
Base ID Base.SmokeBomb
Base.SmokeBombTriggered
Base.SmokeBombSensorV1
Base.SmokeBombSensorV2
Base.SmokeBombSensorV3
Base.SmokeBombRemote

A smoke bomb is a throwable bomb.

Usage

A smoke bomb pacifies zombies that are in the area of effect of the bomb when it explodes. It deals no damage to zombies.

Note that although it immediately pacifies zombies in its area, they may still be influenced by horde behavior and continue towards their target. This is especially prevalent if there are many zombies nearby that were unaffected by the smoke vomb which can cause its effects to be almost unnoticeable.

Upgrades

The smoke bomb has various upgrades allowing it to be triggered in several ways, rather than just when thrown.

Sensor upgrade

The smoke bomb with sensor has a motion sensor attached. It can be placed by moving to the desired location, then press RMB on the item in the player's inventory and selecting "Place Smoke Bomb with Sensor" (this is different to "Place Item", which just places the item without arming it). Once placed, it will slowly beep 4 times before beeping rapidly and stopping. Once the beeping stops, the smoke bomb is armed, and will be triggered if movement is detected within a certain distance from the smoke bomb (without any warning). It's important to note that the character that armed the bomb can also trigger it.

There are 3 versions of the sensor upgrade, each with a different range before triggering.

Version Sensor range
V1 3 tiles
V2 4 tiles
V3 5 tiles

Timer upgrade

The smoke bomb with timer has a crafted timer attached. Before placing, the timer can be set by pressing RMB on the item in the player's inventory and selecting "Set time before explosion". The time set is in real world seconds. The method of placing is identical to the sensor upgrade: move to location, RMB on item, and select "Place Smoke Bomb with Timer". It will begin to beep slowly, once for every second, and on the last second it will beep rapidly before exploding.

Remote upgrade

The remote smoke bomb has a crafted trigger attached, allowing it to be detonated remotely. To trigger, a remote controller must first be crafted. Then the remote controller and remote smoke bomb will need to be linked by having both items in the player's inventory and pressing RMB on either the remote or the smoke bomb and selecting "Link to ...". "(Linked)" will then appear next to the two items. If the wrong items have been linked, it can be reset by pressing RMB and selecting "Reset Remote Frequency" (both items must be reset in order to be linked to a new item). Once linked, the smoke bomb can then be placed: move to location, RMB on item, and select "Place Remote Smoke Bomb". Unlike the other upgrades, there will be no beeps, although it is armed. It is triggered by pressing RMB on the linked remote controller and selecting "Trigger".

There are 3 versions of the remote controller, each with a different range that they can be used to trigger the smoke bomb.

Version remote range
V1 7 tiles
V2 11 tiles
V3 15 tiles

Crafting

A smoke bomb requires several common items found in houses, and can be crafted by players that have chosen the engineer occupation or read Engineer Magazine Vol. 2.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
Smokebomb.png
Smoke Bomb
0 XP none Engineer
OR
Engineer Magazine Vol. 2
Coldpack.png
Cold Pack
(consumed)
Newspaper.png
Newspaper x2
(consumed)
Rag.png
Ripped Sheets
(consumed)

Upgrades

The smoke bomb can be upgraded by attaching a crafted timer, motion sensor, or crafted trigger, each with their own method of triggering.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4
Smoke Bomb with Timer
Smoke Bomb with Timer
0 XP Electrical 2 Electronics Magazine Vol.2 Smokebomb.png
Smoke Bomb
(consumed)
TimerCrafted.png
Crafted Timer
(consumed)
ElectronicsScrap.png
Scrap Electronics x2
(consumed)
DuctTape.png
Duct Tape
(1 unit)

(consumed)
Smoke Bomb with Sensor (V1)
Smoke Bomb with Sensor (V1)
0 XP Electrical 2 Electronics Magazine Vol.3 Smokebomb.png
Smoke Bomb
(consumed)
MotionSensor.png
Motion Sensor
(consumed)
ElectronicsScrap.png
Scrap Electronics x2
(consumed)
DuctTape.png
Duct Tape
(1 unit)

(consumed)
Smoke Bomb with Sensor (V2)
Smoke Bomb with Sensor (V2)
0 XP Electrical 4 Electronics Magazine Vol.3 Smokebomb.png
Smoke Bomb
(consumed)
MotionSensor.png
Motion Sensor
(consumed)
ElectronicsScrap.png
Scrap Electronics x3
(consumed)
DuctTape.png
Duct Tape
(1 unit)

(consumed)
Smoke Bomb with Sensor (V3)
Smoke Bomb with Sensor (V3)
0 XP Electrical 6 Electronics Magazine Vol.3 Smokebomb.png
Smoke Bomb
(consumed)
MotionSensor.png
Motion Sensor
(consumed)
ElectronicsScrap.png
Scrap Electronics x4
(consumed)
DuctTape.png
Duct Tape
(1 unit)

(consumed)
Remote Smoke Bomb
Remote Smoke Bomb
0 XP Electrical 6 Electronics Magazine Vol.3 Smokebomb.png
Smoke Bomb
(consumed)
TriggerCrafted.png
Crafted Trigger
(consumed)
ElectronicsScrap.png
Scrap Electronics x2
(consumed)
DuctTape.png
Duct Tape
(1 unit)

(consumed)

Item IDs

Icon Item Item ID
Smokebomb.png Smoke Bomb Base.SmokeBomb
SmokebombTimer.png Smoke Bomb with Timer Base.SmokeBombTriggered
SmokebombTimer.png Smoke Bomb with Sensor (V1) Base.SmokeBombSensorV1
SmokebombTimer.png Smoke Bomb with Sensor (V2) Base.SmokeBombSensorV2
SmokebombTimer.png Smoke Bomb with Sensor (V3) Base.SmokeBombSensorV3
SmokebombTimer.png Remote Smoke Bomb Base.SmokeBombRemote

Gallery

Code

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

Smokebomb.png Smoke Bomb (Base.SmokeBomb)
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item SmokeBomb
    {
        DisplayCategory = Explosives,
        MaxRange	=	10,
        Type	=	Weapon,
        MinimumSwingTime	=	1.5,
		SwingAnim	=	Throw,
        WeaponSprite = Molotov,
        UseSelf	=	TRUE,
        DisplayName	=	Smoke Bomb,
        SwingTime	=	1.5,
        SwingAmountBeforeImpact	=	0.1,
        PhysicsObject	=	ExplosiveTrap,
        MinDamage	=	0,
        Weight	=	1.5,
        MaxDamage	=	0,
        MaxHitCount	=	0,
        Icon	=	Smokebomb,
        TriggerExplosionTimer   =   50,
        SmokeRange  =   5,
        CanBePlaced = TRUE,
        PlacedSprite = constructedobjects_01_36,
        Tooltip = Tooltip_Trap,
        WorldStaticModel = SmokeBomb,
        ExplosionSound = SmokeBombExplode,
        SwingSound = SmokeBombThrow,
    }

SmokebombTimer.png Smoke Bomb with Timer (Base.SmokeBombTriggered)
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item SmokeBombTriggered
    {
        DisplayCategory = Explosives,
        MaxRange	=	10,
        Type	=	Weapon,
        MinimumSwingTime	=	1.5,
		SwingAnim	=	Throw,
        WeaponSprite = Molotov,
        UseSelf	=	TRUE,
        DisplayName	=	Smoke Bomb with Timer,
        SwingTime	=	1.5,
        SwingAmountBeforeImpact	=	0.1,
        PhysicsObject	=	ExplosiveTrap,
        MinDamage	=	0,
        Weight	=	1.5,
        MaxDamage	=	0,
        MaxHitCount	=	0,
        Icon	=	SmokebombTimer,
        ExplosionTimer  =   10,
        SmokeRange  =   5,
        CanBePlaced = TRUE,
        PlacedSprite = constructedobjects_01_36,
        WorldStaticModel = SmokeBombSensor,
        ExplosionSound = SmokeBombExplode,
        SwingSound = SmokeBombThrow,
    }

SmokebombTimer.png Smoke Bomb with Sensor (Base.SmokeBombSensorV1)
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item SmokeBombSensorV1
    {
        DisplayCategory = Explosives,
        MaxRange	=	10,
        Type	=	Weapon,
        MinimumSwingTime	=	1.5,
		SwingAnim	=	Throw,
        WeaponSprite = Molotov,
        UseSelf	=	TRUE,
        DisplayName	=	Smoke Bomb with Sensor,
        SwingTime	=	1.5,
        SwingAmountBeforeImpact	=	0.1,
        PhysicsObject	=	ExplosiveTrap,
        MinDamage	=	0,
        Weight	=	1.5,
        MaxDamage	=	0,
        MaxHitCount	=	0,
        SensorRange =   3,
        Icon	=	SmokebombTimer,
        SmokeRange  =   5,
        ExplosionTimer  =   5,
        CanBePlaced = TRUE,
        PlacedSprite = constructedobjects_01_36,
        WorldStaticModel = SmokeBombSensor,
        ExplosionSound = SmokeBombExplode,
        SwingSound = SmokeBombThrow,
    }

SmokebombTimer.png Smoke Bomb with Sensor (Base.SmokeBombSensorV2)
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item SmokeBombSensorV2
    {
        DisplayCategory = Explosives,
        MaxRange	=	10,
        Type	=	Weapon,
        MinimumSwingTime	=	1.5,
		SwingAnim	=	Throw,
        WeaponSprite = Molotov,
        UseSelf	=	TRUE,
        DisplayName	=	Smoke Bomb with Sensor,
        SwingTime	=	1.5,
        SwingAmountBeforeImpact	=	0.1,
        PhysicsObject	=	ExplosiveTrap,
        MinDamage	=	0,
        Weight	=	1.5,
        MaxDamage	=	0,
        MaxHitCount	=	0,
        SensorRange =   4,
        Icon	=	SmokebombTimer,
        SmokeRange  =   5,
        ExplosionTimer  =   5,
        CanBePlaced = TRUE,
        PlacedSprite = constructedobjects_01_36,
        WorldStaticModel = SmokeBombSensor,
        ExplosionSound = SmokeBombExplode,
        SwingSound = SmokeBombThrow,
    }

SmokebombTimer.png Smoke Bomb with Sensor (Base.SmokeBombSensorV3)
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item SmokeBombSensorV3
    {
        DisplayCategory = Explosives,
        MaxRange	=	10,
        Type	=	Weapon,
        MinimumSwingTime	=	1.5,
		SwingAnim	=	Throw,
        WeaponSprite = Molotov,
        UseSelf	=	TRUE,
        DisplayName	=	Smoke Bomb with Sensor,
        SwingTime	=	1.5,
        SwingAmountBeforeImpact	=	0.1,
        PhysicsObject	=	ExplosiveTrap,
        MinDamage	=	0,
        Weight	=	1.5,
        MaxDamage	=	0,
        MaxHitCount	=	0,
        SensorRange =   5,
        Icon	=	SmokebombTimer,
        SmokeRange  =   5,
        ExplosionTimer  =   5,
        CanBePlaced = TRUE,
        PlacedSprite = constructedobjects_01_36,
        WorldStaticModel = SmokeBombSensor,
        ExplosionSound = SmokeBombExplode,
        SwingSound = SmokeBombThrow,
    }

SmokebombTimer.png Remote Smoke Bomb (Base.SmokeBombRemote)
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item SmokeBombRemote
    {
        DisplayCategory = Explosives,
        MaxRange	=	10,
        Type	=	Weapon,
        MinimumSwingTime	=	1.5,
		SwingAnim	=	Throw,
        WeaponSprite = Molotov,
        UseSelf	=	TRUE,
        DisplayName	=	Remote Smoke Bomb,
        SwingTime	=	1.5,
        SwingAmountBeforeImpact	=	0.1,
        PhysicsObject	=	ExplosiveTrap,
        MinDamage	=	0,
        Weight	=	1.5,
        MaxDamage	=	0,
        MaxHitCount	=	0,
        Icon	=	SmokebombTimer,
        SmokeRange  =   5,
        CanBePlaced = TRUE,
        CanBeRemote = TRUE,
        PlacedSprite = constructedobjects_01_36,
        WorldStaticModel = SmokeBombSensor,
        ExplosionSound = SmokeBombExplode,
        SwingSound = SmokeBombThrow,
    }

See also