Raised This Month: $32 Target: $400
 8% 

[Any] Super Targeting (Filters) |Updated 2/25/16|


Post New Thread Reply   
 
Thread Tools Display Modes
Mitchell
~lick~
Join Date: Mar 2010
Old 04-15-2015 , 11:02   Re: [Any] Super Targeting (Filters) |Updated 3/7/14|
Reply With Quote #11

Quote:
Originally Posted by nerdy97 View Post
Hey, just a very useful suggestion to add @!(group) as well. So it can also exec for everyone besides that group.

Thanks
Like admin_groups.cfg groups?


Quote:
Originally Posted by Chdata View Post
@random
@randomX X = amount of players to [try to] find
Seems interesting, ill add i, it will be able to stack with the team/class filter also.
Mitchell is offline
ClassicGuzzi
Veteran Member
Join Date: Oct 2013
Location: Argentina
Old 04-15-2015 , 11:24   Re: [Any] Super Targeting (Filters) |Updated 3/7/14|
Reply With Quote #12

Quote:
Originally Posted by Mitchell View Post
Like admin_groups.cfg groups?
No, he means that if you have a defined target filter, you should be able to target everybody except those too. Like @snipers select every sniper, but @!sniper select everybody but snipers. It's like @me and @!me who selects everybody except me.
__________________
ClassicGuzzi is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-15-2015 , 11:55   Re: [Any] Super Targeting (Filters) |Updated 3/7/14|
Reply With Quote #13

Quote:
Originally Posted by ClassicGuzzi View Post
No, he means that if you have a defined target filter, you should be able to target everybody except those too. Like @snipers select every sniper, but @!sniper select everybody but snipers. It's like @me and @!me who selects everybody except me.
That was one of the very first features I made in this plugin, all filters will have a inverted filter.
Sorry, you will need to copy/paste that filter and add a "!" to the filter name, and it will invert the entire filter.

Last edited by Mitchell; 04-15-2015 at 12:00.
Mitchell is offline
YoNer
Member
Join Date: Jul 2014
Old 06-29-2016 , 00:38   Re: [Any] Super Targeting (Filters) |Updated 2/25/16|
Reply With Quote #14

Hi, awesome plugin! Would it be possible to add an option to disable PrintToChat when a random player is rolled?
YoNer is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 06-29-2016 , 09:53   Re: [Any] Super Targeting (Filters) |Updated 2/25/16|
Reply With Quote #15

Quote:
Originally Posted by YoNer View Post
Hi, awesome plugin! Would it be possible to add an option to disable PrintToChat when a random player is rolled?
My bad, I didnt realize I had left a debug message in there. I'll update here within a few minutes.
Mitchell is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 08-26-2016 , 02:51   Re: [Any] Super Targeting (Filters) |Updated 2/25/16|
Reply With Quote #16

Mitchell, has anyone told you they love you yet today? If not, can I be the first? This is great.

Last edited by 404UserNotFound; 08-26-2016 at 02:51.
404UserNotFound is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 08-26-2016 , 05:09   Re: [Any] Super Targeting (Filters) |Updated 2/25/16|
Reply With Quote #17

This works great with Dynamic Targeting. Thanks for your work!
__________________

Last edited by ddhoward; 08-26-2016 at 05:20.
ddhoward is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 08-26-2016 , 13:01   Re: [Any] Super Targeting (Filters) |Updated 2/25/16|
Reply With Quote #18

Quote:
Originally Posted by abrandnewday View Post
Mitchell, has anyone told you they love you yet today? If not, can I be the first? This is great.
Thank you! There's also the dev branch which contains the @me/@aim target however I wasn't able to test it much. In theory you should be able to target people which you aim at plus specifications which are defined (i.e only players that are being aimed at if they are a red scout etc)
https://bitbucket.org/MitchDizzle/su...e-view-default

Quote:
Originally Posted by ddhoward View Post
This works great with Dynamic Targeting. Thanks for your work!
I read through some of the Dynamic Targeting, it seems way more advanced then my simple plugin lol.

Last edited by Mitchell; 08-26-2016 at 13:01.
Mitchell is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 08-26-2016 , 14:00   Re: [Any] Super Targeting (Filters) |Updated 2/25/16|
Reply With Quote #19

Quote:
Originally Posted by Mitchell View Post
Thank you! There's also the dev branch which contains the @me/@aim target however I wasn't able to test it much. In theory you should be able to target people which you aim at plus specifications which are defined (i.e only players that are being aimed at if they are a red scout etc)
https://bitbucket.org/MitchDizzle/su...e-view-default
I'll definitely check that out

Side question: I'm converting the source code of this plugin to use new syntax (why? because it helps me learn all the intricacies of new syntax). For your FilterData enum, am I correct in my assumption that Team, Class, Alive, Bots, Cond, Flag, Rnd and Invert are all integers?

PHP Code:
enum FilterData
{
    
char Filter[24],
    
int Team,
    
int Class,
    
int Alive,
    
int Bots,
    
int Cond,
    
int Flag,
    
bool OnlyFlag,
    
int Rnd,
    
int Invert
}; 
EDIT: I'm a doofus, just got to the LoadFilterConfig function where I see that my assumptions were correct. I also see a commented out "Premium" bit which looks interesting.

EDIT 2: Seems I'm still a doofus because Enums don't support new syntax variables, according to what Drixevel (redwerewolf) has told me. Apparently, the fact that enums don't support new syntax, combined with how he always works with new syntax is why he has stopped using enums altogether. And that's why I'm going to stop using enums as well. Not to mention, they can get enormous and hard to read through. Take this plugin for example, it suffers from a repetitive, spammy "Array index is out of bounds" error that appears to be caused by the enormously confusing enums-within-enums structure that acts as the backbone of how things are set up. I gave up trying to figure out what was causing the error after looking at the code for about 30 seconds.

Last edited by 404UserNotFound; 08-26-2016 at 14:48.
404UserNotFound is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 08-26-2016 , 16:00   Re: [Any] Super Targeting (Filters) |Updated 2/25/16|
Reply With Quote #20

Quote:
Originally Posted by abrandnewday View Post
~snip~
Yeah, enums are no longer supported in the new syntax, however this should just be converted to a Trie/Array
the trie can be used to lookup the index which holds all the information within the enum (which can be converted into arrays)

I actually went ahead and tried to convert the dev branch to the new syntax:
https://bitbucket.org/MitchDizzle/su...90358f/?at=1-7

Last edited by Mitchell; 08-26-2016 at 16:41.
Mitchell is offline
Reply



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 16:43.


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