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

[TF2] Give Bots More Cosmetics (v1.17 26Oct2022)


Post New Thread Reply   
 
Thread Tools Display Modes
That Annoying Guide
Member
Join Date: Aug 2019
Old 06-08-2021 , 18:08   Re: [TF2] Give Bots More Cosmetics (v1.13 01Jan2021)
Reply With Quote #11

Hay everyone so I've taken a bunch of time outta my week to make this plugin bigger. I've tweaked it so it gives three random cosmetics from any cosmetics in the game (Except tournament medals.) do note that since the plugin is much bigger it will probably contribute to more lag on your server there ain't much I can do about I believe. Hope you enjoy this
Edit thanks to a load of help from PC Gamer I have now gotten all spell effects to work. So now you may see RGB paints deeper voices or fire feet.
Edit 2: Updated with new unusual and cosmetics from the recent summer 2021 update also fixed a few general bugs and tweaks spell and unusual chances a bit
Edit 3: Updated with all Halloween stuff unusuals and cosmetics.
Edit 4: Christmas stuff added.
Edit 5: got around to updating this added missing cosmetics introduced a best of both worlds to include both random and sets together and applied SM 1.11 standards. Enjoy! (Had to zip do to file size)
Attached Files
File Type: zip give bots more cosmetics.zip (263.8 KB, 43 views)

Last edited by That Annoying Guide; 01-17-2023 at 17:07.
That Annoying Guide is offline
That Annoying Guide
Member
Join Date: Aug 2019
Old 06-10-2021 , 18:22   Re: [TF2] Give Bots More Cosmetics (v1.13 01Jan2021)
Reply With Quote #12

Oh ya, one thing I wanted to ask you, PC Gamer is that do you know if it is possible to apple spell effects (like colored fire when you walk or voice pitch changing spells) through tf2attributes as I would like them to be included in my version of the plugin, but I got no idea how I would go about doing that.
That Annoying Guide is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 06-11-2021 , 03:40   Re: [TF2] Give Bots More Cosmetics (v1.13 01Jan2021)
Reply With Quote #13

Quote:
Originally Posted by That Annoying Guide View Post
is it possible to apply spell effects (like colored fire when you walk or voice pitch changing spells) through tf2attributes.
Yes. Here's the key piece of code for something like that:
PHP Code:
TF2Attrib_SetByName(client"SPELL: set Halloween footstep type"13595446.0); 
PC Gamer is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 06-11-2021 , 10:45   Re: [TF2] Give Bots More Cosmetics (v1.13 01Jan2021)
Reply With Quote #14

how is this plugin more resource intensive than luki1412's version?
__________________
8guawong is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 06-11-2021 , 15:11   Re: [TF2] Give Bots More Cosmetics (v1.13 01Jan2021)
Reply With Quote #15

Quote:
Originally Posted by 8guawong View Post
how is this plugin more resource intensive than luki1412's version?
This plugin is based largely on the plugin '[TF2] Give Bots Cosmetics' made by the very talented luki1412. There are a few key differences between the two.

1. The luki1412 original gives one random hat to each BOT.
2. This version gives a complete cosmetic outfit (such as hat, shirt, pants) of three (or more) cosmetic items to each BOT. Each possible outfit was created with the entire ensemble in mind. In other words each outfit makes sense and clothing items compliment each other (unless you use the 'That Annoying Guide' version which is completely random).
3. This version applies a random paint to the cosmetic if it is paint-able.
4. This version has a random chance of giving the hat a random unusual effect.

In short, this plugin creates at least 3 times the amount of objects as luki1412's original and will take up more game resources.
PC Gamer is offline
That Annoying Guide
Member
Join Date: Aug 2019
Old 06-11-2021 , 21:16   Re: [TF2] Give Bots More Cosmetics (v1.13 01Jan2021)
Reply With Quote #16

Quote:
Originally Posted by PC Gamer View Post
Yes. Here's the key piece of code for something like that:
PHP Code:
TF2Attrib_SetByName(client"SPELL: set Halloween footstep type"13595446.0); 
Thanks for the help on that I've gotten some of the spell effects set up as random now for both weapons and cosmetics (Fire feet and weapon effects), but now I'm having a bit of trouble with the fact that they aren't being cleared on death or when weapons are switched again. Might you know how I can fix that? (Sorry I'm a newbie at coding) EDIT: made a second form for the issue under scripting https://forums.alliedmods.net/showthread.php?t=332984

Last edited by That Annoying Guide; 06-12-2021 at 17:20.
That Annoying Guide is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 06-12-2021 , 12:35   Re: [TF2] Give Bots More Cosmetics (v1.13 01Jan2021)
Reply With Quote #17

Quote:
Originally Posted by That Annoying Guide View Post
attributes aren't being cleared on death or when weapons are switched again. Might you know how I can fix that? (Sorry I'm a newbie at coding)
Yes, but your question is better suited for the scripting section.
PC Gamer is offline
SashaNight
Junior Member
Join Date: Aug 2018
Old 05-14-2022 , 18:12   Re: [TF2] Give Bots More Cosmetics (v1.13 01Jan2021)
Reply With Quote #18

Anyway I could pick cosmetic sets for the bots?
Want to give all the bots fairly historical looks from different SFM and GMOD videos
SashaNight is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 05-14-2022 , 20:32   Re: [TF2] Give Bots More Cosmetics (v1.13 01Jan2021)
Reply With Quote #19

Quote:
Originally Posted by SashaNight View Post
Anyway I could pick cosmetic sets for the bots?
Yes.
1. Edit the source code of this plugin to add specific cosmetic outfits per class. Remove the ones you don't want.

2. For specific outfits don't use this plugin. Instead, use the '[TF2] Wearit' plugin that I wrote. It allows you to force specific cosmetics onto players and Bots. Here's a link: https://forums.alliedmods.net/showthread.php?p=2729790

Option 1 is a better long term solution as it will then work the way you want for every map. Option 2 is better suited for changes during the current map. Changes to bot outfits with option 2 are lost on map change unless you add the forcewearit commands to your server.cfg.
PC Gamer is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 09-14-2022 , 19:12   Re: [TF2] Give Bots More Cosmetics (v1.14 14Sept2022)
Reply With Quote #20

Plugin in original post updated to version 1.14.

This version uses SourceMod 1.11 syntax. No new features since it already works as intended.
PC Gamer is offline
Reply


Thread Tools
Display Modes

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 17:26.


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