Roam range working for spawned bots spawned via hook?
dIMjIM
hello, i use your hook to let spawn some NPCs via your plugin to some events, but i have noticed, that the NPCs dont stick at the position, if roam range low. they start wandering from spawn position very far away.

here is a example profil what i use
"dangergang": {
      "AutoSpawn": false,
      "Murderer": false,
      "Bots": 4,
      "BotHealth": 200,
      "Radius": 5,
      "Kit": [
        "npc_gang1",
        "npc_gang2",
        "npc_gang3",
        "npc_gang4"
      ],
      "BotNamePrefix": "",
      "BotNames": [
        "[NPC] Bandit"
      ],
      "Bot_Accuracy": 4,
      "Bot_Damage": 0.4,
      "Disable_Radio": false,
      "Roam_Range": 25,
      "Peace_Keeper": false,
      "Peace_Keeper_Cool_Down": 5,
      "Weapon_Drop_Chance": 0,
      "Keep_Default_Loadout": false,
      "Wipe_Belt": true,
      "Wipe_Clothing": true,
      "Allow_Rust_Loot": true,
      "Suicide_Timer": 2400,
      "Chute": false,
      "Respawn_Timer": 600,
      "LocationX": 0.0,
      "LocationY": 0.0,
      "LocationZ": 0.0,
      "Parent_Monument": "",
      "Sci_Aggro_Range": 80,
      "Sci_DeAggro_Range": 120
    },​
Steenamaroo
Plugin Developer
Hi,
They'll roam (roam range) around their own spawn point but that spawnpoint could be anwhere inside the radius and is moved around from time to time to prevent npcs building up in less popular areas in the long term.

To make certain they stay in a specific tight area profile radius would need to be small too.
For more precise positioning (I.E. not necessarily monument center) you'd be best making a new custom profile with '/botspawn add' and giving that a small radius and roam range.
dIMjIM
Original Poster
yes, i use a custom profil like the example above with "Radius": 5, and "Roam_Range": 25, but after around 20 minutes they all wandering around 400meters from spawn position. my experience is they try to wandering to this position
      "LocationX": 0.0,
      "LocationY": 0.0,
      "LocationZ": 0.0,​

i will try to change "Roam_Range": 25, to a lower number like 5 and will see how they acting and set

      "Sci_Aggro_Range": 80,
      "Sci_DeAggro_Range": 120

lower, maybe some sleepers are attracting them

Steenamaroo
Plugin Developer
5b8718c16f911.png dIMjIM
yes, i use a custom profil like the example above with "Radius": 5, and "Roam_Range": 25, but after around 20 minutes they all wandering around 400meters from spawn position. my experience is they try to wandering to this position

Ok, thank you. I'll take a look at this next time I'm working on the plugin.