Smoke Bomb: Difference between revisions

From PZwiki
m (Added navbox)
(Spiffied up the code section)
Line 88: Line 88:


==Code==
==Code==
[[File:Smokebomb.png]] Smoke Bomb
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=40|incver=43}}
{{Retrieved|version=40|incver=43}}
Line 113: Line 115:
</pre>
</pre>


<!-- Div to make all of the 'extra' code collapsible so it doesn't clutter the page. -->
<div class="mw-collapsible mw-collapsed" style="overflow:auto;">'''Other code'''
<div class="mw-collapsible-content">
[[File:SmokebombTimer.png]] Smoke Bomb with Timer
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=40|incver=43}}
<pre>
<pre>
item SmokeBombTriggered
item SmokeBombTriggered
Line 135: Line 145:
         PlacedSprite            = constructedobjects_01_36,
         PlacedSprite            = constructedobjects_01_36,
</pre>
</pre>
[[File:SmokebombTimer.png]] Smoke Bomb with Sensor
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=40|incver=43}}
<pre>
<pre>
item SmokeBombSensorV1
item SmokeBombSensorV1
Line 158: Line 172:
         PlacedSprite            = constructedobjects_01_36,
         PlacedSprite            = constructedobjects_01_36,
</pre>
</pre>
[[File:SmokebombTimer.png]] Smoke Bomb with Sensor
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=40|incver=43}}
<pre>
<pre>
item SmokeBombSensorV2
item SmokeBombSensorV2
Line 181: Line 199:
         PlacedSprite            = constructedobjects_01_36,
         PlacedSprite            = constructedobjects_01_36,
</pre>
</pre>
[[File:SmokebombTimer.png]] Smoke Bomb with Sensor
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=40|incver=43}}
<pre>
<pre>
item SmokeBombSensorV3
item SmokeBombSensorV3
Line 204: Line 226:
         PlacedSprite            = constructedobjects_01_36,
         PlacedSprite            = constructedobjects_01_36,
</pre>
</pre>
[[File:SmokebombTimer.png]] Remote Smoke Bomb
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=40|incver=43}}
<pre>
<pre>
item SmokeBombRemote
item SmokeBombRemote
Line 226: Line 252:
         PlacedSprite            = constructedobjects_01_36,
         PlacedSprite            = constructedobjects_01_36,
</pre>
</pre>
</div></div>


{{Navbox/Electricity and Engineering}}
{{Navbox/Electricity and Engineering}}

Revision as of 16:52, 22 June 2021

WhiskeyHalf.png
This article may be in need of improvement.
Editors are encouraged to add any missing information to the article, while verifying that the article's current content is correct.
Smoke Bomb
Smoke Bomb
Smoke Bomb with Upgrade
General
Category Weapon
Encumbrance
Heavy Load
1.5
Equipped One-handed
Damage
Attack speed 1.5
Range 0–10 tiles
Smoke range 5 tiles
Smoke timer 50
Technical details
Base ID See Item IDs


The Smoke Bomb is a thrown bomb.

Use

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 Bomb which can cause its effects to be almost unnoticeable.

Crafting

Output Ingredients Description Skill Level












You may attach a timer or other devices for varying effects.

Output Ingredients Description Skill Level




































Gallery

Item IDs

Item Class name
Smoke Bomb Base.SmokeBomb
Smoke Bomb with Timer Base.SmokeBombTriggered
Smoke Bomb with Sensor (V1) Base.SmokeBombSensorV1
Smoke Bomb with Sensor (V2) Base.SmokeBombSensorV2
Smoke Bomb with Sensor (V3) Base.SmokeBombSensorV3
Remote Smoke Bomb Base.SmokeBombRemote

Code

Smokebomb.png Smoke Bomb

From newitems.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 40.43

item SmokeBomb
        MaxRange	        = 10,
        Type	                = Weapon,
        MinimumSwingTime	= 1.5,
        SwingAnim	        = Bat,
        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,


Other code

SmokebombTimer.png Smoke Bomb with Timer

From newitems.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 40.43

item SmokeBombTriggered
        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,

SmokebombTimer.png Smoke Bomb with Sensor

From newitems.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 40.43

item SmokeBombSensorV1
        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,

SmokebombTimer.png Smoke Bomb with Sensor

From newitems.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 40.43

item SmokeBombSensorV2
        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,

SmokebombTimer.png Smoke Bomb with Sensor

From newitems.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 40.43

item SmokeBombSensorV3
        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,

SmokebombTimer.png Remote Smoke Bomb

From newitems.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 40.43

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,

Template:Navbox/Electricity and Engineering