Gas Can: Difference between revisions

From PZwiki
m (Version bump)
m (Distribution table fix)
 
(6 intermediate revisions by 2 users not shown)
Line 3: Line 3:
{{Infobox item
{{Infobox item
|name=Gas Can
|name=Gas Can
|name_colour=Tool
|name_text_colour=Tool
|model=GasCan_Model.png
|model=GasCan_Model.png
|icon=Petrol.png
|icon=Petrol.png
|icon_name=Gas Can
|icon_name=Gas Can
|weight=5 <small>(Full)</small><br>1.6 <small>(Empty)</small>
|weight=5 <small>(Full)</small><br>1.6 <small>(Empty)</small>
|primary_use=•Refuel [[vehicles|vehicle]] and [[generator]]
|primary_use=Refuel [[vehicles|vehicle]] and [[generator]]
|secondary_use=•Start [[fire]]
|secondary_use=Start [[fire]]
|max_units=8
|max_units=8
|contents=Gasoline
|contents=Gasoline
Line 25: Line 23:


===Refilling===
===Refilling===
It is possible to refill a gas can by either siphoning gas from a vehicle, or at a [[Gas pump|gas pump]]. It should be noted that without a source of power, a gas pump will not function. An empty gas can can only be filled with gasoline, and cannot be used to store water.
It is possible to refill a gas can by either siphoning gas from a vehicle, or at a [[gas pump]]. It should be noted that without a source of power, a gas pump will not function. An empty gas can can only be filled with gasoline, and cannot be used to store water.


===Recipes===
===Recipes===
Line 37: Line 35:
The loot distributions can be found in the table(s) below.
The loot distributions can be found in the table(s) below.


{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
<!--BOT FLAG|PetrolCan|41.78.16-->
! colspan="4" | Containers
{{Clear}}
|-
<div class="togglebox theme-red">
! Building/Room
    <div>PetrolCan distribution
! Container
        <span class="mw-customtoggle-togglebox-PetrolCan" 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>
! style="width: 3.2em;" | Rolls
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-PetrolCan">
! style="width: 3.2em;" | Chance
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
|-
<div class="pz-container">
|all
<div id="containers" style="flex-basis:30%">
|[[toolcabinet]]
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
|4
    |+ {{ll|Containers}}
|1
    ! Building/Room
|-
    ! Container
|rowspan="2"|carsupply
    ! Effective chance
|[[counter]]
    |-
|4
    | garagestorage
|1
    | {{ll|counter}}
|-
    | 2.81%
|[[counter]]
    |-
|4
    | garagestorage
|2
    | {{ll|metal_shelves}}
|-
    | 2.81%
|rowspan="2"|conveniencestore
    |}
|[[shelves]]
</div>
|4
<div id="vehicles" style="flex-basis:30%">
|1
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
|-
    |+ {{ll|Vehicles}}
|[[shelves]]
    ! Type
|4
    ! Container
|1
    ! Effective chance
|-
    |-
|rowspan="2"|garagestorage
    | Fossoil
|[[counter]]
    | {{ll|Truck Bed}}
|4
    | 10.78%
|1
    |}
|-
</div>
|[[counter]]
    </div><div style="clear: both;"></div>
|4
    </div></div><div class="toggle large mw-customtoggle-togglebox-PetrolCan" title="{{int:show}}/{{int:hide}}"></div></div>
|2
<!--END BOT FLAG|PetrolCan|41.78.16-->
|-
|rowspan="2"|gasstorage
|[[crate]]
|4
|1
|-
|[[crate]]
|4
|2
|}


==Code==
==Code==

Latest revision as of 19:15, 30 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Gas Can
GasCan Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
5 (Full)
1.6 (Empty)
Function
Refuel vehicle and generator
Start fire
Properties
Contents
Gasoline
Capacity
8 units
Technical
Item ID
Base.PetrolCan
Base.EmptyPetrolCan

A gas can is a drainable item that becomes an empty gas can once used.

Usage

Fuel

A gas can contain gasoline which can be poured into vehicles, filling their gas tank. Along with vehicles, it is also the primary source of fuel for generators. One full gas can will refill 80% of a generator's fuel tank.

Fire starting

A gas can be used as a kindling when starting a campfire. Having a gas can in the secondary slot, with a lighter in the primary, it is possible to burn corpses, removing any negative moodles that are caused by their presence.

Refilling

It is possible to refill a gas can by either siphoning gas from a vehicle, or at a gas pump. It should be noted that without a source of power, a gas pump will not function. An empty gas can can only be filled with gasoline, and cannot be used to store water.

Recipes

A full gas can is used in crafting Molotov cocktails and flame traps. Note that the flame trap can only be crafted by those with the engineer occupation, and cannot be learnt with a recipe magazine.

Product Ingredients Tools Requirements Workstation XP
Molotov.png
Molotov Cocktail
One of:
WhiskeyEmpty.png Empty Bottle (disambiguation) ×1
WineEmpty.png Empty Bottle (disambiguation) ×1
Wine2Empty.png Empty Bottle (disambiguation) ×1
One of:
Rag.png Ripped Sheets ×1
RagDirty.png Dirty Rag ×1
Petrol.png
Gas Can
none none none
BottleWithGas.png
Fire Bomb
WaterBottle Empty.png Empty Bottle ×1
Petrol.png Gas Can ×4 unit(s)
Rag.png Ripped Sheets ×1
none
Profession engineer.png
Engineer occupation
none none

Distribution

The loot distributions can be found in the table(s) below.

PetrolCan distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
garagestorage counter 2.81%
garagestorage metal_shelves 2.81%
Vehicles
Type Container Effective chance
Fossoil Trunk 10.78%

Code

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

Petrol.png PetrolCan
Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
item PetrolCan
	{
	    DisplayCategory = VehicleMaintenance,
		Weight	=	5,
		Type	=	Drainable,
		UseWhileEquipped	=	FALSE,
		UseDelta	=	0.125,
		DisplayName	=	Gas Can,
		Icon	=	Petrol,
		ReplaceOnDeplete	=	EmptyPetrolCan,
		StaticModel = GasCan,
		ReplaceInSecondHand = Bag_GasCan_LHand holdingbagleft,
        ReplaceInPrimaryHand = Bag_GasCan_RHand holdingbagright,
        WorldStaticModel = GasCan_Ground,
		Tags = Petrol,
	}

Petrol.png EmptyPetrolCan
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item EmptyPetrolCan
	{
	    DisplayCategory = VehicleMaintenance,
		Weight	=	1.6,
		Type	=	Normal,
		DisplayName	=	Empty Gas Can,
		Icon	=	Petrol,
		StaticModel = GasCan,
		SurvivalGear = TRUE,
		ReplaceInSecondHand = Bag_GasCan_LHand holdingbagleft,
        ReplaceInPrimaryHand = Bag_GasCan_RHand holdingbagright,
        WorldStaticModel = GasCan_Ground,
        Tags = EmptyPetrol,
        ReplaceTypes = PetrolSource PetrolCan,
	}

See also