hideRadarViewLines

Place all meeting requests / announcements here...
Post Reply
Kolorciuk
Private
Private
Posts: 3
Joined: Thu Dec 25, 2008 11:38 pm

hideRadarViewLines

Post 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
User avatar
FiringSquad
Sergeant
Sergeant
Posts: 849
Joined: Thu Jan 26, 2006 5:53 pm
Location: Ireland

Re: hideRadarViewLines

Post 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.
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: hideRadarViewLines

Post 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.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
FiringSquad
Sergeant
Sergeant
Posts: 849
Joined: Thu Jan 26, 2006 5:53 pm
Location: Ireland

Re: hideRadarViewLines

Post by FiringSquad »

Ahh! I see.
I just tried using "/localset hideRadarViewLines 1" to see the effect. I think I prefer it with the lines.
Post Reply