Raised This Month: $32 Target: $400
 8% 

[TF2] Bot Name Based on Class


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SPYderman
Senior Member
Join Date: Aug 2013
Old 02-23-2014 , 01:42   [TF2] Bot Name Based on Class
Reply With Quote #1

(i request bot plugins cuz i nerd)

Alright, so, I've had this idea for quite a long time now but I never got around to requesting it (mainly because I had no intentions for it until now) or had time to learn much for coding the plugin myself, but basically all I need is a plugin that will change a TFBot's name to the full name of the class they're playing (Ex. HeavyWeapons, Engineer, etc.). There are 2 ways I would accept this plugin:

The 1st Way - The bot will obviously change names based on its class, however if it were to change classes it would change their name again to that class. However, it would cause spam in the chat so something to hide their name changing would be nice.

The 2nd Way - This way is like a tf_bot_keep_class_after_death sort of thing. It would spawn, choose a class and have the name change, and you wouldn't worry about having to code the "hide name changing in chat" part.

I would accept either of these, whichever you feel like you would spend your time to do. I've also noticed Saigns.De starting to do this with their bots, random comment but I thought it was an interesting coincidence.
SPYderman is offline
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
Old 02-23-2014 , 04:58   Re: [TF2] Bot Name Based on Class
Reply With Quote #2

Tested and working.
Attached Files
File Type: sp Get Plugin or Get Source (botnames.sp - 500 views - 2.1 KB)

Last edited by Pelipoika; 02-24-2014 at 03:35. Reason: Added bot name change supression
Pelipoika is offline
SPYderman
Senior Member
Join Date: Aug 2013
Old 02-23-2014 , 12:50   Re: [TF2] Bot Name Based on Class
Reply With Quote #3

Quote:
Originally Posted by Pelipoika View Post
Untested.
Tested, works perfectly. Thanks for quick reply. The plugin doesn't hide name changing but as said I'd still take it, and I'm sure I will find something to hide the name changing later if I need to.

EDIT: Whenever the bots die, they announce their name change in chat due to slow updating after the first name change upon joining, causes some spam. I couldn't find any plugins that hide name changing. :\

EDIT 2: Had a quick plugin requested, the EDIT above is no longer needed!

Last edited by SPYderman; 02-23-2014 at 23:34.
SPYderman is offline
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
Old 02-24-2014 , 03:36   Re: [TF2] Bot Name Based on Class
Reply With Quote #4

Quote:
Originally Posted by SPYderman View Post
Tested, works perfectly. Thanks for quick reply. The plugin doesn't hide name changing but as said I'd still take it, and I'm sure I will find something to hide the name changing later if I need to.

EDIT: Whenever the bots die, they announce their name change in chat due to slow updating after the first name change upon joining, causes some spam. I couldn't find any plugins that hide name changing. :\

EDIT 2: Had a quick plugin requested, the EDIT above is no longer needed!
Oh well i decided to fix the name change supressing anyway (updated my post)
Pelipoika is offline
SPYderman
Senior Member
Join Date: Aug 2013
Old 02-25-2014 , 19:54   Re: [TF2] Bot Name Based on Class
Reply With Quote #5

Quote:
Originally Posted by Pelipoika View Post
Oh well i decided to fix the name change supressing anyway (updated my post)
Works nice, now I can have it only stop showing the bot's name changing. The last and final problem was that if a bot joined, their name didn't change to a class until they died.
SPYderman is offline
EfeDursun125
Senior Member
Join Date: Feb 2019
Location: Turkey
Old 06-21-2019 , 09:41   Re: [TF2] Bot Name Based on Class
Reply With Quote #6

Quote:
Originally Posted by SPYderman View Post
Works nice, now I can have it only stop showing the bot's name changing. The last and final problem was that if a bot joined, their name didn't change to a class until they died.
You no need any plugin!

sm_cvar tf_bot_reevaluate_class_in_spawnroom 0 (this code requires sv_cheats 1)
tf_bot_keep_class_after_dead 1

tf_bot_add [<count>] [<class>] [<team>] [<difficulty>] [<name>]

tf_bot_add 1 Pyro 2 3 Pyro

now Pyro bot playing every time with Pyro class
EfeDursun125 is offline
timtam95
Member
Join Date: Feb 2018
Old 06-21-2019 , 18:22   Re: [TF2] Bot Name Based on Class
Reply With Quote #7

Good job! Way to:

1) Necro a 5 1/2 year old post,
2) responding to a user who hasn't been active in over 2 years,
3) Providing an answer that doesn't even solve the problem that was asked.

Keep up the good work!!


Quote:
Originally Posted by EfeDursun125 View Post
You no need any plugin!

sm_cvar tf_bot_reevaluate_class_in_spawnroom 0 (this code requires sv_cheats 1)
tf_bot_keep_class_after_dead 1

tf_bot_add [<count>] [<class>] [<team>] [<difficulty>] [<name>]

tf_bot_add 1 Pyro 2 3 Pyro

now Pyro bot playing every time with Pyro class
timtam95 is offline
EfeDursun125
Senior Member
Join Date: Feb 2019
Location: Turkey
Old 06-23-2019 , 08:19   Re: [TF2] Bot Name Based on Class
Reply With Quote #8

Quote:
Originally Posted by timtam95 View Post
Good job! Way to:

1) Necro a 5 1/2 year old post,
2) responding to a user who hasn't been active in over 2 years,
3) Providing an answer that doesn't even solve the problem that was asked.

Keep up the good work!!
1) I know this is an old topic,
2) Maybe the user can be online again and again,
3) If you read carefully you can understand what are saying.

Not everyone is like you!!
EfeDursun125 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 16:10.


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