Jump to content

Recommended Posts

Posted (edited)

LootTablePlus (Or something. Whatever you want to call it.)

3 groups.
Most likely individual data files

Container
Harvest
Pickup

 

Can add and remove items from:
NPC corpses
Containers

Give items while mining/woodcutting


Not sure if possible. But can roll for Min/Max on pickups
Maybe add weights to the min and max values so it stays closer to the mid and lower end if the user wishes.
Pickups will not be affected unless prefab is activated.

Items added to the config will use:
Shortname
Display name (Blank “” or null for default)
Skin (default 0)
Min/Max drop
Blueprint (true/false)
Drop rate (0.00)


Corpses/containers/ores/trees,logs,driftwood will use the item prefab
Examples
assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_patrol.prefab
assets/prefabs/misc/supply drop/supply_drop.prefab
assets/bundled/prefabs/autospawn/resource/ores/stone-ore.prefab
assets/bundled/prefabs/autospawn/resource/v3_arid_forest/palm_tree_med_a_entity.prefab

Included below are shitty config concepts.

Containers/NPCs:

    "Prefab": [
      "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_heavy.prefab"
    ],
    "Remove items from loot table": [
      "ammo.grenadelauncher.smoke",
      "grenade.smoke"
    ],
    "Add items to loot table": [
      {
        "Shortname": "grenade.beancan",
        "Custom name": "Molotov Cocktail",
        "Skin": 1972822423,
        "Min amount": 3,
        "Max amount": 7,
        "Blueprint": false,
        "Chance": 5.00

Addition containers/NPCs will be added to the config/data file by making an addition group.

You can use multiple prefabs in the prefab entry field to cover multiple prefabs that will all do the same thing.
So let's say you want logs to drop grubs, you would add all log types or all arid/temperate (makes more sense I suppose) to the section and then add the grub shortname to the add section
Harvest:

    "Prefab": [
      "assets/bundled/prefabs/autospawn/resource/logs_dry/dead_log_a.prefab",
      "assets/bundled/prefabs/autospawn/resource/logs_dry/dead_log_b.prefab",
      "assets/bundled/prefabs/autospawn/resource/logs_dry/dead_log_c.prefab",
      "assets/bundled/prefabs/autospawn/resource/logs_wet/dead_log_a.prefab",
      "assets/bundled/prefabs/autospawn/resource/logs_wet/dead_log_b.prefab",
      "assets/bundled/prefabs/autospawn/resource/logs_wet/dead_log_c.prefab"
    ],
    "Add items to harvest/mine": [
      {
        "Shortname": "grub ",
        "Custom name": "",
        "Skin": 0,
        "Min amount": 1,
        "Max amount": 2,
        "Blueprint": false,
        "Chance": 5.00

I guess the blueprint option would be kinda silly to have in here. Especially when it comes to players using the jackhammer and chainsaw. But I'm not one to judge how one runs their server. Also probably makes it easier to code if you can just cut and paste vs having to make another item configuration.

Pickups:

    "Prefab": [
      "assets/bundled/prefabs/autospawn/collectable/stone/halloween/halloween-wood-collectable.prefab ",
      "assets/bundled/prefabs/autospawn/collectable/wood/wood-collectable.prefab "
    ],
    "Pickup rates": [
      {
        "Min amount": 25,
        "Max amount": 75

Not sure really how the weights would be laid out if that can even be a thing.

Obviously willing to pay as long as it's within reason.
Doesn't have to remain private, you're more than welcome to resell on codefling if you wish to do so.

Any additions to the plugin you think may be beneficial I may be missing by all means include if you're intentending to resell. I won't complain 🙂
This is just the barebones of what I need/want. Pickups are hit or miss. They don't have to be a things but would be nice.

Edited by thepiercedweirdo
Posted
On 4/3/2022 at 5:52 PM, thepiercedweirdo said:

LootTablePlus (Or something. Whatever you want to call it.)

3 groups.
Most likely individual data files

Container
Harvest
Pickup

 

Can add and remove items from:
NPC corpses
Containers

Give items while mining/woodcutting


Not sure if possible. But can roll for Min/Max on pickups
Maybe add weights to the min and max values so it stays closer to the mid and lower end if the user wishes.
Pickups will not be affected unless prefab is activated.

Items added to the config will use:
Shortname
Display name (Blank “” or null for default)
Skin (default 0)
Min/Max drop
Blueprint (true/false)
Drop rate (0.00)


Corpses/containers/ores/trees,logs,driftwood will use the item prefab
Examples
assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_patrol.prefab
assets/prefabs/misc/supply drop/supply_drop.prefab
assets/bundled/prefabs/autospawn/resource/ores/stone-ore.prefab
assets/bundled/prefabs/autospawn/resource/v3_arid_forest/palm_tree_med_a_entity.prefab

Included below are shitty config concepts.

Containers/NPCs:

    "Prefab": [
      "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_heavy.prefab"
    ],
    "Remove items from loot table": [
      "ammo.grenadelauncher.smoke",
      "grenade.smoke"
    ],
    "Add items to loot table": [
      {
        "Shortname": "grenade.beancan",
        "Custom name": "Molotov Cocktail",
        "Skin": 1972822423,
        "Min amount": 3,
        "Max amount": 7,
        "Blueprint": false,
        "Chance": 5.00

Addition containers/NPCs will be added to the config/data file by making an addition group.

You can use multiple prefabs in the prefab entry field to cover multiple prefabs that will all do the same thing.
So let's say you want logs to drop grubs, you would add all log types or all arid/temperate (makes more sense I suppose) to the section and then add the grub shortname to the add section
Harvest:

    "Prefab": [
      "assets/bundled/prefabs/autospawn/resource/logs_dry/dead_log_a.prefab",
      "assets/bundled/prefabs/autospawn/resource/logs_dry/dead_log_b.prefab",
      "assets/bundled/prefabs/autospawn/resource/logs_dry/dead_log_c.prefab",
      "assets/bundled/prefabs/autospawn/resource/logs_wet/dead_log_a.prefab",
      "assets/bundled/prefabs/autospawn/resource/logs_wet/dead_log_b.prefab",
      "assets/bundled/prefabs/autospawn/resource/logs_wet/dead_log_c.prefab"
    ],
    "Add items to harvest/mine": [
      {
        "Shortname": "grub ",
        "Custom name": "",
        "Skin": 0,
        "Min amount": 1,
        "Max amount": 2,
        "Blueprint": false,
        "Chance": 5.00

I guess the blueprint option would be kinda silly to have in here. Especially when it comes to players using the jackhammer and chainsaw. But I'm not one to judge how one runs their server. Also probably makes it easier to code if you can just cut and paste vs having to make another item configuration.

Pickups:

    "Prefab": [
      "assets/bundled/prefabs/autospawn/collectable/stone/halloween/halloween-wood-collectable.prefab ",
      "assets/bundled/prefabs/autospawn/collectable/wood/wood-collectable.prefab "
    ],
    "Pickup rates": [
      {
        "Min amount": 25,
        "Max amount": 75

Not sure really how the weights would be laid out if that can even be a thing.

Obviously willing to pay as long as it's within reason.
Doesn't have to remain private, you're more than welcome to resell on codefling if you wish to do so.

Any additions to the plugin you think may be beneficial I may be missing by all means include if you're intentending to resell. I won't complain 🙂
This is just the barebones of what I need/want. Pickups are hit or miss. They don't have to be a things but would be nice.

 

We're working on it 🙂

Posted

Thank you. I was contacted by another dev who was already working on a loot plugin. Totally spaced and forgot to close the thread. But having two options is good. I'll gladly go with both to see which works best for me since this is a major aspect to the server.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.8k

Files Sold

Total number of files sold.

2.1m

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.