Jump to content

Possibility to get drops from barrels and dwellers?

Closed 1.1.0

So I'm wondering if there is a way to get drops from barrels. They weren't in the config as standard, so I think they either don't work, or I've added the names incorrectly. 

For the loot crate part of the config, I've wrote:
 

      "crate_normal_2": 1.5,
      "crate_normal": 4.5,
      "crate_elite": 22.5,
      "crate_underwater_basic": 9,
      "crate_underwater_advanced": 18,
      "heli_crate": 15,
      "bradley_crate": 15,
      "codelockedhackablecrate": 15,
      "codelockedhackablecrate_oilrig": 15,
      "crate_tools": 2.25,
      "loot_barrel_1": 2,
      "loot_barrel_2": 2,
      "loot-barrel-1": 2,
      "loot-barrel-2": 2,
      "oil_barrel": 2

And for the corpse loot I've wrote:
 

    "Corpse types and their chance for an enhanced item to spawn": {
      "scientistnpc_heavy": 4,
      "scientistnpc_cargo": 2,
      "scientistnpc_cargo_turret_any": 2,
      "scientistnpc_cargo_turret_lr300": 2,
      "scientistnpc_ch47_gunner": 2,
      "scientistnpc_excavator": 1,
      "scientistnpc_full_any": 1,
      "scientistnpc_full_lr300": 1,
      "scientistnpc_full_mp5": 1,
      "scientistnpc_full_pistol": 1,
      "scientistnpc_full_shotgun": 1,
      "scientistnpc_junkpile_pistol": 1,
      "scientistnpc_oilrig": 2,
      "scientistnpc_patrol": 1,
      "scientistnpc_peacekeeper": 1,
      "scientistnpc_roam": 1,
      "scientistnpc_roamtethered": 1,
      "npc_tunneldweller": 2,
      "npc_underwaterdweller": 2

I found the names for the dwellers and barrels on a random github page, so I could have these totally wrong too. Is it possible to get this working though?

Thanks,
Christopher.

Share this comment


Link to comment

Barrels aren't supported as they will never trigger the CanLootEntity hook. I will look at adding support for them though.

The tunnel and underwater dwellers should work fine.

  • Like 1

Share this comment


Link to comment
16 minutes ago, imthenewguy said:

Barrels aren't supported as they will never trigger the CanLootEntity hook. I will look at adding support for them though.

The tunnel and underwater dwellers should work fine.

Ahh I thought that may have been the case, I assumed if those worked you would have added them. It's good to know that even with my basic understanding of things I didn't make a huge mistake haha!

Again, thank you so much for a fast response. 
Christopher.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

83.4k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • 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.