Raised This Month: $12 Target: $400
 3% 

TF2Items Manager - classname filter


Post New Thread Reply   
 
Thread Tools Display Modes
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 - 185 views - 15.9 KB)
File Type: smx tf2items_manager_wc.smx (9.6 KB, 203 views)
Spirit532 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 04:48.


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