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.
BotSpawn
Moved
Total Downloads: 11,762 - First Release: Jul 31, 2017 - Last Update: Jul 27, 2018
- 5/5, 81 likes
-
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 -
The skin of the kit, and the weapons are used by the bots, but they can't be looted. -
Sorry to say, but after the update, no zombies spawning.
-
-
BotSpawn definitely has its issues right now, no doubt, but I haven't been able to replicate corpse inventory items being locked. -
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. -
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 -
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.
-
It's not what smoke is experiencing, though. I think he has some unique issue.
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]
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. -
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); }
If anyone else comes up with something better, let me know! -
That's dirty.
-
-
waiting in anticipation, i edited all my kits for xmas theme and no-one can wear them
but thanks Steenamaroo for your hard work
-
Still no zombies, what could be wrong.
-
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. -
-
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] -
now not issued KIT's for NPC
-
KittyMeowMeow, thanks, that works and is a nice fix for now!
Thanks again!!
yop
Wez