Normal Hiking Bag: Difference between revisions

From PZwiki
Normal Hiking Bag
(→‎Code: CodeBox update)
(→‎Code: Update codebox to B41)
Tag: Reverted
Line 132: Line 132:
| {{CodeSnip
| {{CodeSnip
   | lang = java
   | lang = java
   | line = false
   | line = true
   | start =
   | start = 47
   | source = newitems.txt
   | source = clothing_bags.txt
   | retrieved = true
   | retrieved = true
   | version = 40
   | version = 41.78.16
  | incver = 6
   | code =
   | code =
item NormalHikingBag
    item Bag_NormalHikingBag
{
    {
  WeightReduction         = 70,
        DisplayCategory = Bag,
  Weight                 = 0.5,
        WeightReduction = 70,
  Type                   = Container,
        Weight = 1.2,
  Capacity               = 20,
        Type = Container,
  DisplayName             = Normal Hiking Bag,
        Capacity = 20,
  Icon                    = Duffelbag,
        DisplayName = Hiking Bag,
  CanBeEquipped           = Back,
        IconsForTexture = Hiking_Blue;Hiking_Green;Hiking_Red,
   OpenSound              = PZ_OpenBag,
        CanBeEquipped = Back,
   CloseSound              = PZ_CloseBag,
        OpenSound   =   OpenBag,
   PutInSound              = PZ_PutInBag,
        CloseSound   =   CloseBag,
}
        PutInSound  =   PutItemInBag,
        ClothingItem = Bag_HikingBag,
        BloodLocation = Bag,
        RunSpeedModifier = 0.96,
        AttachmentReplacement = Bag,
        ReplaceInSecondHand = Bag_HikingBag_LHand holdingbagleft,
        ReplaceInPrimaryHand = Bag_HikingBag_RHand holdingbagright,
        WorldStaticModel = HikingBag_Ground,
        SoundParameter = EquippedBaggageContainer HikingBag,
    }
   }}
   }}
}}
}}

Revision as of 08:58, 2 February 2024

Template:Header/sandbox2

Spiffo controlyourself.png
This page was last updated for an older version (40.6).
The current stable version is 41.78.16, released 2022-12-12, so information on this page may be inaccurate. Help get this page updated by adding any missing content. [edit]
Please update the version after updating the page.
BoxSmall.png
This item has been removed from the game.
It has been replaced by Hiking Bag.
Normal Hiking Bag
Normal Hiking Bag
General
Category Container
Encumbrance
Heavy Load
0.5
Body location Back
Capacity 20
Encumbrance reduction 70%
Technical details
Item ID Base.NormalHikingBag

A normal hiking bag is a container item.

Usage

A normal hiking bag can be equipped on the back, allowing the player to equip other items in their hands at the same time. It has the second best item weight reduction and capacity of all the bags, exceeded only by the big hiking bag.

Normal hiking bags can spawn with:

Vest.gif Vest
ShirtAnim.gif Sweater
ShirtAnim.gif Blouse
Trousers.gif Pants (disambiguation)
SkirtAnim.gif Skirt
Shoes.png Shoes (disambiguation)
SocksAnim.gif Socks
UnderwearAnim.gif Underwear
TZ TentKit.png Tent Kit

Distribution

It can usually be found inside wardrobes, but it is slightly more common to find a duffel bag or school bag. It is also the only bag that can be found inside the police station storage.

Buildings

Building/Room Container Rolls Chance
All Male Corpse 1 0.1
Female Corpse 1 0.1
Wardrobe 4 0.8
Bedroom Wardrobe 2 0.8
Changeroom Locker 2 0.8
Motel Room (occupied) Other 2 0.1
Police Storage Other 4 1
Sport Store Shelves 3 0.8
Clothing Rack 3 0.8
Sport Storage Metal Shelves 3 0.8

Vehicles

Profession Container Rolls Chance
Golf Trunk 2 3
Police Trunk 4 1
Taxi Trunk 3 2

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 Bag_NormalHikingBag
    {
        DisplayCategory = Bag,
        WeightReduction	=	70,
        Weight	=	1.2,
        Type	=	Container,
        Capacity	=	20,
        DisplayName	=	Hiking Bag,
        IconsForTexture	=	Hiking_Blue;Hiking_Green;Hiking_Red,
        CanBeEquipped = Back,
        OpenSound   =   OpenBag,
        CloseSound   =   CloseBag,
        PutInSound   =   PutItemInBag,
        ClothingItem = Bag_HikingBag,
        BloodLocation = Bag,
        RunSpeedModifier = 0.96,
        AttachmentReplacement = Bag,
        ReplaceInSecondHand = Bag_HikingBag_LHand holdingbagleft,
        ReplaceInPrimaryHand = Bag_HikingBag_RHand holdingbagright,
        WorldStaticModel = HikingBag_Ground,
        SoundParameter = EquippedBaggageContainer HikingBag,
    }

See also