.thumb.png.9a12c819d22cdd6f03dc06bee65f43d1.png)
.thumb.png.9a12c819d22cdd6f03dc06bee65f43d1.png)
Formerly NPCLoot.
Populate npc corpses, containers, and barrels with custom loot.
General info.
Users can create as many loottables as required, and assign them to npc/container types by name.
To create a new loot table, simply set the "lootTable" entry for some container type in config to a new made up name.
This will create a new /data file of that name, which you can customise.
The same loot table can be used for multiple corpse or container types.
New categories and items are added automatically so, hopefully, data should never need to be wiped.
Default loottable has all probabilities set to zero ( no loot) and will require customisation.
I intend to provide some sample loottables for free download in the near future.
Item choice is done by two-tier probability.
For each spawned item a category is chosen first, based on your category probabilities,
then an item is chosen from that category, based on your item probabilities for that category.
See notes at bottom for further info on probabilities.
Optional dependencies -
Configuration.
Global.
NPC types.
*if Global option 1 is true, this entry is replaced with one entry per existing BotReSpawn profile, by name.
Eg, The Dome 0, Airfield 0, LaunchSite 0, etc.
Container Types
Options per type:
Data:
By default there is one data file : /data/CustomLoot/default.json
If you specify a unique lootTable name for any corpse or container type,
a new file will be created in the same folder, by name.
Each data file contains:
Items, grouped by category.
*Each item has:*
Categories:
Options per category:
API.
If the called config profile doesn't exist CustomLoot will create it under 'API'.
Example call.
[PluginReference] private Plugin CustomLoot; var lootcall = NPC?.Call("MakeLoot", "Npc_Config_Profile_Name"; if (lootcall is string) PrintWarning(string)lootcall);
Object hooks are provided to prevent this plugin giving loot to your spawned npcs, or containers.
Return non-null for the following.
Notes.
*Probability, in both cases above, is relative; There is no scale.
If there were two categories with probabilities of 9 and 1,
the first would have a 9 out of 10 chance of being picked.
Probability of zero effectively means the item, or category is disabled.
Categories with no enabled items will never be chosen. Their probability is irrelevant.
Disabled categories will never be chosen. Their probability is irrelevant.
Users should never have to manually add, or remove, items in the /data files.
New items in Rust should be added automatically.
The blacklist can be used to remove entries from the data file, if that's preferred.
Reloading is not required to catch up with profile changes made in BotReSpawn.
By Steenamaroo
By Steenamaroo
By Steenamaroo
By Steenamaroo
By Steenamaroo
By Steenamaroo
By Steenamaroo
By Steenamaroo
By Steenamaroo
By Steenamaroo
By Steenamaroo
By Steenamaroo
By Steenamaroo
By Steenamaroo
By Steenamaroo
Total number of downloads.
Total customers served.
Total number of files sold.
Total payments processed.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.