Home   Help Search Login Register  

Author Topic: (Accepted) Mando Music  (Read 3003 times)

0 Members and 1 Guest are viewing this topic.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
(Accepted) Mando Music
« on: 12 May 2007, 22:17:58 »
A quick and easy way to test all ArmA musics, and a lovely moonlight :)

Ready to use from the editor.
« Last Edit: 05 Sep 2007, 16:08:55 by hoz »

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Mando Music
« Reply #1 on: 13 May 2007, 20:12:52 »
Nice script, could be added to some maps where a lot of driving is required.

It's ashame you can't drive while its up but I think you've already asked about it. It's the only let down and it would be nice if you found a solution for it.

Good work (again..)  :good:

Offline satexas69

  • Members
  • *
Re: Mando Music
« Reply #2 on: 24 Jun 2007, 04:50:51 »
It looks like it uses all the default "music" set in the game... is there any way we can get a version where there's an actual "playlist"...

Why? I'd rather stack it with a bunch of custom tunes and now have to have such a long list cluttered with the default boring game music in there also.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Music
« Reply #3 on: 24 Jun 2007, 10:39:02 »
To do that you need to change mando_showplayer.sqf

This is the code that fills up the list
Code: [Select]
_cfg =(configFile >> "CfgMusic");
_count = count _cfg;
for [{_i = 1},{_i < _count},{_i = _i + 1}] do
{
   _cfgi = _cfg select _i;
   _index = _list lbAdd (getText (_cfgi >> "Name"));
   _list lbSetData [_index, format["%1", configName _cfgi]];
};

you may change it by:
Code: [Select]
   _index = _list lbAdd ("Mi preferred track tittle 1");
   _index = _list lbSetData ("Mi preferred track resource name 1");
   _index = _list lbAdd ("Mi preferred track tittle 2");
   _index = _list lbSetData ("Mi preferred track resource name 2");
   _index = _list lbAdd ("Mi preferred track tittle 3");
   _index = _list lbSetData ("Mi preferred track resource name 3");
  ...