Weird behaviour during warmup
Posted: Tue Nov 24, 2015 11:52 pm
I'm using the following plugin to test this with the latest release at this time:
Apparently whenever I change team during a warmup, it creates a new bot and immediately seems to disconnect it. If I change team again, the bots will join the server, and the userids will keep rising. Is this a bug in SP or CS:GO? Is it possible to fix this? I have tried with all three of bot_quota_mode settings and manually setting bot_quota to 0, but no effect. Also, everything seems to work just fine after the warmup has ended.
EDIT: Seems like every team change increases bot_quota by one. At first it's 0, so the first team change only quickly creates a bot and removes it. Changing a team again will increase bot_quota to 2 and then the first bot will stay on the server.
Syntax: Select all
from events import Event
from players.entity import Player
from players.helpers import index_from_userid
@Event('player_death',
'player_spawn',
'player_disconnect',
'player_activate',
'player_jump')
def on_event(event):
player = Player(index_from_userid(event['userid']))
print(event.get_name(), player.userid)
EDIT: Seems like every team change increases bot_quota by one. At first it's 0, so the first team change only quickly creates a bot and removes it. Changing a team again will increase bot_quota to 2 and then the first bot will stay on the server.