Home   Help Search Login Register  

Author Topic: Removing Scoreboard  (Read 1946 times)

0 Members and 1 Guest are viewing this topic.

Offline bigdave003

  • Members
  • *
  • I'm a double bacon genius burger!!
Removing Scoreboard
« on: 10 May 2007, 15:22:45 »
Is there any way to either disable the score board when you press I for all of the players? WGL5 for OFP blocked it out, could this be done with scripting or is this more to do with mods?
Cheers
"From this day to the ending of the world we in it shall be remembered. We lucky few, we band of brothers. For he who today sheds his blood with me shall be my brother. "

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Removing Scoreboard
« Reply #1 on: 11 May 2007, 00:35:54 »
WGL5 was a full scale mod right?

They would have made it so their mod could have the option to disable it. Original ArmA does not support this as far as I know. You might be able to doing some close dialog command or something to remove it, but I don't think it will work.

Offline Phaeden

  • Members
  • *
  • There's plenty of time to sleep when you're dead.
Re: Removing Scoreboard
« Reply #2 on: 11 May 2007, 08:39:12 »
ACE, WGL's successor, will also have this feature.
Semper Fi

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Removing Scoreboard
« Reply #3 on: 15 May 2007, 18:57:12 »
Well Phaeden, how about a quick comment on how you plan to do this? Share and enjoy!
urp!

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Removing Scoreboard
« Reply #4 on: 17 May 2007, 14:18:20 »
Just guessing.
Scoreboard, as any other display should hava a known IDD. Knowing this, you may run something like that in every client:
Code: [Select]
//Remove scoreboard SQF, execute with execVM
whilte {true} do
{
   waitUntil {!isNull (findDisplay SCOREDISPLAYIDD)};
   (findDisplay SCOREDISPLAYIDD) closeDisplay 0;
   Sleep 0.5;
};

And how to detect display IDD SCOREDISPLAYIDD?
run this in a client and show the scoreboard
Code: [Select]
_min = 0;
_max = 300;
while {true} do
{
   _msg = "";
   for [{_i = _min},{_i <= _max},{_i=_i+1}] do
   {
      _display = findDisplay _i;
      if ((!isNull _display)) then
      {
         _msg = _msg + format["%1: %2\n",_i, _display];     
      };
      hint format["Displays (%1 to %2):\n%3",_min,_max,_msg];
   };
   Sleep 2;
};

If no results with range between 0 and 300, increase it, between 300 and 600 and so on until you get scoreboard display IDD.

EDIT:
the following displays seems to exist all the time in an MP game: 0,8,12,17,46,70
the following displays seems to exist all the time in an SP game: 0,12,26,46
So I guess any of these may be the score display IDD: 8, 17 or 70
« Last Edit: 17 May 2007, 22:30:20 by Mandoble »

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Removing Scoreboard
« Reply #5 on: 18 May 2007, 09:33:49 »
Or, you probably can remove the whole scoreboard 'resource' from the game config..
I'm guessing this is the method WGL used instead of scripting :dunno:
(in OFP the resources were in their own separate resource.cpp..)
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.