Raised This Month: $ Target: $400
 0% 

Prevent bots from changing team or spectating? (FoxBot for TFC)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-04-2017 , 13:33   Re: Prevent bots from changing team or spectating? (FoxBot for TFC)
Reply With Quote #1

It may be something weird in this bot code. Could someone attach their source so we can check?
__________________
HamletEagle is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 06-04-2017 , 15:01   Re: Prevent bots from changing team or spectating? (FoxBot for TFC)
Reply With Quote #2

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
pizzahut is offline
Unzy
Junior Member
Join Date: Apr 2017
Old 06-04-2017 , 15:35   Re: Prevent bots from changing team or spectating? (FoxBot for TFC)
Reply With Quote #3

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-
__________________
Unzy is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 06-04-2017 , 16:00   Re: Prevent bots from changing team or spectating? (FoxBot for TFC)
Reply With Quote #4

Added this now, needs testing though.

Code:
new team_name[32] // new variable ... // old code get_pcvar_string(g_bvh_bot_team, bot_team, charsmax(bot_team)) engclient_cmd(id, "jointeam", bot_team) // added new code message_begin(MSG_ALL, get_user_msgid("TeamInfo")) write_byte(id) if (!team_name[0]) get_user_team(id, team_name, charsmax(team_name)) // only retrieve if not already set write_string(team_name) message_end()

http://rv.apg-clan.org/dlds/amxx_plu..._humans_x2.sma

Last edited by pizzahut; 06-04-2017 at 16:58.
pizzahut is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode