Skip to content

keybangz/TF2-Wearables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TF2-Wearables

Overview

This plugin allows players on the server to give themselves Team Fortress 2 wearable affects & cosmetics through the use abusing the attribute system. I originally made this plugin for my own private community to provide players with more incentive to play on the servers I provided. All the customizations are done mainly through a menu accessible with !wearables, I had gotten this idea from a plugin with a similar name which intended to have the same functionality but I felt personally it had missed the mark.

Features

  • Killstreaks Effects: Allow the player to choose the level of killstreak applied to a specific weapon slot in their inventory, and is not bound to the weapon the player has chosen.
  • Unusual Taunts: Allows the player to choose a unusual effect for taunting in-game. (Also known as emoting)
  • Unusual Hat Effects: Allows the player to choose a unusual hat effect. (If they are wearing a hat in-game)
  • Unusual Weapon Effects: Allows the player to attach a unusual weapon effect to the desired slot. (Updates OnResupply, needs to moved to OnGiveNamedItem)
  • MySQL support (Saves players preferences if they disconnect)

Commands

!wearables - Display the wearables menu to the player.

ConVars

tf_wearables_enabled: 1/0 (default: 1) - Enable TF2 wearables plugin?
tf_wearables_db: (default: wearables) - Name of database as inputted in databases.cfg
tf_wearables_table: (default: wearables) - Name of database table plugin will generate and read/write data from.

Preview Images

20230919233340_1

20230919234314_1

Dependencies

Installation

  • Place tfwearables.smx into your /plugins folder ex: /addons/sourcemod/plugins/
  • Place tfwearables.phrases.txt into your /translations folder ex: /addons/sourcemod/translations/
  • Add wearables MySQL entry to your databases.cfg located inside sourcemod/configs
  • Restart your server after installation.

Dynamic unloading and loading of this plugin is not supported!

Development

Ensure to setup your SourceMod compiler environment with the includes from the dependencies above, aswell as the development dependencies below:

Credits

  • asherkin - For the creation of TF2Items
  • FlaminSarge - For the creation of TF2Attributes

About

A complete rewrite of a TF2 wearables plugin I found on the internet.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors