Raised This Month: $319 Target: $400
 79%   Almost there!

[TF2] Give Bots More Cosmetics (v1.13 01Jan2021)


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.
Attached Files
File Type: sp Get Plugin or Get Source (GiveBotsMoreCosmetics.sp - 1 views - 990.7 KB)
File Type: smx GiveBotsMoreCosmetics.smx (153.3 KB, 1 views)

Last edited by That Annoying Guide; 10-06-2021 at 19:43.
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
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 13:18.


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