View Single Post
Author Message
Spirit532
Junior Member
Join Date: Dec 2015
Location: Belarus
Old 02-29-2016 , 05:45   TF2Items Manager - classname filter
Reply With Quote #1

Hi.
I've been lurking for a long time, writing my own plugins, and just watching the community.
I thought I'd contribute a little.
This is a small addition to the TF2Items Manager plugin, to allow for a classname filter to be used instead of the slightly limiting wildcard or index.

Usage is very simple:
Code:
"custom_weapons_v3"
{
	"*"
	{
		"tf_weapon_wrench"
		{
			"preserve-attributes"		"1"
			"1"				"92; 5"
		}
	}
}
This will give any wrench(except gunslinger and saxxy, as can be seen here) a 4x on-hit building speed boost, according to the attribute list.
I threw this together way too quickly, so it could definetly be improved - but it may be useful to someone as-is.
I take no credit for anything that can't be diff-ed, of course.
Attached Files
File Type: sp Get Plugin or Get Source (tf2items_manager_wc.sp - 187 views - 15.9 KB)
File Type: smx tf2items_manager_wc.smx (9.6 KB, 208 views)
Spirit532 is offline