BotSpawn

Moved

Total Downloads: 11,762 - First Release: Jul 31, 2017 - Last Update: Jul 27, 2018

5/5, 81 likes
  1. Even as a default scientist they don't drop a weapon. Might as well leave the kit you gave them so they look better than a default.
     
  2. None of my Bots are spawning after the latest update. No errors being thrown, and activate is sat to true.


    I've tried this with RadtownAnimals and I'm having the exact same issue.
     
    Last edited by a moderator: Dec 17, 2017
  3. I updated Oxide and it's still the same.
    The skin of the kit, and the weapons are used by the bots, but they can't be looted.
     
  4. Sorry to say, but after the update, no zombies spawning.
     
  5. Works fine with spawning here, however the loot table is fubar.
     
  6. I can only guess maybe some other plugin is at work here?
    BotSpawn definitely has its issues right now, no doubt, but I haven't been able to replicate corpse inventory items being locked.
     
  7. Just to be clear, the corpse inventories aren't necessarily locked, their main inventory container is lootable, it just isn't receiving the loot we specified in the Kits plugin, even though it thinks it has. Simple enough issue, right? But wait, there's more! While they don't receive inventory, they are receiving the clothing that is specified in the custom kit, and the hotbar items. However, upon death, they do not drop their weapon they were carrying, and their inventory container contains random objects (normal loot, I presume) while their belt and clothing containers are empty, which is weird because the bots are clothed. I use AdminRadar as well, and after killing a bot, ESP shows the corpse with 10 items in inventory ( https://i.imgur.com/EZLttIi.jpg ) yet the kit contains 12 items specified to it. Two of the items specified to it are specified to the Belt, which they are "dropping" or otherwise discarding out of inventory upon death. So it appears they are receiving the kit items, but it is only evident with the clothing. Belt and Main containers are either empty or random default game loot. I have been diving in to a few other plugins looking for something that BotSpawn isn't playing nice with, and I started with Kits. I am still going through this because it could be a factor there.

    I think the bots are receiving the proper inventories from Kits, but onDeath being given default loot.

    Any other feedback anyone can offer on their bots behavior would be helpful as I troubleshoot this.
     
  8. Cribbnation:

    Nice job investigating! We too noticed that the bots with custom kits would be armed with the kit weapons but felt that they were not given the inventory however your discovery changes that. If they do indeed have the kit but that kit may be replaced on death makes me wonder if Facepunch did not nerf this intentionally which would be sad since so many folks use this and many players look for servers runnin "bots with prizes".

    Thank you!
    yop Wez
     
  9. Thanks @Weziltry I hope to figure this out today. I know they are getting the kit weps, because I specified my murderers to have SAP and when I approach them non-vanished with a weapon drawn, they do attack with the SAPS. I can only assume they have all the loot on them the kit specified, but no way of viewing their inventory while they are alive, as the View Inventory plugin doesn't recognize them as a player. I am going to tinker around with the individual player ID and see what I can find out. I will reach out to one of the FP devs in the slack channel and see if they can offer some insight into this.
     
  10. That's exactly what's happening.
    It's not what smoke is experiencing, though. I think he has some unique issue.

    I don't think there's really a need to trouble them.
    We know the main inventory and belt are being cleared on death, and random loot is being added in.

    I haven't looked into it much, but I expect we'd either need a hook to over ride, or code to re-add the kit on death.
    [DOUBLEPOST=1513541363][/DOUBLEPOST]
    BotSpawn destroys belt contents on death.
    I always kept it this way so that weapons chosen for bot-use aren't necessarily available for looting on death.
    If someone wants those weapons to be available for looting, they should add them as duplicates in the main container.

    Of course the main container is now being wiped by rust...but that's how it used to work.
     
  11. So... I developed a pretty hacky workaround to get the bots to "drop" something that I specify... and I came up with this:


    Code:
    void OnLootEntityEnd(BasePlayer player, LootableCorpse corpsey)
      {
        ItemManager.CreateByName("explosives", 5, 0).Drop(new Vector3(player.transform.position.x, player.transform.position.y + 2f, player.transform.position.z), Vector3.zero);
        ItemManager.CreateByName("crude.oil", 15, 0).Drop(new Vector3(player.transform.position.x, player.transform.position.y + 2f, player.transform.position.z), Vector3.zero);
        var messg = "you found something extra while looting " + corpsey.playerName;
        corpsey.DropItems();
        corpsey.Kill(BaseNetworkable.DestroyMode.None);
        SendReply(player, messg);
      }
    
    it is admittedly super hacky... but I can't find any way of getting around the default lootspawn items.

    If anyone else comes up with something better, let me know! :D
     
  12. That's dirty. :p
     
  13. Just killing time until you provide us with a good fix. xD
     
  14. Still no zombies, what could be wrong.
     
  15. Ha! Just kidding. ;)


    Sorry fellas, I don't think there's a quick'n'easy for this.
    Recent changes take more things out of my hands so I think we're going to have to run with it as-is for the time being.
    Kits should now be considered a means of dressing, and arming, your bots - Not a way to provide custom loot. :(
     
  16. Steenamaroo updated BotSpawn with a new update entry:

    1.3.4

     
  17. do i have to reload the plugin? no bots spawning, when i go /botspawn, says it doesn't exist?, if i can get the spawns back be great!
    [DOUBLEPOST=1513552175][/DOUBLEPOST]
    i ment redownload**
     
  18. now not issued KIT's for NPC
     
  19. KittyMeowMeow, thanks, that works and is a nice fix for now!

    Thanks again!!
    yop
    Wez