Plastic Bag: Difference between revisions

From PZwiki
m (Updated code section, and vehicle distribution)
m (Bump to .16)
Line 1: Line 1:
{{languages|Plastic Bag}}
{{Languages}}{{Header|The Game World|Items|Baggage|type=Baggage|version=Version 41|incver=78.16}}{{Infobox container
{{header|The Game World|Items|Baggage|type=Baggage|version=Version 41|incver=78}}{{Infobox container
|display_name=Plastic Bag
| display_name = Plastic Bag
|name_colour=Container
| name_colour = Container
|name_text_colour=Container
| name_text_colour = Container
|image=Plasticbag.png
| image = Plasticbag.png
|category=Container
| category = Container
|weight=0.1
| weight = 0.1
|equipped=One-handed
| equipped = One-handed
|capacity=8
| capacity = 8
|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]].


Line 89: Line 88:
==Code==
==Code==
'''''From clothing_bags.txt (Project Zomboid directory/media/scripts/clothing)'''''
'''''From clothing_bags.txt (Project Zomboid directory/media/scripts/clothing)'''''
{{Retrieved|version=41|incver=78}}
{{Retrieved|version=41|incver=78.16}}
<pre>     item Plasticbag
<pre>     item Plasticbag
     {
     {

Revision as of 13:27, 1 April 2023

The Game WorldItemsBaggagePlastic 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

From clothing_bags.txt (Project Zomboid directory/media/scripts/clothing) 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