Fanny Pack: Difference between revisions

From PZwiki
(→‎Code: CodeBox update)
Tag: Reverted
(Undo revision 215111 by Calvy (talk) Missing back variant)
Tag: Undo
Line 47: Line 47:


==Code==
==Code==
{{CodeBox
'''''From clothing_bags.txt (Project Zomboid directory/media/scripts/clothing)'''''
| {{CodeSnip
 
   | lang = java
''Front''
   | line = false
{{Retrieved|version=41|incver=55}}
   | start =  
<pre>
  | source = clothing_bags.txt
    item Bag_FannyPackFront
  | retrieved = true
    {
  | version = 41
        WeightReduction = 50,
  | incver = 55
        ClothingItemExtra = Bag_FannyPackBack,
  | code =
        ClothingItemExtraOption = FannyPack_WearBack,
item Bag_FannyPackFront
        clothingExtraSubmenu = FannyPack_WearFront,
{
        Weight = 0.2,
    WeightReduction = 50,
        Type = Container,
    ClothingItemExtra = Bag_FannyPackBack,
        Capacity = 1,
    ClothingItemExtraOption = FannyPack_WearBack,
        DisplayName = Fanny Pack (Front),
    clothingExtraSubmenu = FannyPack_WearFront,
        Icon = FannyPack,
    Weight = 0.2,
        OpenSound   =   OpenBag,
    Type = Container,
        CloseSound   =   CloseBag,
    Capacity = 1,
        PutInSound   =   PutItemInBag,
    DisplayName = Fanny Pack (Front),
        BodyLocation = FannyPackFront,
    Icon = FannyPack,
        ClothingItem = Bag_FannyPackFront,
    OpenSound = OpenBag,
        CanBeEquipped = FannyPackFront,
    CloseSound = CloseBag,
        RunSpeedModifier = 0.98,
    PutInSound = PutItemInBag,
        WorldStaticModel = FannyPack_Ground,
    BodyLocation = FannyPackFront,
    }
    ClothingItem = Bag_FannyPackFront,
</pre>
    CanBeEquipped = FannyPackFront,
 
    RunSpeedModifier = 0.98,
''Back''
    WorldStaticModel = FannyPack_Ground,
{{Retrieved|version=41|incver=55}}
}
<pre>
  }}
    item Bag_FannyPackBack
}}
    {
        WeightReduction = 50,
        ClothingItemExtra = Bag_FannyPackFront,
        ClothingItemExtraOption = FannyPack_WearFront,
        clothingExtraSubmenu = FannyPack_WearBack,
        Weight = 0.2,
        Type = Container,
        Capacity = 1,
        DisplayName = Fanny Pack (Back),
        Icon = FannyPack,
        OpenSound   =   OpenBag,
        CloseSound   =   CloseBag,
        PutInSound   =   PutItemInBag,
        BodyLocation = FannyPackBack,
        ClothingItem = Bag_FannyPackBack,
        CanBeEquipped = FannyPackBack,
        RunSpeedModifier = 0.98,
        WorldStaticModel = FannyPack_Ground,
    }
</pre>
 
{{Navbox equipment}}
{{Navbox equipment}}
[[Category:Bags]]

Revision as of 02:38, 1 February 2024

Project ZomboidItemsBaggageFanny Pack
Fanny Pack
Fanny Pack
Fanny Pack
General
Category Container
Encumbrance
Heavy Load
0.2
Body location Fanny Pack Front
OR
Fanny Pack Back
Capacity 1
Encumbrance reduction 50%
Speed
Run speed 98%
Technical details
Item ID Base.Bag_FannyPackFront
Base.Bag_FannyPackBack

A fanny pack is a container item.

Usage

The fanny pack can be worn on the front or back of the character. It has the lowest capacity of all the bags, however it is useful for carrying small items like bandages, medicine, or cigarettes. Two can be worn at once alongside the backpack of your choice, as they occupy unique slots on your character. Additionally, organized will increase fanny pack capacity to 2 making them twice as useful.

Distribution

Buildings

Fanny packs can be found in lockers and wardrobes with an 8% spawn chance.

NPCs

Zombies can rarely spawn wearing a fanny pack.

Gallery

Code

From clothing_bags.txt (Project Zomboid directory/media/scripts/clothing)

Front Retrieved: Build 41.55

    item Bag_FannyPackFront
    {
        WeightReduction	=	50,
        ClothingItemExtra = Bag_FannyPackBack,
        ClothingItemExtraOption = FannyPack_WearBack,
        clothingExtraSubmenu = FannyPack_WearFront,
        Weight	=	0.2,
        Type	=	Container,
        Capacity	=	1,
        DisplayName	=	Fanny Pack (Front),
        Icon	=	FannyPack,
        OpenSound   =   OpenBag,
        CloseSound   =   CloseBag,
        PutInSound   =   PutItemInBag,
        BodyLocation = FannyPackFront,
        ClothingItem = Bag_FannyPackFront,
        CanBeEquipped = FannyPackFront,
        RunSpeedModifier = 0.98,
        WorldStaticModel = FannyPack_Ground,
    }

Back Retrieved: Build 41.55

    item Bag_FannyPackBack
    {
        WeightReduction	=	50,
        ClothingItemExtra = Bag_FannyPackFront,
        ClothingItemExtraOption = FannyPack_WearFront,
        clothingExtraSubmenu = FannyPack_WearBack,
        Weight	=	0.2,
        Type	=	Container,
        Capacity	=	1,
        DisplayName	=	Fanny Pack (Back),
        Icon	=	FannyPack,
        OpenSound   =   OpenBag,
        CloseSound   =   CloseBag,
        PutInSound   =   PutItemInBag,
        BodyLocation = FannyPackBack,
        ClothingItem = Bag_FannyPackBack,
        CanBeEquipped = FannyPackBack,
        RunSpeedModifier = 0.98,
        WorldStaticModel = FannyPack_Ground,
    }