Belt: Difference between revisions

From PZwiki
mNo edit summary
(Update distribution file)
 
(38 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Clothing|Accessories}}
{{header|The Game World|Items|Clothing|version=Version 39|incver=52}}{{Infobox normal
{{Page version|41.78.16}}
| display_name = Belt
{{Infobox item
| name_colour = Clothing
|name=Belt
| name_text_colour = Clothing
|model=Belt_Model.png
| image = Belt_120px.png
|icon=Belt.png
| image_width = 120px
|icon_name=Belt
| weight = 0.3
<!--General-->
| function = ''None''
|category=Accessory
| class_name = Base.Belt
|weight=0.2
}}A '''belt''' is currently a useless {{T|item}}, and often considered as ''junk''.
|body_location=Belt
|attachments_provided=SmallBeltLeft<br>SmallBeltRight
<!--Technical-->
|item_id=Base.Belt2
|item_id2=Base.Belt (pre-[[Build 41|b41]])
}}
A '''belt''' is used to attach weapons and tools to the character. Items attached this way can easily be equipped with hotkeys. The player always spawns with a belt.


==Usage==
==Usage==
Regardless of what may initially seem possible, a belt cannot be worn by the {{T|player}}.
The belt can be worn by the player since [[build 41]]. It offers two slots in the hotbar at the bottom of the screen.


A belt could previously be used in the since removed {{T|'Til Death Us Do Part|story mode}}, where it could be used as a tourniquet for your spouse, {{T|Kate}}.  
A belt could previously be used in now removed [['Til Death Us Do Part|story mode]], where it could be used as a tourniquet for your spouse, [[Kate Smith|Kate]].


The {{T|health}} system is rumoured to be improved further at some point in the future, likely giving some usage to the belt, specifically with the return of {{T|Survivor|NPC survivors}}.
The health system is rumored to be improved further at some point in the future, likely giving some usage to the belt, specifically with the return of NPC [[survivor]]s.


==Distribution==
==Distribution==
Belts are most commonly found in bedroom [[Containers#Bedroom Storage|wardrobes]] and shelves in [[Clothing Store|clothing stores]]. They may also be found in [[Containers#Counters|kitchen counters]].  
The loot distributions can be found in the table(s) below.


== Code ==
<!--BOT FLAG|Belt2|41.78.16-->
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{Clear}}
<pre> item Belt
<div class="togglebox theme-red">
Weight = 0.3,
    <div>Belt2 distribution
Type = Normal,
        <span class="mw-customtoggle-togglebox-Belt2" 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>
DisplayName = Belt,
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Belt2">
Icon = Belt,</pre>
    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">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | all
    | {{ll|dresser}}
    | 10.78%
    |-
    | all
    | {{ll|wardrobe}}
    | 10.78%
    |-
    | bathroom
    | {{ll|locker}}
    | 10.78%
    |-
    | bedroom
    | {{ll|dresser}}
    | 10.78%
    |-
    | bedroom
    | {{ll|wardrobe}}
    | 10.78%
    |-
    | changeroom
    | {{ll|locker}}
    | 10.78%
    |-
    | factorystorage
    | {{ll|locker}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|locker}}
    | 10.78%
    |-
    | laundry
    | {{ll|locker}}
    | 10.78%
    |-
    | security
    | {{ll|locker}}
    | 10.78%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Belt2" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Belt2|41.78.16-->
 
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 735
  | source = clothing_others.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Belt2
    {
        DisplayCategory = Accessory,
        Weight = 0.2,
        Type = Clothing,
        DisplayName = Belt,
        Icon = Belt,
        BodyLocation = Belt,
        ClothingItem = Belt,
        AttachmentsProvided = SmallBeltLeft;SmallBeltRight,
        WorldStaticModel = Belt_Ground,
    }
}}
}}
 
==Trivia==
*The old  (pre-[[build 41]]) belt can still be spawned via [[debug mode]], or admin in [[multiplayer]], although not being functional and lacking a model.


==See also==
==See also==
* {{T|Clothing}}
*[[Holster]]
* {{T|Trousers}}
*[[Double Holster]]
* {{T|Socks}}
* {{T|Underwear}}


{{Navbox/Clothing}}
{{Navbox items|accessories}}

Latest revision as of 12:04, 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]
Belt
Belt Model.png
General
Category
Accessory
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Equipped
Belt
Slots added
SmallBeltLeft
SmallBeltRight
Technical
Item ID
Base.Belt2
Base.Belt (pre-b41)

A belt is used to attach weapons and tools to the character. Items attached this way can easily be equipped with hotkeys. The player always spawns with a belt.

Usage

The belt can be worn by the player since build 41. It offers two slots in the hotbar at the bottom of the screen.

A belt could previously be used in now removed story mode, where it could be used as a tourniquet for your spouse, Kate.

The health system is rumored to be improved further at some point in the future, likely giving some usage to the belt, specifically with the return of NPC survivors.

Distribution

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

Belt2 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
all dresser 10.78%
all wardrobe 10.78%
bathroom locker 10.78%
bedroom dresser 10.78%
bedroom wardrobe 10.78%
changeroom locker 10.78%
factorystorage locker 10.78%
garagestorage locker 10.78%
laundry locker 10.78%
security locker 10.78%

Code

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

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

Retrieved: Build 41.78.16
item Belt2
    {
        DisplayCategory = Accessory,
        Weight	=	0.2,
        Type	=	Clothing,
        DisplayName	=	Belt,
        Icon	=	Belt,
        BodyLocation = Belt,
        ClothingItem = Belt,
        AttachmentsProvided = SmallBeltLeft;SmallBeltRight,
        WorldStaticModel = Belt_Ground,
    }

Trivia

See also