View Single Post
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