Page 1 of 1

keyvalue "filtername"

Posted: Tue Jul 26, 2016 4:21 pm
by decompile
Hey,

Is it possible to add the keyvalue "filtername"? I havent found it yet.

On all triggers you can give them a filter (name) so it eg activates only if hes ct

Re: keyvalue "filtername"

Posted: Tue Jul 26, 2016 5:33 pm
by satoon101
That is already implemented in our entity data as filter_name:

https://github.com/Source-Python-Dev-Te ... er.ini#L13

Re: keyvalue "filtername"

Posted: Tue Jul 26, 2016 5:56 pm
by decompile
Thank you.

Oh damn, forgot to search it with "_" between it, gonna remind me that for next time.

Re: keyvalue "filtername"

Posted: Tue Jul 26, 2016 6:05 pm
by Ayuto
Well, you can also search for the original name:
https://github.com/Source-Python-Dev-Te ... filtername

And in case a keyvalue hasn't been added yet, you can always access it using the get_key_value_<type>() method.

Re: keyvalue "filtername"

Posted: Sat Mar 25, 2017 6:01 pm
by decompile
Sorry for bumping older threads, but im having a problem with it. Its like if no filter was registered with the brush.

I tested it with creating a trigger with filtername through stripper which worked perfectly and simply copied it with source python and it doesnt.

I even tried printing the filternames of entities, but im getting utf8 error all the time, since it seems like to print bytes, maybe thats something related? Not sure, can send more when im home.