Holster: Difference between revisions

From PZwiki
m (removed one space)
m (Remove lines))
(31 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{languages|Holster}}
{{Header|Project Zomboid|Items|Clothing|Accessories}}
{{header|The Game World|Items|Clothing|version=Version 41|incver=50}}
{{Page version|41.50}}
{{Testing|build=[[Build 41]]}}
{{Infobox item
{{Infobox normal
|name=Holster
|display_name=Holster
|model=GunHolster_Model.png
|name_colour=Normal
|model_width=128px
|name_text_colour=Normal
|icon=GunHolster.png
|image=GunHolster.png
|image_width=120px
|weight=0.2
|weight=0.2
|primary_use=Wearable
|primary_use=Wearable
|class_name=HolsterSimple
|item_id=Base.HolsterSimple
}}A '''holster''' is used to attach weapons to the character. Items attached this way can easily be equipped with hotkeys.
}}
A '''holster''' is used to attach weapons to the character. Items attached this way can easily be equipped with hotkeys.
 
==Usage==
When equipped, a holster allows the player to attach a handgun to their right hip which provides an additional hotbar slot, as well as reduce weight of the attached item by 30% when not held.


==Distribution==
==Distribution==
Holsters can be found in police and military locations.
The loot distributions can be found in the table(s) below.


==Usage==
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
When equipped, a holster allows the player to attach handguns to their right hip which provides an additional hotbar slot, as well as reduce weight of attached item by 30% when not held.
! colspan="4" | Containers
|-
! Building/Room
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|rowspan="3"|all
|[[locker]]
|4
|4
|-
|[[militarycrate]]
|4
|6
|-
|[[militarycrate]]
|4
|4
|-
|armysurplus
|[[counter]]
|4
|4
|-
|rowspan="2"|bathroom
|[[locker]]
|4
|2
|-
|[[locker]]
|4
|2
|-
|office
|[[desk]]
|4
|4
|-
|policestorage
|[[locker]]
|4
|4
|-
|security
|[[locker]]
|4
|2
|}
Holsters can be found in police and military locations, and on police and military zombies.


==Code==
==Code==
{{Retrieved|version=41|incver=50}}
{{CodeBox
'''''From clothing_others.txt (Project Zomboid directory/media/scripts/clothing/)'''''
| {{CodeSnip
<pre> item HolsterSimple
  | lang = java
Weight = 0.2,
  | line = true
Type = Clothing,
  | start = 748
DisplayName = Holster,
  | source = clothing_others.txt
Icon = GunHolster,
  | retrieved = true
BodyLocation = BeltExtra,
  | version = 41.78.16
ClothingItem = Holster,
  | code =
AttachmentsProvided = HolsterRight,
item HolsterSimple
</pre>
    {
        DisplayCategory = Accessory,
        Weight = 0.2,
        Type = Clothing,
        DisplayName = Holster,
        Icon = GunHolster,
        BodyLocation = BeltExtra,
        ClothingItem = Holster,
        AttachmentsProvided = HolsterRight,
        WorldStaticModel = Holster_Ground,
    }
}}
}}


==See also==
==See also==
*[[Belt]]
*[[Belt]]
*[[Double Holster]]
*[[Double Holster]]
{{Navbox items}}

Revision as of 07:04, 15 April 2024

Spiffo controlyourself.png
This page was last updated for an older version (41.50).
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.
Holster
GunHolster Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Function
Wearable
Technical
Item ID
Base.HolsterSimple

A holster is used to attach weapons to the character. Items attached this way can easily be equipped with hotkeys.

Usage

When equipped, a holster allows the player to attach a handgun to their right hip which provides an additional hotbar slot, as well as reduce weight of the attached item by 30% when not held.

Distribution

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

Containers
Building/Room Container Rolls Chance
all locker 4 4
militarycrate 4 6
militarycrate 4 4
armysurplus counter 4 4
bathroom locker 4 2
locker 4 2
office desk 4 4
policestorage locker 4 4
security locker 4 2

Holsters can be found in police and military locations, and on police and military zombies.

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 HolsterSimple
    {
        DisplayCategory = Accessory,
        Weight	=	0.2,
        Type	=	Clothing,
        DisplayName	=	Holster,
        Icon	=	GunHolster,
        BodyLocation = BeltExtra,
        ClothingItem = Holster,
        AttachmentsProvided = HolsterRight,
        WorldStaticModel = Holster_Ground,
    }

See also