All Projects → punteroo → TF2-Item-Plugins

punteroo / TF2-Item-Plugins

Licence: GPL-3.0 license
Manage your cosmetic and weapons freely! Set Unusual Effects, Australiums, Festives, War Paints (w/ Wear), Spells and Paints at will!

Programming Languages

SourcePawn
201 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to TF2-Item-Plugins

HexTags
Customize tags & chat colors!
Stars: ✭ 53 (+140.91%)
Mutual labels:  sourcemod, sourcemod-plugins, sourcemod-plugin
MannVsMann
A plugin for Team Fortress 2 that brings Mann vs. Machine upgrades and mechanics to other gamemodes
Stars: ✭ 23 (+4.55%)
Mutual labels:  tf2, sourcemod
SuperZombieFortress
Custom Team Fortress 2 Gamemode, inspired from Left 4 Dead
Stars: ✭ 28 (+27.27%)
Mutual labels:  tf2, sourcemod
fortress-royale
Team Fortress 2 battle royale gamemode
Stars: ✭ 48 (+118.18%)
Mutual labels:  tf2, sourcemod
TeamGames
Sourcemod plugin providing team based games for prisoners and some useful things for wardens.
Stars: ✭ 16 (-27.27%)
Mutual labels:  sourcemod, sourcemod-plugin
zephyrus-store-preview-new-syntax
My rewritten zephyrus store
Stars: ✭ 28 (+27.27%)
Mutual labels:  sourcemod, sourcemod-plugin
CallAdmin
CallAdmin is a multilingual sourcemod plugin which provides in-game report functionality
Stars: ✭ 52 (+136.36%)
Mutual labels:  tf2, sourcemod
sourcemod-transitional-helpers
A set of helper include files for cleverly (or abusively) working with the SM transitional API.
Stars: ✭ 26 (+18.18%)
Mutual labels:  sourcemod, sourcemod-plugins
VSH-Rewrite
Popular Versus Saxton Hale gamemode remade from scratch
Stars: ✭ 30 (+36.36%)
Mutual labels:  tf2, sourcemod
TF2 NextBot
TF2 NextBot stuff using base_boss
Stars: ✭ 26 (+18.18%)
Mutual labels:  tf2, sourcemod
tf2attributes
TF2Attributes SourceMod plugin
Stars: ✭ 19 (-13.64%)
Mutual labels:  tf2, sourcemod
Mapchooser-Redux
Mapchooser - Redux
Stars: ✭ 28 (+27.27%)
Mutual labels:  sourcemod, sourcemod-plugin
Half-Life-Resurgence
Recreation & expansion of NPCs, entities, and weapons from the Half-Life series into Garry's Mod!
Stars: ✭ 52 (+136.36%)
Mutual labels:  sourcemod, weapons
jse
TF2 Jump Server Essentials
Stars: ✭ 16 (-27.27%)
Mutual labels:  tf2, sourcemod
Public
The game is about a group of "terrorists" who have traitors among them, out to kill everyone who's not a traitor.
Stars: ✭ 94 (+327.27%)
Mutual labels:  sourcemod, sourcemod-plugin
Randomizer
TF2 plugin that randomizes player loadout in any imaginable combinations
Stars: ✭ 26 (+18.18%)
Mutual labels:  tf2, sourcemod
FreakFortressBat
No longer supported.
Stars: ✭ 32 (+45.45%)
Mutual labels:  tf2, sourcemod
tf-bhop
Simplistic Team Fortress 2 bunnyhop plugin
Stars: ✭ 17 (-22.73%)
Mutual labels:  tf2, sourcemod
node-tf2-item-format
Fully typed battle-tested library that helps you format TF2 items to the community standards.
Stars: ✭ 17 (-22.73%)
Mutual labels:  tf2, tf2-items
Drawingboard.js
A canvas based drawing app that you can integrate easily on your website.
Stars: ✭ 2,072 (+9318.18%)
Mutual labels:  paint

TF2 Item Management Plugins

Some months ago I started developing private plugins for communities that modify items for the game. It IS AGAINST TOS, and I know this can't be released on AlliedModders because of such, but because VALVe doesn't care for their game and it's been 7 years since a token ban has been issued I'll be releasing these public.

As 404 said once:

It technically is against the TOS, and using something like it could have potentially gotten your server blacklisted about 8-9 years ago. Nowadays, not so much. Many community servers in existence are using this system.

For example, Skial uses it for their "!items" system that allows you to equip any weapon or cosmetic you want (even rare ones like the Wiki Cap, Top Notch, Golden Wrench, Golden Frying Pan, etc) and they're visible to other players. What has changed in the past 8-9 years is that Valve is now more focused on CS:GO and Half Life: Alyx.

TF2 servers have not suffered any GLST token bans in many years. Even CS:GO servers, which were frequently hit by GLST token bans for using fake knife/gun/etc skin plugins, have slowly over time stopped being hit by GLST token bans. It seems Valve has either lightened up on former community "restrictions", or they're too busy with HL:A to notice. lmao nevermind, seems they just banned the GLST tokens of someone in our community who was generating them en masse. Be careful if you choose to use this fucker as Valve could rear their heads towards Team Fortress 2 next. Especially be careful if you're a group like Skial that abuses this netprop.

Basically, by using this plugin, you are acknowledging that there is still the possibility that Valve could come around one day and blacklist your server. Don't blame me if such a thing happens either.

source

I might make some other releases if people want things fixed or whatever. I just release them because keeping them private is worthless, they're already everywhere and even some other devs have made their own versions of this public as well. Feel free to use these plugins wherever you want.

This plugin makes use of the m_bValidatedAttachedEntity networked property, which bypasses the restriction made by VALVe where fake items are invisible to others. Everyone on the server will be able to see your items with these plugins.

If you have any doubts or want something else, just write it down on the Issues tab or contact me directly through Discord. My tag is puntero#6566. Enjoy.

TODO

  • Translations, for Spanish and English users.
  • Merge everything to maintain functionality, as one removes the others' effects.
  • Implement preference saving on tf2item_cosmetics and tf2item_weapons so selected user effects are applied whenever the user re-joins the server. This would nullify the player from opening the menus again each map change to re-apply said preferences.
  • Fix Unusual Effects (custom or legit) not being kept after applying a custom paint effect, could probably be permanently fixed when the merge is applied (merge is done).
  • Refresh handles upon re-loading to prevent plugin failing on late-load (reload, refresh or unload and load) Replace all Handles for enum structs.
  • Fix a probably problematic memory leak when applying Unusual Effects.

Requirements

In order for these plugins to work you need the following dependencies installed on your server:

For compilation you require my custom includes provided in the repository, the includes from the dependencies mentioned above and the following includes as well:

Installation

As of v3.0.0 TF2IDB is no longer required. Installation is literally a Drag & Drop of what's inside the .zip file.

Read all the articles inside the Requirements section and install them independently, then head over to the Releases section in this repository and download the latest one. NOW you can Drag & Drop the contents of the .zip into addons/sourcemod/.

If any error was present during installation, contact me through Discord and I'll help you out whenever I'm able to.

Updating

Only update whenever a new TF2 Update fires (I know, weird but happens). I've written .py scripts inside the sourcemod/translations folder to update the Unusual Effects and War Paint names. The plugin checks for an existing translation phrase for each ID, if none is found the particle/protodef ID is skipped.

You will require to run these .py scripts to update each of them.

Updating tf2item_cosmetics

  1. Head over to your SourceMod installation and into the translations folder.
  2. You should see a Python Script named unusual_names_updater.py (if not, click on the link and download it). Write down its absolute location (For ex.: C:/unusual_names_updater.py)
  3. NOTE: The scripts' location is not important, it doesn't have to be in the translations folder.
  4. Fire up cmd as Administrator (or Terminal on an user with write and read rights to both files if on Linux) and cd into the script's location.
  5. Write py <script location> -tf <tf_english.txt location> -out <output location> and hit ENTER.
  6. NOTE: tf_english.txt is always located in your Team Fortress 2 installation at tf/resource/tf_english.txt. For output, you can target anything and copy the file later to your SourceMod installation's translations folder. Make sure the output filename is unusuals.phrases.txt.
  7. If everything goes well, the updated translations file should be outputted without any issues.

Updating tf2item_weapons

The script is primitive. I will write an easier to use script later (PRs are also welcome).

Also Unused War Paints are parsed, so watch out!

  1. Head over to your SourceMod installation and into the translations folder.
  2. You should see a Python Script named paintkits.py (if not, click on the link and download it). Write down its absolute location (For ex.: C:/paintkits.py)
  3. NOTE: The scripts' location is not important, it doesn't have to be in the translations folder.
  4. Create a .txt file namedpaintkits.txt on the same directory as the script.
  5. Fill its contents with entries from the file tf_proto_obj_defs.txt that start with 9_ located in your tf/resource/ folder inside your TF2 Installation.
  6. NOTE: There's an example entry file on the repo if you need an example for format. Those entries should look like this, just copy the ones that start with 9_:
	"9_0_field { field_number: 2 }"		"Red Rock Roscoe"
	"9_100_field { field_number: 2 }"		"100: (Unused) Red Rock Roscoe"
	"9_101_field { field_number: 2 }"		"101: (Unused) Sand Cannon"
	"9_102_field { field_number: 2 }"		"Wrapped Reviver Mk.II"
	"9_103_field { field_number: 2 }"		"103: (Unused) Psychedelic Slugger"
	
	...
  1. The script will print out the translations content. Copy the scripts' output and create a file inside your SourceMod installation's translations folder named weapons.phrases.txt.

Plugin Pack Usage

ConVars (new with v3.0.1)

You can now customize the plugin pack's functionality utilizing ConVars.

ConVar Description Plugin it Affects Default Value
tf2items_general_onlyspawn Restricts players to only be able to utilize any manager inside a spawn region. tf2item_cosmetics & tf2item_weapons 0
tf2items_save_preferences Enables the usage of Player Cookies to save overrides between map changes and disconnections. tf2item_cosmetics & tf2item_weapons 1
tf2items_cosmetics_show_missing_particles Logs whenever a valid ID for a War Paint or Unusual Effect is tried to be added onto a menu, but fails because of a missing translation phrase. Good to know for updating, but bad because of the spam amount. tf2item_cosmetics & tf2item_weapons 0
tf2items_cosmetics_unusuals Toggles the ability for players to utilize Unusual Overrides on their cosmetics. tf2item_cosmetics 1
tf2items_cosmetics_paints Toggles the ability for players to utilize Paint Overrides on their cosmetics. tf2item_cosmetics 1
tf2items_cosmetics_spells Toggles the ability for players to utilize Halloween Spell Overrides on their cosmetics. tf2item_cosmetics 1
tf2items_cosmetics_append_ids Appends the Unusual Effect ID to its name on the menu. Ex.: Burning Flames (#13) tf2item_cosmetics 0

tf2item_cosmetics

  • Players can customize their legit cosmetic items at will, applying Unusual effects, paint colors, spells and spell paints.
  • Overrides set by this plugin will always keep in mind original attributes, for ex.: if you have a legit Unusual Pomade Prince with Halloween Spell: Voices From Below and Molten Mallard effect, they will not disappear when setting a paint colour on it, only when overriden by the same attribute (such as changing the Unusual effect to Burning Flames)
Command Description Example
sm_cosmetics Opens up the Cosmetics Manager. YouTube Video Demonstration
sm_hats Same as the command above, just different N/A
sm_myhats Same as the command above, just different N/A

tf2item_weapons

  • Players can customize their legit weapons at will, applying Unusual effects, setting Australiums and/or Festivizers, custom War Paints with custom Wears, spells and entire Killstreak combinations.
  • All War Paints in the game are listed (if there's a translation phrase registered for that specific one), but that doesn't mean they can all be applied to a certain weapon.
  • War Paints can either: keep the Wear of the original weapon (if it has it) or set a custom one.
  • Overrides set by this plugin will always keep in mind original attributes, for ex.: if you have a legit Australium Scattergun with Specialized Killstreak and Team Shine sheen, they will not dissapear when setting (for example) an Unusual effect on it, only when overriden by the same attrbute (such as changing the applied Sheen on it)
Command Description Example
sm_weapons Opens up the Weapons Manager. YouTube Video Demonstration
sm_weps Same as the command above, just different N/A
sm_myweps Same as the command above, just different N/A

vip-unusual-glow

  • Allows players to apply one of the new 'player glow' Unusual taunt effects on them permanently.
  • This plugin has reports of lowering other players' FPS due to the Unusual effect being constantly applied to the player. There is nothing I can do about this issue other than tell you to get a better PC or blame the game for not having great optimization in this matter.
Command Description Example
sm_unuglow Opens up the Unusual Glowing configuration menu. YouTube Video Demonstration
sm_glowme Same as the command above, just different N/A

vip-system

  • A customizable menu that displays commands for your VIP members. This hasn't got to do with the repository, but I dip this in just if someone needs it.
  • Everything is explained in the configuration file located in configs/vip-system.cfg with an example of how it must be written.

Configuration File

  • To modify the menu, edit the config located in addons/sourcemod/configs/vip-system.cfg. An example structure for the config would be as such:
"VIP-System"
{
	"Cosmetics Manager" // What the player reads in the menu as an option.
	{
		"command"		"sm_hats" // The command that is executed for the player.
	}
	"Weapons Manager"
	{
		"command"		"sm_weps"
	}
	"Unusual Glow"
	{
		"command"		"sm_unuglow"
	}
}
Command Description Example
sm_vipmenu Opens up the VIP menu. Everything is controlled and modified from the configuration file. N/A
sm_vip Alias for the main command. N/A
sm_donor Alias for the main command. N/A
sm_donator Alias for the main command. N/A
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].