BotSpawn

Moved

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

5/5, 81 likes


  1. Hi KittyMeowMeow:

    Just wanted to report what I found after inserting the tweaked code. If you killed a non-NPC the loot would drop after stripping the corpse. This occurred if you were for example to die and went to back to loot your own body and when finished the corpse disappeared and the loot configured for the bots dropped. Now maybe I did not insert the code in the correct spot and that is causing this but I wanted to report what I am seeing to you anyway.

    Thanks again!
    yop
    Wez
     
  2. Yeah, there are no checks to determine if the corpse is an NPCPlayer.
    Would probably be better to run the same thing but under OnEntityDeath, after it's confirmed that the corpse is a BotSpawn bot.

    I was thinking of doing this to restore custom kit back to the corpse inventory, but I haven't gotten around to it yet.
     
  3. Hello,
    I just loaded the updated botspawn.cs. I also had deleted the old config and file in the Data folder.
    I am experiencing an issue with some bots that leave the monument and run across the map to a specific person. I lowered the radius but they are still running away to another location. Any ideas?
    Here's my current config

    Code:
    {
      "Options": {
        "Animal_Safe": true,
        "APC_Safe": true,
        "Bots_Drop_Weapons": false,
        "Cull_Default_Population": true,
        "Ignore_Animals": true,
        "Ignore_HumanNPC": true,
        "NPC_Retaliate": true,
        "Peace_Keeper": false,
        "Remove_BackPacks": true,
        "Respawn_Timer": 600,
        "Reset": true,
        "Reset_Timer": 600,
        "Suicide_Timer": 600,
        "Supply_Enabled": false,
        "Turret_Safe": true
      },
      "Zones": {
        "AirDrop": {
          "Activate": false,
          "Aggression_Range": 10,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100
        },
        "Airfield": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "Dome": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "GasStation": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 2,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "GasStation1": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 2,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "Harbor1": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 3,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "Harbor2": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 3,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "Junkyard": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "Launchsite": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "Lighthouse": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 2,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "Lighthouse1": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 2,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "Lighthouse2": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 2,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "MilitaryTunnel": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 3,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "Powerplant": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 3,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "Radtown": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 3,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "Satellite": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 3,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "SuperMarket": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 2,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "SuperMarket1": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 2,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "Trainyard": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 2,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        },
        "Warehouse": {
          "Activate": false,
          "Aggression_Range": 10,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 60
        },
        "Warehouse1": {
          "Activate": false,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 60
        },
        "Warehouse2": {
          "Activate": false,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 60
        },
        "Watertreatment": {
          "Activate": true,
          "Aggression_Range": 10,
          "Bot_Accuracy": 3,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 3,
          "Disable_Radio": false,
          "Kit": "default",
          "Murderer": false,
          "Radius": 50,
          "Respawn_Timer": 600
        }
      }
    }
     
  4. Yup, I think adding a
    Code:
    if (corpsey is NPCPlayerCorpse)
              {
    ... stufff
    ...}
    
    around it works?
     
  5. Kitty - your idea is very cool. I went into OnEntityDeath and just used something like this:

    ItemManager.CreateByName("crude.oil", 15, 0).Drop(new Vector3(entity.transform.position.x, entity.transform.position.y + 2f, entity.transform.position.z), Vector3.zero);

    and it worked generating some oil at the corpse. So, I can drop guns using this approach.

    This leads to the next question - can the container - the remnant of a corpse after it's turned into a bag - be generated and populated with items by the body? Its much more work but could be a basic work around.
     
  6. I was trying to edit the containers, but im still pretty much a noob... I couldn't figure out how to edit any of the containers/container fields that I found?

    I'm still holding out for a better approach, but I'm currently working on setting up some sort of loot table thingie?... that is to say, more shit to drop and some order on what gets dropped how often. And messing around with how to write shit to configs and stuff, to just edit json fields instead...
     
  7. Thanks for this Nice Plugin and all the Work you guys has done!


    But i have to struggle with some issues....


    This is my Kit that i have done by Following this Steps:


    How to create kits:


    1) Empty your inventory
    2) Add in your inventory the kit that you want players to have (blueprints, weapons in the belt, armors in the clothing, etc)
    3) use /kit add "kitname"
    4) /kit authlevel 2 hide true => this will set the kit only manually redeemable for admins, and hide will hide it from the list in /kit.
    5) /kit items => this will copy the items in your inventory to set it as the new kit.

    This is the Saved Kit:


    It has some Food, Medics, a few Components, Clothes with Armor and A Weapon with loaded bullets but without any extra Ammo in inventory.


    Code:
    {
    {
      "Kits": {
      "test": {
      "name": "test",
      "description": null,
      "max": 0,
      "cooldown": 0.0,
      "authlevel": 2,
      "hide": false,
      "npconly": false,
      "permission": null,
      "image": null,
      "building": null,
      "items": [
      {
      "itemid": 340009023,
      "container": "wear",
      "amount": 1,
      "skinid": 0,
      "weapon": false,
      "mods": []
      },
      {
      "itemid": -1211618504,
      "container": "wear",
      "amount": 1,
      "skinid": 0,
      "weapon": false,
      "mods": []
      },
      {
      "itemid": 1554697726,
      "container": "wear",
      "amount": 1,
      "skinid": 0,
      "weapon": false,
      "mods": []
      },
      {
      "itemid": 106433500,
      "container": "wear",
      "amount": 1,
      "skinid": 0,
      "weapon": false,
      "mods": []
      },
      {
      "itemid": -1883959124,
      "container": "wear",
      "amount": 1,
      "skinid": 0,
      "weapon": false,
      "mods": []
      },
      {
      "itemid": 2107229499,
      "container": "wear",
      "amount": 1,
      "skinid": 0,
      "weapon": false,
      "mods": []
      },
      {
      "itemid": -533875561,
      "container": "main",
      "amount": 51,
      "skinid": 0,
      "weapon": false,
      "mods": []
      },
      {
      "itemid": 3552619,
      "container": "main",
      "amount": 1,
      "skinid": 0,
      "weapon": false,
      "mods": []
      },
      {
      "itemid": -1057402571,
      "container": "main",
      "amount": 1,
      "skinid": 0,
      "weapon": false,
      "mods": []
      },
      {
      "itemid": 98228420,
      "container": "main",
      "amount": 1,
      "skinid": 0,
      "weapon": false,
      "mods": []
      },
      {
      "itemid": 1567404401,
      "container": "main",
      "amount": 1,
      "skinid": 0,
      "weapon": false,
      "mods": []
      },
      {
      "itemid": -225085592,
      "container": "main",
      "amount": 1,
      "skinid": 0,
      "weapon": false,
      "mods": []
      },
      {
      "itemid": 586484018,
      "container": "main",
      "amount": 2,
      "skinid": 0,
      "weapon": false,
      "mods": []
      },
      {
      "itemid": 991728250,
      "container": "main",
      "amount": 3,
      "skinid": 0,
      "weapon": false,
      "mods": []
      },
      {
      "itemid": -337261910,
      "container": "main",
      "amount": 4,
      "skinid": 0,
      "weapon": false,
      "mods": []
      },
      {
      "itemid": 109552593,
      "container": "belt",
      "amount": 1,
      "skinid": 0,
      "weapon": true,
      "mods": []
      }
      ]
      },
      },
    And i Put the kit name in the right row ( "Kit" )


    Code:
      },
      },
      "Airfield": {
      "Activate": true,
      "Bot_Accuracy": 6,
      "Bot_Damage": 0.5,
      "Bot_Firing_Range": 50,
      "BotHealth": 100,
      "BotName": "randomname",
      "Bots": 5,
      "Disable_Radio": true,
      "Kit": "test",
      "Murderer": false,
      "Radius": 100,
      "Respawn_Timer": 300,
      "Spawn_Height": 100
      },
      },

    And here is my bot options/settings:

    Code:
    {{ "Options": {
      "Animal_Safe": true,
      "APC_Safe": true,
      "Bots_Drop_Weapons": true,
      "Cull_Default_Population": false,
      "Ignore_Animals": true,
      "Ignore_HumanNPC": true,
      "NPC_Retaliate": false,
      "Peace_Keeper": true,
      "Remove_BackPacks": false,
      "Reset": true,
      "Reset_Timer": 300,
      "Suicide_Timer": 0,
      "Supply_Enabled": true,
      "Turret_Safe": true
      },
      },

    After Killing those bots, i get this Message in Server Console:


    Code:
    {
    SubCategoryIntoContainer: This should never happen!
    SubCategoryIntoContainer: This should never happen!
    ivey[1154997/76561190007882724] was killed by BLABLA
    },
    Bots Drops no weapons and bot inventory is Empty, they wear only the Given Clothes + Armor.


    I Also Tried a Kit with only a Weapon in the BELT, but still no Weapon Drop....


    Code:
    {
    {
      "Kits": {
      "test": {
      "name": "TEST",
      "description": null,
      "max": 0,
      "cooldown": 0.0,
      "authlevel": 2,
      "hide": false,
      "npconly": true,
      "permission": null,
      "image": null,
      "building": null,
      "items": [
      {
      "itemid": -2094080303,
      "container": "belt",
      "amount": 1,
      "skinid": 0,
      "weapon": true,
      "mods": []
      }
      ]
      }
      }
    }
    },

    I have no more Solutions, i tried a lot of different Kits.
    So please i need Help here....


    Thanks in Advance


    Greetz Ace
     
    Last edited by a moderator: Dec 18, 2017
  8. I dont think you read what the update says.......read . It says its broken and no weapons will drop. until Fix.........
     
  9. [
    Ya after i posted my Problem.... i saw it....

    But what about that:

    Code:
    07:20 [Info] BotSpawn was compiled successfully in 2543ms
    07:20 [Error] Failed to call hook 'OnServerInitialized' on plugin 'BotSpawn v1.3.4' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.BotSpawn.FindMonuments () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BotSpawn.OnServerInitialized () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BotSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
    07:20 [Warning] Calling 'OnServerInitialized' on 'BotSpawn v1.3.4' took 786ms
    07:20 [Info] Loaded plugin BotSpawn v1.3.4 by Steenamaroo
    
    Rust and Oxide on Server are both updated....


    Also when i kill a Bot, i get Kicked.....

    Code:
    (Reason: Kicked: RPC Error in OnProjectileAttack)
     
  10. after updating plugin it ran smoothly for a while with no error messages, got a few "*" was killed by Bradly NPC which is usual and it says i have 102 bots in game, then i get the attached error message which spams my console
     

    Attached Files:

  11. Sounds like you're running an outdated config.
    Most likely your map has a junkyard, which is not yet in the config.

    Sorry - I didn't cover that in the update notes.
     
  12. Getting this today @Steenamaroo
    Code:
     | Failed to call hook 'OnNpcPlayerTarget' on plugin 'BotSpawn v1.3.4' (KeyNotFoundException: The given key was not present in the dictionary.)
      at System.Collections.Generic.Dictionary`2[NPCPlayerApex,Oxide.Plugins.BotSpawn+botData].get_Item (.NPCPlayerApex key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BotSpawn.OnNpcPlayerTarget (.NPCPlayerApex npcPlayer, .BaseEntity entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BotSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  13. Thanks @VinylFresh
    Do you have any scientists or murderers on the map which aren't spawned by this plugin ?
     
  14. Treasure box i think is spawning bots too - ill attach my cfg also
    Code:
    {
      "Options": {
        "Animal_Safe": false,
        "APC_Safe": true,
        "Bots_Drop_Weapons": false,
        "Cull_Default_Population": true,
        "Ignore_Animals": false,
        "Ignore_HumanNPC": true,
        "NPC_Retaliate": false,
        "Peace_Keeper": true,
        "Remove_BackPacks": true,
        "Reset": false,
        "Reset_Timer": 900,
        "Suicide_Timer": 900,
        "Supply_Enabled": false,
        "Turret_Safe": false
      },
      "Zones": {
        "AirDrop": {
          "Activate": true,
          "Aggression_Range": 20,
          "Bot_Accuracy": 6,
          "Bot_Damage": 0.6,
          "Bot_Firing_Range": 20,
          "BotHealth": 150,
          "BotName": "Airdrop Defense Bot",
          "Bots": 1,
          "Disable_Radio": true,
          "Kit": "bot1",
          "Murderer": false,
          "Radius": 100
        },
        "Airfield": {
          "Activate": true,
          "Aggression_Range": 25,
          "Bot_Accuracy": 7,
          "Bot_Damage": 0.7,
          "Bot_Firing_Range": 22,
          "BotHealth": 200,
          "BotName": "Airfield Security Bot",
          "Bots": 3,
          "Disable_Radio": false,
          "Kit": "bot4",
          "Murderer": false,
          "Radius": 150,
          "Respawn_Timer": 900
        },
        "Dome": {
          "Activate": true,
          "Aggression_Range": 20,
          "Bot_Accuracy": 7,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 200,
          "BotName": "Dome Security bot",
          "Bots": 2,
          "Disable_Radio": false,
          "Kit": "bot3",
          "Murderer": false,
          "Radius": 150,
          "Respawn_Timer": 900
        },
        "GasStation": {
          "Activate": false,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 60
        },
        "GasStation1": {
          "Activate": false,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "Zombie",
          "Bots": 2,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": true,
          "Radius": 100,
          "Respawn_Timer": 900
        },
        "Harbor1": {
          "Activate": false,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 60
        },
        "Harbor2": {
          "Activate": false,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 60
        },
        "Junkyard": {
          "Activate": true,
          "Aggression_Range": 20,
          "Bot_Accuracy": 7,
          "Bot_Damage": 0.7,
          "Bot_Firing_Range": 20,
          "BotHealth": 200,
          "BotName": "JunkYard Security Bot",
          "Bots": 3,
          "Disable_Radio": false,
          "Kit": "bot3",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 900
        },
        "Launchsite": {
          "Activate": true,
          "Aggression_Range": 25,
          "Bot_Accuracy": 7,
          "Bot_Damage": 0.8,
          "Bot_Firing_Range": 20,
          "BotHealth": 200,
          "BotName": "Launchsite Security bot",
          "Bots": 4,
          "Disable_Radio": false,
          "Kit": "bot2",
          "Murderer": false,
          "Radius": 200,
          "Respawn_Timer": 900
        },
        "Lighthouse": {
          "Activate": false,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 60
        },
        "Lighthouse1": {
          "Activate": false,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 60
        },
        "Lighthouse2": {
          "Activate": false,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 60
        },
        "MilitaryTunnel": {
          "Activate": false,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 60
        },
        "Powerplant": {
          "Activate": true,
          "Aggression_Range": 20,
          "Bot_Accuracy": 7,
          "Bot_Damage": 0.7,
          "Bot_Firing_Range": 20,
          "BotHealth": 150,
          "BotName": "Powerplant Security bot",
          "Bots": 2,
          "Disable_Radio": true,
          "Kit": "bot1",
          "Murderer": false,
          "Radius": 150,
          "Respawn_Timer": 900
        },
        "Radtown": {
          "Activate": false,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 60
        },
        "Satellite": {
          "Activate": true,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 150,
          "BotName": "Satellite Security bot",
          "Bots": 2,
          "Disable_Radio": true,
          "Kit": "bot3",
          "Murderer": false,
          "Radius": 150,
          "Respawn_Timer": 900
        },
        "SuperMarket": {
          "Activate": false,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 60
        },
        "SuperMarket1": {
          "Activate": true,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 200,
          "BotName": "Zombie",
          "Bots": 2,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": true,
          "Radius": 100,
          "Respawn_Timer": 900
        },
        "Trainyard": {
          "Activate": true,
          "Aggression_Range": 20,
          "Bot_Accuracy": 7,
          "Bot_Damage": 0.7,
          "Bot_Firing_Range": 20,
          "BotHealth": 200,
          "BotName": "Trainyard Security bot",
          "Bots": 2,
          "Disable_Radio": false,
          "Kit": "bot2",
          "Murderer": false,
          "Radius": 150,
          "Respawn_Timer": 900
        },
        "Warehouse": {
          "Activate": false,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 60
        },
        "Warehouse1": {
          "Activate": false,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 60
        },
        "Warehouse2": {
          "Activate": false,
          "Aggression_Range": 20,
          "Bot_Accuracy": 4,
          "Bot_Damage": 0.4,
          "Bot_Firing_Range": 20,
          "BotHealth": 100,
          "BotName": "randomname",
          "Bots": 5,
          "Disable_Radio": true,
          "Kit": "default",
          "Murderer": false,
          "Radius": 100,
          "Respawn_Timer": 60
        },
        "Watertreatment": {
          "Activate": true,
          "Aggression_Range": 20,
          "Bot_Accuracy": 7,
          "Bot_Damage": 0.7,
          "Bot_Firing_Range": 20,
          "BotHealth": 200,
          "BotName": "Water Security bot",
          "Bots": 2,
          "Disable_Radio": true,
          "Kit": "bot3",
          "Murderer": false,
          "Radius": 150,
          "Respawn_Timer": 900
        }
      }
    }
     
  15. Thanks man.
    PMd a possible fix to you. Will upload ASAP if I'm right.

    Don't have a live server to test right now.
     
  16. you sir are a legend :)
     
  17. Nice to see people getting involved and trying things out. That's cool. :)

    I think I'll take a look at forcing the kit onto the corpse after death which should, from players' perspective, set things back the way they were.

    In the longer term, this just creates more need for the custom loot-table idea that has been talked about so I'll most likely be focussing on that soon.
     
    Last edited by a moderator: Dec 18, 2017
  18. Just saw this - I'll need to add a few checks to make sure BotSpawn deals only with its own bots.
    Thank you. ^^
     
  19. I'd be glad to do some testing for you if you need a live server. I've got a low and tolerant pop server that i've been tweaking anyways.

    I have them dropping their equipped weapon now but i cant get the Wear container to work.