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

HLSS Blocking


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arg!
Veteran Member
Join Date: Jul 2008
Location: Australia
Old 07-22-2008 , 20:32   HLSS Blocking
Reply With Quote #1

Ive been battling lately with HLSS spam on my TF2 Server running sourcemod.

I've done a bit of research and found an AMX plugin which is said to work.

http://forums.alliedmods.net/showthread.php?t=66267

I imagine i could rework this one, (using ClientCommand) but i have two issues with this:

1. I am under the impression that cl_restrict_server_commands is defaulted to 1 now.
2. It has to actively poll the clients cvar setting voice_inputfromfile on a timer. Is there a way to hook the cvar or something so the server knows as soon as the client changes it?

I have idea on how to deal with players using HLSS but i want to get the detection method down 100% before i start on that.

Thanks in advance.
__________________
Arg! is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-23-2008 , 19:34   Re: HLSS Blocking
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?p=633905 ?
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Arg!
Veteran Member
Join Date: Jul 2008
Location: Australia
Old 07-23-2008 , 19:35   Re: HLSS Blocking
Reply With Quote #3

After testing on my TF2 client last night, the cvar cl_restrict_server_commands doesnt even seem to exist. Maybe the articles i was reading yesterday were old. Either way does can anyone help with the concept of hooking the changing of a cvar value? Or possibly hooking the +voicerecord command so i can then do a check?

I dont really want the overhead of a timer checking everyclient every 1 second just to see if they are using HLSS. Im not totally sure what the different flags on cvars/cmds mean so i dont know its even possible to hook commands that are only apply to the client.

EDIT: Thanks DJ T, i had read this one as well, and i get the idea, but im trying to work out how to avoid the timers and potentially execute a client command on the player. The other alternative im thinking is to just mute them entirely for say, 10 minutes if they use it.
__________________

Last edited by Arg!; 07-23-2008 at 19:37. Reason: DJ Tsunami posted at the same time i was!
Arg! is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-23-2008 , 19:49   Re: HLSS Blocking
Reply With Quote #4

Well, the only way of getting a value of a client's cvar is with QueryClientConVar, so you have to use a timer to check periodically. But checking every second isn't really a big deal as far as I know, the game can easily handle that. But yeah, you could try hooking +voicerecord instead with RegConsoleCmd.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Arg!
Veteran Member
Join Date: Jul 2008
Location: Australia
Old 07-24-2008 , 02:18   Re: HLSS Blocking
Reply With Quote #5

Unforturnatly i had no luck attempting to hook +voicerecord so im going to have to think about this differently.
__________________
Arg! 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:55.


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