AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   TF2Items (https://forums.alliedmods.net/forumdisplay.php?f=146)
-   -   TF2Items Manager - classname filter (https://forums.alliedmods.net/showthread.php?t=279752)

Spirit532 02-29-2016 05:45

TF2Items Manager - classname filter
 
2 Attachment(s)
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.


All times are GMT -4. The time now is 07:05.

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