Plastic Bag: Difference between revisions

From PZwiki
(→‎Code: Codebox Update)
m (Minor fixes)
Line 1: Line 1:
{{Languages}}{{Header|Project Zomboid|Items|Baggage|type=Baggage|version=Version 41|incver=78.16}}{{Infobox container
{{Languages}}
{{Header|Project Zomboid|Items|Baggage|type=Baggage|version=Version 41|incver=78.16}}
{{Infobox container
|display_name=Plastic Bag
|display_name=Plastic Bag
|name_colour=Container
|name_colour=Container
Line 12: Line 14:
|weight_reduction=30
|weight_reduction=30
|class_name=Base.Plasticbag
|class_name=Base.Plasticbag
}}A '''plastic bag''' is a common container [[item]].
}}
A '''plastic bag''' is a common container [[item]].


==Usage==
==Usage==
A plastic bag has a poor capacity and average weight reduction. It can be found in most kitchens and vehicles, making it a good substitute until something better is found. It must be equipped in either the primary or secondary hand to be accessed and can usually be dropped if a [[backpack]] is found.
A plastic bag has a poor capacity and average weight reduction. It can be found in most kitchens and vehicles, making it a good substitute until something better is found. It must be equipped in either the primary or secondary hand to be accessed, and can usually be dropped if a [[backpack]] is found.


'''Plastic bags can spawn with:'''
'''Plastic bags can spawn with:'''
Line 70: Line 73:
|2
|2
|0.5
|0.5
|-
|}
|}


Line 85: Line 87:
|4
|4
|10
|10
|-
|}
|}


== Code ==
==Code==
{{CodeBox
{{CodeBox
| {{CodeSnip
| {{CodeSnip

Revision as of 23:00, 31 January 2024

Project ZomboidItemsBaggagePlastic Bag
Plastic Bag
Plastic Bag
Plastic Bag
General
Category Container
Encumbrance
Heavy Load
0.1
Body location One-handed
Capacity 8
Encumbrance reduction 30%
Technical details
Item ID Base.Plasticbag

A plastic bag is a common container item.

Usage

A plastic bag has a poor capacity and average weight reduction. It can be found in most kitchens and vehicles, making it a good substitute until something better is found. It must be equipped in either the primary or secondary hand to be accessed, and can usually be dropped if a backpack is found.

Plastic bags can spawn with:

Plasticbag.png Plastic Bag

Distribution

Buildings

Building/Room Container Rolls Chance
All Male Corpse 1 0.1
Female Corpse 1 0.1
Plastic Bag 3 5 (x4)
Tote Bag 10 50 (x7 +55)
Kitchen Counter 2 9
Spiffo's Kitchen Counter 6 3 (x2)
Pile-o-crepe Kitchen Counter 6 3 (x3)
Motel Room (occupied) Other 2 0.5

Vehicles

Profession Container Rolls Chance
All Trunk 4 10

Code

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

Source: ProjectZomboid\media\scripts\clothing\clothing_bags.txt

Retrieved: Build 41.78.16
item Plasticbag
{
    DisplayCategory = Container,
    WeightReduction	=	30,
    Weight	=	0.1,
    Type	=	Container,
    Capacity	=	8,
    DisplayName	=	Plastic Bag,
    Icon	=	Plasticbag,
    ReplaceInSecondHand = Bag_Plasticbag_LHand holdingbagleft,
    ReplaceInPrimaryHand = Bag_Plasticbag_RHand holdingbagright,
    WorldStaticModel = PlasticBag_Ground,
    SoundParameter = EquippedBaggageContainer PlasticBag,
}

See also