Flashlight: Difference between revisions
m (Fix typo: Added HandTorch item properties with Flashlight item properties) |
m (Distribution table update) |
||
(33 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Electronics}} | ||
{{ | {{Page version|41.78.16}} | ||
| | {{Infobox item | ||
| | |name=Flashlight | ||
|model=FlashLight_Model.png | |||
|icon=Flashlight.png | |||
| | |icon_name=Flashlight | ||
|category=Light Source | |||
| | |||
| | |||
|weight=1 | |weight=1 | ||
| | |function=Light source | ||
|max_units= | |max_units=0.0009 | ||
| | |energy_source=[[Battery]] | ||
|light_distance = 25 | |metal_value=10 | ||
|light_strength = 2 | |light_distance=25 | ||
|torch_cone = True | |light_strength=2 | ||
| | |torch_cone=True | ||
}}''' | |item_id=Base.Torch | ||
}} | |||
'''Flashlight''' is a drainable [[Items|item]] that provides a source of light. | |||
==Usage== | ==Usage== | ||
The flashlight is an item that can be used to provide light for the [[player]] when it is dark. To use it, the player must first equip it in either their primary or secondary hand. If the player has an [[Items|item]] such as a [[weapon]] already equipped, equipping the flashlight will make the player hold the item one-handed if possible, otherwise it will be unequipped. | |||
Flashlights | The light can be toggled by pressing {{key|F}}. The light will shine in a cone reaching up to 25 tiles in front of the player. The flashlight is significantly brighter than the [[Hand Torch|hand torch]] and is the strongest equippable light source in the game. | ||
Flashlights require a [[battery]] to function. There is a chance that the flashlight will spawn with one already installed. While the light is turned on, the battery will gradually drain. When the battery is low, the light will begin to flicker and once completely drained the battery will be consumed. If the player has another battery, they can install it to continue using the flashlight. A full battery can also be taken out of a flashlight if needed for another device. | |||
==Crafting== | ==Crafting== | ||
{{Crafting | {{Crafting/sandbox2 | ||
|flashlight | |||
|battery | |||
}} | |||
===Carpentry=== | ===Carpentry=== | ||
{{Crafting/sandbox2 | |||
|lamp_on_pillar | |||
}} | |||
{{ | ==Trivia== | ||
{{ | *While the [[torch]] and flashlight are two separate items in game, they often refer to the same real world item. Flashlight is the more common term in North America, while torch is most common in other English-speaking countries. | ||
|} | |||
==Gallery== | |||
<gallery> | |||
Flashlight Example.png|A player holding a flashlight at night | |||
</gallery> | |||
==Distribution== | |||
The loot distributions can be found in the table(s) below. | |||
<!--BOT FLAG|Torch|41.78.16--> | |||
{{clear}} | |||
<div class="togglebox theme-red"> | |||
<div>Torch distribution | |||
<span class="mw-customtoggle-togglebox-Torch" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div> | |||
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Torch"> | |||
<div class="toggle-content"><div style="display: flex;"><div style="float:left;"> | |||
{| class="wikitable theme-red" style="margin-right:15px; width:95%;" | |||
|+ {{ll|Containers}} | |||
! Building / Room | |||
! Container | |||
! Rolls | |||
! Chance | |||
|- | |||
| Not referenced | |||
| {{ll|GeneratorRoom}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| Not referenced | |||
| {{ll|StoreShelfElectronics}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| all | |||
| {{ll|crate}} | |||
| 1 | |||
| 0.2 | |||
|- | |||
| all | |||
| {{ll|junk}} | |||
| 1 | |||
| 2.0 | |||
|- | |||
| all | |||
| {{ll|militarycrate}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| all | |||
| {{ll|other}} | |||
| 1 | |||
| 4.0 | |||
|- | |||
| armyhanger | |||
| {{ll|counter}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| armysurplus | |||
| {{ll|counter}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| bedroom | |||
| {{ll|crate}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| bedroom | |||
| {{ll|crate}} | |||
| 1 | |||
| 0.4 | |||
|- | |||
| carsupply | |||
| {{ll|metal_shelves}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| carsupply | |||
| {{ll|shelves}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| closet | |||
| {{ll|crate}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| controlroom | |||
| {{ll|counter}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| departmentstorage | |||
| {{ll|metal_shelves}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| electronicsstorage | |||
| {{ll|shelves}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| empty | |||
| {{ll|crate}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| kitchen | |||
| {{ll|counter}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| mechanic | |||
| {{ll|metal_shelves}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| toolstore | |||
| {{ll|counter}} | |||
| 4 | |||
| 4.0 | |||
|} | |||
</div> | |||
<div style="float:left;"> | |||
{| class="wikitable theme-red" style="margin-right:15px; width:95%;" | |||
|+ {{ll|Vehicles}} | |||
! Vehicle Type/Location | |||
! Rolls | |||
! Chance | |||
|- | |||
| TransitTruckBed | |||
| 4 | |||
| 2 | |||
|} | |||
</div> | |||
</div><div style="clear:both;"></div> | |||
</div></div><div class="toggle large mw-customtoggle-togglebox-Torch" title="{{int:show}}/{{int:hide}}"></div></div> | |||
<!--END BOT FLAG|Torch|41.78.16--> | |||
==Code== | ==Code== | ||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = true | |||
LightDistance | | start = 1252 | ||
Weight | | source = items.txt | ||
DisappearOnUse | | retrieved = true | ||
Type | | version = 41.78.16 | ||
TorchCone | | code = | ||
UseDelta | item Torch | ||
LightStrength | { | ||
TorchDot | DisplayCategory = LightSource, | ||
DisplayName | LightDistance = 25, | ||
ActivatedItem | Weight = 1, | ||
Icon | DisappearOnUse = FALSE, | ||
MetalValue | Type = Drainable, | ||
cantBeConsolided | TorchCone = TRUE, | ||
StaticModel | UseDelta = 0.0009, | ||
primaryAnimMask | LightStrength = 2, | ||
TorchDot = 0.66, | |||
DisplayName = Flashlight, | |||
ActivatedItem = TRUE, | |||
Icon = Flashlight, | |||
MetalValue = 10, | |||
cantBeConsolided = TRUE, | |||
StaticModel = FlashLight, | |||
primaryAnimMask = HoldingTorchRight, | |||
secondaryAnimMask = HoldingTorchLeft, | |||
WorldStaticModel = FlashLightGround, | |||
} | |||
}} | |||
}} | |||
==See also== | ==See also== | ||
Line 82: | Line 219: | ||
*[[Hand Torch]] | *[[Hand Torch]] | ||
{{ | {{Navbox items|survival}} | ||
[[Category: | |||
[[Category:Light sources]] |
Latest revision as of 15:30, 24 April 2024
Flashlight is a drainable item that provides a source of light.
Usage
The flashlight is an item that can be used to provide light for the player when it is dark. To use it, the player must first equip it in either their primary or secondary hand. If the player has an item such as a weapon already equipped, equipping the flashlight will make the player hold the item one-handed if possible, otherwise it will be unequipped.
The light can be toggled by pressing F. The light will shine in a cone reaching up to 25 tiles in front of the player. The flashlight is significantly brighter than the hand torch and is the strongest equippable light source in the game.
Flashlights require a battery to function. There is a chance that the flashlight will spawn with one already installed. While the light is turned on, the battery will gradually drain. When the battery is low, the light will begin to flicker and once completely drained the battery will be consumed. If the player has another battery, they can install it to continue using the flashlight. A full battery can also be taken out of a flashlight if needed for another device.
Crafting
Product | Ingredients | Tools | Requirements | Workstation | XP |
---|---|---|---|---|---|
Flashlight |
Flashlight ×1 Battery ×1 |
none | none | none | none |
Battery |
One of: Flashlight ×1 Hand Torch ×1 Rubber Duck ×1 |
none | none | none | none |
Carpentry
Product | Ingredients | Tools | Requirements | Workstation | XP |
---|---|---|---|---|---|
Lamp on Pillar |
Plank ×2 Nails ×4 Rope ×1 Flashlight ×1 |
Hammer (tag) |
Carpentry 4 | none | 1.25 Carpentry |
Trivia
- While the torch and flashlight are two separate items in game, they often refer to the same real world item. Flashlight is the more common term in North America, while torch is most common in other English-speaking countries.
Gallery
Distribution
The loot distributions can be found in the table(s) below.
Building / Room | Container | Rolls | Chance |
---|---|---|---|
Not referenced | GeneratorRoom | 4 | 4.0 |
Not referenced | StoreShelfElectronics | 4 | 4.0 |
all | crate | 1 | 0.2 |
all | junk | 1 | 2.0 |
all | militarycrate | 4 | 4.0 |
all | other | 1 | 4.0 |
armyhanger | counter | 4 | 4.0 |
armysurplus | counter | 4 | 4.0 |
bedroom | crate | 4 | 4.0 |
bedroom | crate | 1 | 0.4 |
carsupply | metal_shelves | 4 | 4.0 |
carsupply | shelves | 4 | 4.0 |
closet | crate | 4 | 4.0 |
controlroom | counter | 4 | 4.0 |
departmentstorage | metal_shelves | 4 | 4.0 |
electronicsstorage | shelves | 4 | 4.0 |
empty | crate | 4 | 4.0 |
kitchen | counter | 4 | 4.0 |
mechanic | metal_shelves | 4 | 4.0 |
toolstore | counter | 4 | 4.0 |
Vehicle Type/Location | Rolls | Chance |
---|---|---|
TransitTruckBed | 4 | 2 |
Code
Source: ProjectZomboid\media\scripts\items.txt
item Torch
{
DisplayCategory = LightSource,
LightDistance = 25,
Weight = 1,
DisappearOnUse = FALSE,
Type = Drainable,
TorchCone = TRUE,
UseDelta = 0.0009,
LightStrength = 2,
TorchDot = 0.66,
DisplayName = Flashlight,
ActivatedItem = TRUE,
Icon = Flashlight,
MetalValue = 10,
cantBeConsolided = TRUE,
StaticModel = FlashLight,
primaryAnimMask = HoldingTorchRight,
secondaryAnimMask = HoldingTorchLeft,
WorldStaticModel = FlashLightGround,
}