View Single Post
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 11-16-2018 , 18:23   Re: [CSGO] bot quota fix
Reply With Quote #7

Quote:
Originally Posted by Bacardi View Post
First for all, I'm not sure what kind game mode or mods/plugins you are using.
This is about CS:GO own respawn system, not SM plugins.


Finally I found problem. (maybe somone already did before me :s )

Rant:
By default in any game modes.
- First 30 seconds after round_start, bots fill slots automatically depend bot_quota amount and player join team. Works nice.
- After 30 seconds, bots are hold in the end of roun_end. Bots not join or leave automatically.
- After round_end, bots autofill work again like in round_start.


In CS:GO, it have wierd system. (I had no time to check other games for now...)
- When in game respawn system is active, you see it when you jointeam between teams, you respawn immediatelly, there is now freeze/death cam animation.
Server is using bot_add_ct/bot_add_t commands related to -> player jointeam command! *Valve need fix this.
- When server use bot commands, of course cvar bot_quota change amount automatically. This give also problems.


Anyway, bots which not leave or join after 30 sec round_start is game own feature. It's normal.
This can be "fixed" by plugin.







I leave my unfinished test plugin code.
I didn't have anymore time to make plugin, because that "bug" take so long. I need to go work.

- So this plugin will block server commands bot_add_ct/bot_add_t which happen in same time with player jointeam command.
- And everytime human player change team (player_team), it check and change amount bots in game based bot_quota amount.
- And it try fix bot_quota back normal
-- Some point there could be one bot too much, but I look it another time. (Anyone if free to make own versio of this.)
Spoiler



*edit
I forgot mention. In CSGO respawn system, player fast respawn is also buggy, player can respawn in enemy base sometimes.
I couldn't find any cooldown/delay setting for player attempt to spam jointeam and respawn rapidly. With plugin this can be "fix". (Valve need fix this also)
Im running CSGO Deathmatch Advanced with latest dev SM/MM.
So with this I need to set bot_quota right? with the others it was set to 0.


EDIT
Im not sure its working. I have bot_quota 10 + 1 GOTV and a player joined:

Result:
1 GOTV
10 bots
1 player

Expected result:
1 GOTV
9 bots
1 player

Last edited by Ejziponken; 11-16-2018 at 18:43.
Ejziponken is offline