Page 1 of 1

Scores on and off

PostPosted:Tue May 28, 2013 12:58 am
by jawfin
Instead of holding Tab down to see the score, and letting go to hide it, I decided to write this, just because I can. This will make the Tab key show and hide the score - much like my crouch key toggle here.
Code: Select all
seta _t1 "+scores;set _t vstr _t2"
seta _t2 "-scores;set _t vstr _t1"
vstr _t2
bind tab vstr _t
So you could type those 4 lines into the console, or save it as a .cfg to exec.

Note this doesn't update the scores or pings as they change, but it will update any player that changes teams.

To restore original functionality just do
/bind tab +scores

PostPosted:Tue May 28, 2013 1:42 am
by Jato
Image

PostPosted:Tue May 28, 2013 1:49 am
by Jato
*edited* Double h4x

PostPosted:Tue May 28, 2013 2:34 am
by MasterM
Is there an advantage to this or a reasoning behind it? You say you just made it because you can lol

PostPosted:Tue May 28, 2013 7:31 am
by Key
MasterM wrote:Is there an advantage to this or a reasoning behind it? You say you just made it because you can lol

Pressing tab can create noticeable lag - especially if you're going to just test scores. I guess this is can be looked at as a way around it :P btw, I'm completely assuming here that it won't create lag like normally hitting tab will... haven't had a chance to try it

PostPosted:Tue May 28, 2013 1:21 pm
by jawfin
It'll cause lag because you are in effect issuing the no-password-required rcon command of getstatus; also checking the score effectively reloads all the models everyone is using - which is the real cause of that lag, it's unavoidable.