No More Room in Hell

No More Room in Hell

50 ratings
Police Vest Mod Base
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
71.591 KB
16 May, 2024 @ 7:50am
5 Sep, 2024 @ 1:40am
3 Change Notes ( view )

Subscribe to download
Police Vest Mod Base

Description
Police vest is an item one could pick up, granting resistance against damage as long as the vest's condition is above zero (Condition value is shown on inventory).

Having multiple yields the same resistance, but your character will continue to have protection should one fail.
It is arbitrary selection as to which vest will be applied damage upon, so the best way to preserve the condition of a vest is to not have it on you.

Why is this a standalone mod
This is a base mod providing radial icon & the fundamental script logic, and is designed for further modding. You can write a mutator that extends this, or make a map with this, do be sure to include this as required item when you publish your mod.
As an example, I have made a mod that spawns police vests around map with resources this mod provides, which is available here:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3257013215&searchtext=

How to spawn vest via mutator
local armor_item = SpawnEntityFromTable("item_custom",
{
icon = "nmo_irradiated/vest", // Icon displayed on inventory radial, this mod base provides one already.
label = "Vest (100%)", // Doesn't matter, will be dynamically updated anyway
model = "models/items/vest/police_vest.mdl", // Model of the police vest
weight = 120, // Custom weight value, 120 weighs slightly more than a first aid kit
vscripts = "nmo_irradiated/armorNewVscript.nut" // Script component comes with the mod, do not change.
});

How to spawn vest in map
Place an "item_custom" entity in your map, specify the following fields:
icon = "nmo_irradiated/vest", // Icon displayed on inventory radial, this mod base provides one already.
label = "Vest (100%)", // Doesn't matter, will be dynamically updated anyway
model = "models/items/vest/police_vest.mdl", // Model of the police vest
weight = 120, // Custom weight value, 120 weighs slightly more than a first aid kit
vscripts = "nmo_irradiated/armorNewVscript.nut" // Script component comes with the mod, do not change.

Cvars
sv_vest_rand_condition_min: Minimum condition police vest spawns in
sv_vest_rand_condition_max: Maximum condition police vest spawns in
1 Comments
vincenzo.77 7 Oct, 2024 @ 5:41am 
cool mod,do you know that the police armor was planned to be in the game in it's early days of development back in 2011