No More Room in Hell

No More Room in Hell

50 vurderinger
Police Vest Mod Base
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Filstørrelse:
Offentliggjort:
Opdateret:
71.591 KB
16. maj 2024 kl. 7:50
5. sep. 2024 kl. 1:40
3 ændringsbemærkninger ( vis )

Abonner for at downloade
Police Vest Mod Base

Beskrivelse
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 kommentarer
vincenzo.77 7. okt. 2024 kl. 5:41 
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