yiuyao0516 / confogl

Automatically exported from code.google.com/p/confogl
0 stars 0 forks source link

Permanently Disable Client-Side Spectator HUD #149

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It's kind of annoying to do !spechud so often; it would be nice if there was a 
way for me to have it be disabled by default on my client.

Original issue reported on code.google.com by shadowph...@gmail.com on 5 Jul 2011 at 6:08

GoogleCodeExporter commented 8 years ago
Maybe if there was a variable that was set when you did !spechud which confogl 
then read, someone who wants it permanently disabled could set that variable in 
their autoexec.  Just throwing out ideas.

Original comment by shadowph...@gmail.com on 5 Jul 2011 at 2:03

GoogleCodeExporter commented 8 years ago
I believe we can do something like this with client cookies:
http://docs.sourcemod.net/api/index.php?fastload=file&id=54&

But I don't know much about them.

Original comment by prodigysim@gmail.com on 5 Jul 2011 at 4:57

GoogleCodeExporter commented 8 years ago
Suggestion: Use setinfo instead of client cookies.

{{{
    decl String:buffer[64];
    GetClientInfo(client, "confogl_showspechud", buffer, sizeof(buffer));
    StripQuotes(buffer);
    TrimString(buffer);

    g_bShowHud[client] = bool:StringToInt(buffer);
}}}

That way the client can put setinfo "confogl_showspechud" "0" in their autoexec 
config if they wish to always play with disabled spechud.

Original comment by MrZer...@gmail.com on 15 Jul 2011 at 2:23