Page 1 of 1

hideRadarViewLines

Posted: Sat Jul 09, 2011 12:53 am
by Kolorciuk
This feature was surely intended by the author of bz, but i think he forgot to add this as option in config file.
To enable it simply add one line in src/bzflag/defaultBZDB.cxx. There's no diff between bzf 2.0.16 and 2.4.0 - there's the same file in the same directory.
Here's output of diff, as you see, only 1 line to add.

$ diff -rc bzflag-2.0.16 bzflag-2.0.16.hideradarviewlines
diff -rc bzflag-2.0.16/src/bzflag/defaultBZDB.cxx bzflag-2.0.16.hideradarviewlines/src/bzflag/defaultBZDB.cxx
*** bzflag-2.0.16/src/bzflag/defaultBZDB.cxx 2010-02-14 15:45:55.000000000 +0100
--- bzflag-2.0.16.hideradarviewlines/src/bzflag/defaultBZDB.cxx 2011-07-09 02:33:09.000000000 +0200
***************
*** 63,68 ****
--- 63,69 ----
{ "displayReloadTimer", "1", true, StateDatabase::ReadWrite, NULL },
{ "displayRadar", "1", false, StateDatabase::ReadWrite, NULL },
{ "displayRadarRange", "0.5", false, StateDatabase::ReadWrite, NULL },
+ { "hideRadarViewLines", "0", true, StateDatabase::ReadWrite, NULL },
{ "defaultFOV", "60.0", false, StateDatabase::ReadWrite, NULL },
{ "displayFOV", "60.0", false, StateDatabase::ReadWrite, NULL },
{ "roamZoomMax", "120", false, StateDatabase::ReadWrite, NULL },


After compiling and running, bzf should automagically append this line to config.cfg:

$ cat ~/.bzf/2.0/config.cfg | grep hideRadarViewLines
#set hideRadarViewLines 0

Uncomenting this line and setting to 1 will hide two view lines on radar. Now it's way easier to dodge.

OS: pld linux kernel: 2.6.38.8-1 x86_64
TODO: menu in gui option.
sry my bad english

Re: hideRadarViewLines

Posted: Sun Jul 10, 2011 11:49 pm
by FiringSquad
It was probably commented out intentionally to encourage more skill.
Be careful not to use this modified client in league matches as it will be considered cheating.

Re: hideRadarViewLines

Posted: Sun Jul 10, 2011 11:53 pm
by blast
It does not require a client modification. It is already a feature in the game. The above change simply makes it write out the default value in the config file.

Re: hideRadarViewLines

Posted: Mon Jul 11, 2011 11:26 am
by FiringSquad
Ahh! I see.
I just tried using "/localset hideRadarViewLines 1" to see the effect. I think I prefer it with the lines.