[Any] Super Targeting (Filters) |Updated 2/25/16|
Super Targeting
========= Super Targeting adds in a config for server operators to make their own filter for the ProcessTargetString which is used in many of the SM commands. Future Work ----------- I plan on adding in a way to check to see if the following conditions are met to the list of filters a operator can set. • Check active weapon, (index number, class name, slot #) • Check to see if a player has a certain wearable (type, quality, level) • Check all weapons to look for: index number, class name, quality, level. If you have any filter you would like to see added onto this please post below! • Premium Check • Flag checking [DONE!] • Alive Checking [DONE!] • Bot Checking [DONE!] • Multi-Game Class Checking [DONE!] • Invert Check [DONE!] • Random Player [DONE!] Installation & Setup =========== Code:
SuperTargeting.smx -> Sourcemod/plugins/ ------------ The format is so: Code:
"@<filtername>" Code:
<filtername> : this can be anything, but i would refrain from making it anything that is already in use. Start it off with an exclamation point (!) to negate the filter Code:
Classes: Code:
"@scout" ----------- This plugin doesn't require Updater, but it does support it. to disable Updating on the specific plugin go here: tf/cfg/sourcemod/plugin.SuperTargeting.cfg and change sm_supertargeting_update to 0 Credit where it's due ----------- - ReFlexPoison : Created the base of the code and most of the filters syntax for the config. [Class Target Filters] - ddhoward : He also made a similar plugin of ReFlexPoison's, it had a few custom filters that I appended onto the config. [Class Targeting] DOWNLOAD ========= These are all the current version on the main branch in bitbucket. PLUGIN CONFIG -right click -> save as... SOURCE |
Re: [TF] Super Targeting (Filters)
Interesting. Do you mind to make it for every game? Also a few notes:
Pls dont check game folder anymore. Use GetEngineVersion() instead (or even better remove that check at all in your plugin due to <tf2_stocks> is included with its extension, so plugin wont be loaded on non-tf2 game anyways). Also there are no point of using #tryinclude <updater> unless you also add #if defined _updater_included and #endif appropriately in code. So plugin wont be compiled without that include. =\ |
Re: [TF] Super Targeting (Filters)
Quote:
Quote:
I guess it would help having the latest includes. Not sure how i would go about making it so that the plugin will load with out tf2_stocks thus make it so i can fire TF2_IsPlayerInCondition only if the game is tf2.. Quote:
|
Re: [TF] Super Targeting (Filters)
Updated to 1.2.0 Includes:
• Removed any tf2 dependency Also tf2's condition checking works but this plugin needs to be tested in another game before i consider it to be [ANY]. If some one would help me out on that I would appreciate it. Official documentation of the conditions, i have only tried cloak, but im sure it will work with the rest of the conditions.
Spoiler
|
Re: [TF] Super Targeting (Filters)
AFAIK l4d/2 and dods are using m_iPlayerClass netprop.
However tf2 are using m_iDesiredPlayerClass, which will work for either dods and l4d/2, so you can try adding this instead. Here are some DoD:S class enum Code:
|
Re: [TF] Super Targeting (Filters)
Is it possible to add free2play and premium filters? I tried that a while back, but I could never figure it out.
|
Re: [TF] Super Targeting (Filters)
Quote:
I have yet to be able to test this for any other game besides tf2, if some one would do that for me i would love it. If anybody is intrested in the developement branch of this plugin it is located here: http://bitbucket.snbx.info/super-targeting/src/dev |
Re: [Any] Super Targeting (Filters) |Updated 3/7/14|
Update to 1.3.5:
• Added in Bots condition. • Added in flag supporting. This update now makes the following plugins obsolete: https://forums.alliedmods.net/showthread.php?p=2108829 https://forums.alliedmods.net/showthread.php?p=1744949 I have thought about making this into the mix: https://forums.alliedmods.net/showthread.php?p=1983726 But i have figure that i should only mess with the simple stuff first. |
Re: [Any] Super Targeting (Filters) |Updated 3/7/14|
Hey, just a very useful suggestion to add @!(group) as well. So it can also exec for everyone besides that group.
Thanks |
Re: [Any] Super Targeting (Filters) |Updated 3/7/14|
@random
@randomX X = amount of players to [try to] find |
All times are GMT -4. The time now is 02:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.