View Single Post
Author Message
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 12-22-2020 , 15:26   [TF2] Wearit (v1.6 dated 16Feb2022)
Reply With Quote #1

Description:
This plugin allows players to wear what they want by typing the cosmetic item number(s) of the cosmetics they want to wear. Players can wear up to five cosmetic items. The cosmetics will not change when they touch a locker or die. The cosmetics will remain until the player removes it using a command, selects a different cosmetic, changes class, or the map changes.

This plugin also allows Admins to force up to five specific cosmetic items onto target players. The cosmetics will not change when they touch a locker or die. The cosmetics will remain until the Admin or player or removes it using a command, the player selects a different cosmetic, changes class, or the map changes. Normal targeting applies so you can target playername, @red, @blue, @bots, etc.

Note: Players can wear any combination of items, even if the cosmetic wasn't designed for the player's class. Expect a bit of weirdness.

Dependency:
Plugin requires TF2Attributes by FlaminSarge. Here's a link: https://github.com/FlaminSarge/tf2attributes

Player Commands:
To see command format and get help with cosmetic item numbers: !wearit
To equip items: !wearit <item1>, <item2>, <item3>, <item4>, <item5>, <unusual effect #>, <paint #>
Unusual numbers are currently: 1-278
Paint numbers are currently: 1-29
To remove items: !wearit 0
To show item numbers of items equipped: !showit
To toggle ability to view cosmetics created with the !wearit command: !hidehats

Additional Player Commands:
!wearit1 <itemid>, <unusual effect#>, <paint#>
!wearit2 <itemid>, <unusual effect#>, <paint#>
!wearit3 <itemid>, <unusual effect#>, <paint#>

Example: !wearit1 666, 13, 8 (wear a yellow Santa hat with burning flames)
Example: !wearit1 0 (remove wearit1 cosmetic)

Player Command Examples:
Wear a Santa hat: !wearit 666
Wear the Heavy's Fairy outfit: !wearit 930, 931, 932
Wear the Heavy's Fairy outfit with flame effect: !wearit 930, 931, 932, 0, 0, 13
Wear the Heavy's Yeti outfit, with unusual effect and yellow paint: !wearit 1187, 1188, 1189, 0, 0, 38, 8
Remove my outfit: !wearit 0
Stop showing me cosmetics created with !wearit: !hidehats
Resume showing me cosmetics created with !wearit: !hidehats

Admin Commands:
To see command format and get help with cosmetic item numbers: !forcewearit
To equip items on target: !forcewearit <target> <item1>, <item2>, <item3>, <item4>, <item5>, <unusual effect #>, <paint #>
Unusual numbers are currently: 1-278
Paint numbers are currently: 1-29
To remove items: !forcewearit <target> 0
To show item numbers of items equipped: !showit
To remove any model (if equipped with Model Manager) and all cosmetics: !strip <target>

Admin Command Examples:
Force player named Bob to wear the Christmas Tree hat: !forcewearit bob 341
Force player named Mary to Demoman Wolf outfit: !forcewearit mary 543, 544, 545
Force all Bots to wear the Scout Alien Isolationist outfit: !forcewearit @bots 30471, 30470, 30472
Force Red team to wear the Soldier Tin Soldier outfit: !forcewearit @red 555, 556, 557
Remove cosmetics from player named Sally: !forcewearit sally 0
Remove model and cosmetics from player named Steve: !strip steve
Force all players to wear a Santa hat: !forcewearit @all 666
Force all players to wear a Santa hat with flame effect: !forcewearit @all 666, 0, 0, 0, 0, 13
Force all players to wear a Santa hat with flame effect and yellow paint: !forcewearit @all 666, 0, 0, 0, 0, 13, 8

Video of Wearit Plugin:


Credits:
Thanks goes to StrikeR14 for sharing a way to avoid gamedata file.

Installation:
Put wearit.smx into the folder: /sourcemod/plugins/
Change map


Changelog:
v1.6 dated 16Feb2022: Plugin now sm1.11 compatible. Wearit items are now copied between maps.
v1.5 dated 08Mar2021: Plugin now removes cosmetics when !wearit1 is used
v1.4 dated 04Mar2021: Added !wearit1, !wearit2, !wearit3 commands requested by Teamkiller324
v1.3 dated 10Feb2021: Implemented updated Cookie code provided by Teamkiller324
v1.2 dated 06Jan2021: Added Unusual Effects and Paint at the request of H4rry
v1.1 dated 06Jan2021: Added !hidehats command at the request of Fearts
Attached Files
File Type: sp Get Plugin or Get Source (wearit.sp - 342 views - 32.7 KB)
File Type: smx wearit.smx (14.4 KB, 363 views)

Last edited by PC Gamer; 01-26-2023 at 17:01.
PC Gamer is offline