View Single Post
Wliu
Veteran Member
Join Date: Apr 2013
Old 12-12-2014 , 20:57   Re: Command Listener... Not Working?
Reply With Quote #8

Quote:
Originally Posted by Spirrwell View Post
That actually turned out to be pretty cool. I just printed to chat to see what each command did, and it looks like there's some commands that I can't type in the console but seem to have some great importance... But it still didn't help me with the voice menu thing.

It's odd, because if I type in a non-existant command in the console, it will print it, but if I do voicemenu#, it doesn't.

Well, if there's any other way to do this, I'd appreciate it, but this is just getting kind of silly.
I've ran into this before (somewhat).

What AddCommandListener really does is catch the command that the *client* sends. It doesn't care if the command actually exists, only whether it matches what you specified for ACL.

psychonic is probably right here with the client sending a different command than voicemenu2. Did you try sending voicemenu commands and seeing what OnClientCommand sent? There was a similar issue in TF2 where the actual command was change_class but the client sent it as joinclass.
__________________
~Wliu
Wliu is offline