Holster: Difference between revisions
m (→Usage: Added weight reduction info) |
m (Remove lines)) |
||
(33 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Clothing|Accessories}} | ||
{{Page version|41.50}} | |||
{{ | {{Infobox item | ||
{{Infobox | |name=Holster | ||
| | |model=GunHolster_Model.png | ||
| | |model_width=128px | ||
| | |icon=GunHolster.png | ||
| | |||
|weight=0.2 | |weight=0.2 | ||
|primary_use=Wearable | |primary_use=Wearable | ||
| | |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. | ||
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;" | |||
! 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== | |||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 748 | |||
| source = clothing_others.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item HolsterSimple | |||
{ | |||
DisplayCategory = Accessory, | |||
Weight = 0.2, | |||
Type = Clothing, | |||
DisplayName = Holster, | |||
Icon = GunHolster, | |||
BodyLocation = BeltExtra, | |||
ClothingItem = Holster, | |||
AttachmentsProvided = HolsterRight, | |||
WorldStaticModel = Holster_Ground, | |||
} | |||
}} | |||
}} | |||
== | ==See also== | ||
*[[Belt]] | |||
*[[Double Holster]] | |||
{{Navbox items}} | |||
{{ | |||
Revision as of 07:04, 15 April 2024
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
Source: ProjectZomboid\media\scripts\clothing\clothing_others.txt
item HolsterSimple
{
DisplayCategory = Accessory,
Weight = 0.2,
Type = Clothing,
DisplayName = Holster,
Icon = GunHolster,
BodyLocation = BeltExtra,
ClothingItem = Holster,
AttachmentsProvided = HolsterRight,
WorldStaticModel = Holster_Ground,
}