Prevent bots from changing team or spectating? (FoxBot for TFC)
The problem with FoxBots is that they occasionally change team and do other weird things like they might be stuck in spectator mode or they sometimes don't select a class. I've written a plugin which corrects these mistakes after they happen.
Is there a way to block the random team changes / going into spectator mode? For humans I can just register the corresponding console commands and block them, but this doesn't work for bots. Client commands are "jointeam (number)" and "spectate", e.g. Code:
To join a class, the corresponding console command is the class name: Code:
|
Re: Prevent bots from changing team or spectating? (FoxBot for TFC)
Hi Pizzahut,
I can provide you/moderators maybe with some more details I am using your plugin on my server, the spectatormode on scoreboard bug is indeed frequently happening. I have to say that the bots showing in spectatormode are actually playing, even if it shows they are spectating! It also happen only on mapchange, during spawning. Once a bot show in spectator mode it stays on the scoreboard all map, eventho I can clearly see the bot actively playing. Its also random numbers, sometimes only one bot, sometimes there's a bunch, like 4 or 5 I was thinking : Do they spawn too quickly, following each other too fast? Or is there a problem with speed? Sometimes i feel they are running way to fast My spawn settings are set to 3 secs, server maxspeed is set at 320 The other bug that bot joins other team/random team changes, I don't have any trouble with that. Greetings and thnx! -X- |
Re: Prevent bots from changing team or spectating? (FoxBot for TFC)
Check the plugin from my signature, the last buildv1.* , and add an is_user_bot() in your blockch() public..
Did you figure out how? |
Re: Prevent bots from changing team or spectating? (FoxBot for TFC)
Thanks for the help Craxor. However as I mentioned, blocking client commands only works for human players.
Unzy if it only happens on map change, maybe try adding a delay. In the "foxbot.cfg", make sure that you first set the pause and bot_create_interval variables, and have the addbot commands at the end. So like this: Code:
# Minimum bots in server (0 - 32 [-1 Turns this off]) |
Re: Prevent bots from changing team or spectating? (FoxBot for TFC)
Pizzahut,
I have indeed my config like that. What i noticed is : It doesnt happen when there are no humans! My server is 32 slots, 16vs16, when theres no humans all 16 bots are nicely spawn and scoreboard gives all 16 playing with their scores correct When I join and specced the bots spawning (keeping scoreboard key pressed), i see they all go for A SPLIT SECOND in spectatormode and then join team. Usually one stays stuck in spec mode , sometimes there's more Just for info! -X- |
Re: Prevent bots from changing team or spectating? (FoxBot for TFC)
It may be something weird in this bot code. Could someone attach their source so we can check?
|
Re: Prevent bots from changing team or spectating? (FoxBot for TFC)
I have an idea, maybe in addition to the jointeam command (via engclient_cmd) I should create a TeamInfo event, this might update the scoreboard?
Plugin source: http://rv.apg-clan.org/dlds/amxx_plu...s_humans_x.sma It's a modified version of this: https://forums.alliedmods.net/showthread.php?t=197129 Difference is that it doesn't change bot count, so it's simplified for Unzy's needs. Bot source code: https://apg-clan.org/vbdownloads.php...ownloadid=1107 |
Re: Prevent bots from changing team or spectating? (FoxBot for TFC)
I should also maybe mention my foxbot vesrion! I use an old one 0.701 (i have the source code if you want)
The newer versions the bots act weird on A/D maps like warpath and avanti, they dont cap the CP Grtz and thnx! -X- |
Re: Prevent bots from changing team or spectating? (FoxBot for TFC)
Added this now, needs testing though.
Code:
http://rv.apg-clan.org/dlds/amxx_plu..._humans_x2.sma |
Re: Prevent bots from changing team or spectating? (FoxBot for TFC)
again, check my reply ... i know what i'm talking about and i have tested with podbot and working fine.
|
| All times are GMT -4. The time now is 06:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.