csgo-multi-1v1
csgo-multi-1v1 copied to clipboard
Allow bots in the server
Currently the plugin doesn't allow bots at all. It'd be neat if it did.
+1
From a first attempt at it (see branch https://github.com/splewis/csgo-multi-1v1/tree/feature-bots) it seems CS:GO has some issue with having bots on spectator. My attempt just treated the bots as players, and moved them into the waiting queue on spectator when connected and they got to join the next round, but it seemed the game would constantly kick and re-add bots every round.
Could this be re merged into master? In my opinion the problem of kicking + re-adding bots is not so large, and if people disagree they can always just disable bots via CVARs?
If somebody finished it, yes. The branch I have above didn't work a year ago and I haven't worked on it since.
I'll take a look at merging it with the latest version and fixing any bugs.
@popey456963 did you manage to iron out the merging?
No, like @splewis said, the original didn't appear to even function correctly and merging would have meant almost rebuilding it from scratch into a project I've never known before.
any News/Updates from this?
I've experimented with this.
As @splewis mentioned, switching the bots from team makes them leave.
The closest I got was via:
- Grab the first arena in the array list of spawns.
- Reserve that arena for bots.
- Remove that arena for players.
- Add a terrorist bot.
- Make him always spawn in that reserved arena.
- Rename him to "awaiting opponents"
- Whenever the queue is odd ( 4 vs 3 ) switch the "no opponent" person to CT.
- Fork away from normal routines, on round end.
- Spawn the T bot in the arena of the no opponent person. (bot will always be a T, player a CT).
Botwise I just straight up gave my bots aimbot ( https://forums.alliedmods.net/showthread.php?t=320719 )
Stats wise I give the bots the average ELO of players avg(). Or you can give them 1500 unchangable.
I got close to get it working, but its a real mess,
Unless someone has better ideas, this seems the only way forward.
This would be a cool addition (I've just started experimenting with running this plugin for some friends)
If this workflow is possible, it might be easier/cleaner?
- If teams are uneven find un-matched player
- Spawn bot in his arena on the opposite team
- Give bot ELO as before
- Remove bot on round end to make the team-switch-leaving behavior predictable
Do you see any issues arising like the ones you already encountered?
https://forums.alliedmods.net/showthread.php?t=322907