Raised This Month: $ Target: $400
 0% 

[TF2] Bots play a random taunt (aka friendly bots)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cyriv
Member
Join Date: Mar 2020
Old 02-16-2023 , 22:25   [TF2] Bots play a random taunt (aka friendly bots)
Reply With Quote #1

I want a plugin that bots play a random taunt like RPS & Fist Bump or conga or any taunt. I want this for both Red & Blu bots, make sure to disable kills. For both teams to play each other.
Cyriv is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 02-17-2023 , 00:50   Re: [TF2] Bots play a random taunt (aka friendly bots)
Reply With Quote #2

How often do you want the bots to taunt? Under what circumstances?

I made a plugin for you but it's probably not what you want. I made it so Bots would have a random chance to perform one of ten taunts whenever they killed another player. The server operator can set the random chance amount. But... After reading your request again I don't think that's what you want.
PC Gamer is offline
Cyriv
Member
Join Date: Mar 2020
Old 02-17-2023 , 15:08   Re: [TF2] Bots play a random taunt (aka friendly bots)
Reply With Quote #3

@PC Gamer That's fine. and I don't want them to taunt often. not alot.
Cyriv is offline
Cyriv
Member
Join Date: Mar 2020
Old 02-17-2023 , 15:09   Re: [TF2] Bots play a random taunt (aka friendly bots)
Reply With Quote #4

You can send the file if you want.
Cyriv is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 02-17-2023 , 19:15   Re: [TF2] Bots play a random taunt (aka friendly bots)
Reply With Quote #5

Here's a bot taunt plugin for you. A bot will have a percentage chance to perform an all class taunt whenever they kill another player. Default chance is 5 percent. You can change the percentage chance with a console variable. You can edit the plugin if you decide to change the taunts performed. I labeled the taunt names in the code. There are currently 12 different taunts possible in the code with the Laugh taunt 4 times more likely than others.

Plugin credit: Most of the code for this plugin comes from FlaminSarge's excellent [TF2] Taunt 'em plugin which allows human players to taunt.

Installation:
1. Place tf2.tauntem.txt in your /addons/sourcemod/gamedata/ folder.
2. Place bot_taunt.smx in your /addons/sourcemod/plugins/ folder.
3. Change map.

The default percentage chance that a bot will taunt on kill is 5%. You can change the value from a low of zero percent (0) to a high of 100 percent (100). To change it to something like 60% chance to taunt type this in at the server console:
PHP Code:
sm_bot_taunt_chance 60 
If you find a percentage chance you like you can always add that command to your server.cfg file to ensure it is always set the way you want.
Attached Files
File Type: txt tf2.tauntem.txt (370 Bytes, 135 views)
File Type: sp Get Plugin or Get Source (bot_taunt.sp - 188 views - 3.9 KB)

Last edited by PC Gamer; 02-17-2023 at 19:20.
PC Gamer is offline
LK777
New Member
Join Date: Sep 2022
Old 11-12-2023 , 19:00   Re: [TF2] Bots play a random taunt (aka friendly bots)
Reply With Quote #6

does it also work with singular taunt class? of course for their proper class that they are mean't to
LK777 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 10:49.


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