Kenshi
Not enough ratings
Weapon Slot Standardizer
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
80.492 KB
10 May, 2022 @ 6:24pm
11 May, 2022 @ 8:20am
2 Change Notes ( view )

Subscribe to download
Weapon Slot Standardizer

In 1 collection by Trinity
Weapons & Equipment
670 items
Description
Put this mod above any other weapon mod

*Use with caution - This is currently untested and made primarily to see if it works*

Changes every weapon slot to "1 0 0"*1 meaning that there is one, it's on the hip (back if it doesn't fit) at 0% chances, which, when it's the only weapon given to an npc or along side others set to the same setting, is 100% chances or eqivilant chances with the others set to the same setting.

If the npc had "1 100 0"*2 it has been changed to "1 0 0"

If the npc had only sidearms on their back, they (most) have been changed to "1 1 0"*3

If there were multiple weapons and one weapon had 100% chance of spawning (1 0 100), I lowered it to 90.

Special npcs that have, for instance, two ninja blades on their back, were not changed. This logic also applies to those who have both a primary and secondary weapon.


This is meant to be used as a patch to allow custom weapons to spawn, as long as they are set to "1 0 0" or any variation of that excluding "1 0 100", otherwise (when set to 1 0 100), you will only see that specific modded weapon and not the original or other weapon mods.

This also fixes the multiple weapon bug where npcs, like recruits, spawn with weapons on their back and also hip.
This happens because these npcs have their weapons set to "1 100 0" or otherwise. This will place that original weapon on the back and the new weapon (that is set to "1 0 0") on the hip.

-

My weapon mods have been set to "1 0 0" for all instances placed in-game.

My weapon edit mods, i.e. "Diverse Mercenary Weapons", have diverse chances set with no weapon set to "1 0 0". Use these mods after this mod to allow them to take appropriate effect. These mods are set to various settings like "1 0 50"*4, "1 0 90", "1 0 10", for reference.

If you are using a weapon mod that places the custom weapon on the npc at 100% chance of spawning, please request that mod author to either make a patch for this mod and or request if it is okay for me to make the patch, myself, for you (if you don't want to). Then send the link to the mod to me in the comments.


Reference Notes:

*1: "1 0 0" is, to my knowledge, the weapon is put in the weapon II slot (hip / sidearm) otherwise it is put in the weapon I slot (back / primary). If the npc has many weapons, all of which are set to "1 0 0", they all have equal chance of spawning.

*2: "1 100 0" seems to be an old setting. It places one of the weapon on the back.

*3: "1 1 0" means that one of the weapon will be spawned on the back holster at an absolute chance, if the weapon is alone. If the weapon is with other weapons that have the same setting, they have equivalent chances of spawning. If the weapon is set to this setting and there is another weapon set to "1 0 0" or otherwise, it will spawn both in the respectable weapon slots.

*4: "1 0 50" means that it has 50 percent chances to spawn.


I hope this helps you see more of your subscribed mods being spawned on npcs. If you do not see custom weapons being spawned alongside the default ones, then make sure (if you are playing a previously saved game without importing) to import the game. If you see that it still happens after an import then it may be because the setting for the default weapon: "1 0 0" is being changed into something higher by another weapon mod.

It is uncertain to me right now if the 0% chance of spawning will be counted as a value rather than 0 (lack of a value), so if there are other weapons in the npc's weapon list that are higher than 0 and you see that the default weapon never spawns, please report this to me.
I believe that it registers as a potential value to land on rather than having 0 chance of landing on it, meaning that it still spawns if the rng lands on 0. I know that might not make any sense, but think of it as if it is a duplicate 1% chance, and it still registers as a variable that the rng can land on. If I'm incorrect on this, then obviously any chance higher than 0 will overwrite and inhibit the weapon from spawning entirely.

I'm making this because most of my mods are simply not showing up. This may be because of the fact many other weapon mods have placed the weapon at higher than 0 chances, so many mods may need a patch for this mod.

Unrelated to this mod, but the weapon mods that are set to 100 percent chance of spawning may need patches to allow them to spawn along side the other weapons included in "Diverse |NPC/Faction| Weapons".

This does not add any weapons, nor does it change the null entries.


Weapon Slot Standardizer - W.S.S. | Default Weapon Standardizer - D.W.S.


Like my work? Support me on Ko-fi[ko-fi.com]
1 Comments
Trinity  [author] 5 Jun, 2022 @ 1:48am 
aight I'm recalling this, I changed all my weapon mods to the vanilla slot pattern, use if you still want to