Jump to content
We've made dark mode the default preference to protect your eyes! You can change this at anytime below. ×
Search In
  • More options...
Find results that contain...
Find results in...
Solsey

Loot question

Pending 2.1.1

I had a question on loot and getting the mod to work with custom loot. 

Currently I have loot set like this: 
 

      "Keep_Default_Loadout": true,
      "Kit": [],
      "Weapon_Drop_Percent": 50,
      "Min_Weapon_Drop_Condition_Percent": 5,
      "Max_Weapon_Drop_Condition_Percent": 50,
      "Wipe_Belt_Percent": 10,
      "Wipe_Clothing_Percent": 10,
      "Allow_Rust_Loot_Percent": 100,

but people are saying there is too much loot. They are getting a gun and rocket laucher plus granades pretty much every time. 

If I want to remove this loot and instead use custom loot how do I get the 2 mods to link? I guess I need to set default loot to false in botspawn? Then is it just a case of setting botspawn to true in custom loot or is there anything else I need to do with botspawn? 
 

 "BotSpawn": {
      "enabled": false,
      "lootTable": "default",
      "maxItems": 6,
      "minItems": 6,
      "gunsWithAmmo": false,
      "noGuns": false,
      "MaxBps": 3,
      "WaterPreFillPercent": 20,
      "ClearContainerFirst": true
    }

 

Share this comment


Link to comment

Hi,

There's a number of places these npcs can be getting loot from.
The grenades, guns, rocket launchers could be coming from the default Rust loot but that seems unlikely.
Make sure your kits don't contain these items by mistake. Also check and see if you have any other plugins which might be giving loot to npcs,
such as AlphaLoot.

 

If you want to use CustomLoot for BotSpawn npcs then, yes, you need to set "enabled": true in your second snippet.
You would also need to customise a loot table, though. The "default" loottable is a placeholder and has everything set to 0 so, unmodified, does nothing.

Either modify the default.json file to your taste, or change to "lootTable": "SomeOtherNameHere" and reload CustomLoot.
That will give you a new file - SomeOtherNameHere.json - to work with.
That's how new loottables/files are created - Just enter a new name for "lootTable" for some entry in config, and reload CustomLoot.

If one loottable for all of BotSpawn is enough then that's all you need.
However, if you want different BotSpawn profiles to have different loottables, there is a global option in CustomLoot config to enable that.

Set it to true and reload.

Edited by Steenamaroo

Share this comment


Link to comment

About Us

Codefling is a forward-thinking platform for developers to share and monetize their work from plugins to game assets and everything in-between.

2,128 files sold to 250 customers and $28,069 of payments processed this year!

×
×
  • Create New...

Important Information

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.