Welcome to the WarMod Series Website

Click here to edit subtitle

Car Radio

Car Radio
by
Clayman

Description:
Addon to play music from the game or custom music while driving any vehicle.


            ______________________________________
            |_X_|         ______________________ |_|
            |       <>   |                      |  |
            |  /\   <>   | Car Radio by Clayman |  |
            |  \/   <>   |______________________|  |
            |       <>    |_|_|_|_|_|_|_|_|_|__|   |
            |______________________________________|


******************************


Title:        ArmAII Car Radio

Author:    Clayman    <[email protected]>

Version:   2.3.1

Date:      01-26-2011

Requires:  ArmA2 V1.05 or above AND Operation Arrowhead expansion


******************************

Features:
* Fully working Car Radio for all cars and trucks in ArmA2
* All ArmA2 musictracks already included
* Add as many own musictracks as you wish
* Filteroptions InGame / own music
* Repeat Funtcion
* Random play
* 12-color display
* 7-color softkeys
* two designs
* Output Level depending on your soundcard / speakers

******************************


Usage:
To make the Car Radio available in your own mission, place the 'Car Radio' Module (found under Modules (F7) > Car Radio) somewhere on your Map.
That's it.
The Radio will be available in any car or truck on the map. Just board it any select 'Car Radio' from the action menu.


******************************


Controls:
Some of the control elements should be self-explaining, other might not. Here is a short description of them:

 > - Starts the playback (changes to || )

 || - Stops the playback (changes back to > )

 + - Volume up

 - - Volume down

 >> - Next track

 << - Previous track

 /\ - Cycle through filters increasing (ArmA2 Music > User Music > All Music > Custom)

 \/ - Cycle through filters decreasing (ArmA2 Music > Custom > All Music > User Music)

 OFF - Closes the dialog (music keeps playing!)

 Playlist - Opens the Playlist Editor

 Repeat - When last track is over, playback beginns from first track (on/off)('Repeat' shown in display)

 Random - Random play (on/off)('Random' shown in display)

 Key Col - Cycle through the different key-colors

 Dspl Col - Cycle through the different display-color or sets automatic color change ('Col. Change' shown in display)

 Design - Switches Design (Black / "Silver")


******************************


Playlist Editor:
Using the Playlist Editor, you can create your very own playlist.
The list to the right sowns all available tracks. On the left, you see your custom playlist.

 < - Adds the track selected in the right list to your playlist (as last item)

 > - Removes the track selected in the left list from the playlist

 << - Adds all tracks to the playlist

 >> - Removes all tracks from the playlist

 Restore - Restores the pre-defined playlist (in userconfig)(manually created playlist will be lost!)

 OK - Closes the Playlist Editor and returns to the Radio, you custom playlist will be played

 Cancel - Closes the Playlist editor without saving any changes made in the Playlist Editor and returnes to the Radio


******************************


Show Tooltips:
It is possible, to show tooltips over some of the buttons of the radio, which explain the function of that button.
To enable these tooltips, write the following code into the init.sqf or the init-line of any unit on the map:


    CLAY_RadioShowTooltips = true;


******************************


Add your own music:
To add your own music to the Radio, you first have to define it in your description.ext.
Now you can add it to the Radio using the 'CLAY_RadioAddMusic' variable:


    CLAY_RadioAddMusic = [ [<Track | String>, <Title | String>, <Time | Number>] ];


Track = The classname of your music, as defined in the description.ext.

Title = The title of the track, like it will be shown in the Radio.

Time = The length of the track in seconds.


At the end it should look something like this:


    CLAY_RadioAddMusic = [ ["MySong01", "My Song 1", 123], ["MySong02", "My Song 2", 456] ];


******************************


Pre-defined Playlist:
You can create your own playlist, which will be available from mission start (Playlist: Custom).
Open the file '\userconfig\CLAY_CarRadio\CLAY_CarRadio.hpp'. Now you can enter your desired tracks into the array behind _userPlaylist. Format is the same as when adding own music:


    _userPlaylist = [ ["Track08_Harvest_Red", "Harvest Red", 78], ["Track26_Organ_Works", "Organ Works", 69], ["MySong01", "My Song 1", 123] ];


******************************


Additional vehicle classes:
You can add other vehicle types, which have the Car Radio available. For this, you have to add the vehicle names (from CfgVehicles) to the 'CLAY_RadioAddVehicles' variable.


    CLAY_RadioAddVehicles = ["M1A1", "AH1Z", "PBX"];


******************************


Vehicles types, for which the radio is not available:
Just like adding additional vehicle types for use with the radio, you can define vehicle types, which won't have the radio available, using the 'CLAY_RadioNoVehicles' variable.


    CLAY_RadioNoVehicles = ["SkodaRed", "HMMWV", "TowingTractor"];


******************************


Keyboard controls:
The main functions of the Radio can be used directly from your keyboard. The key for every function can be defined.

defaults:

 PAUSE - Play / Pause

 RIGHT ARROW - Next Track

 LEFT ARROW - Previous Track

 UP ARROW - Volume Up

 DOWN ARROW - Volume Down


To change these, open the file '\userconfig\CLAY_CarRadio\CLAY_CarRadio.hpp'.
Add the desired key number behind any of the variables _keyPlay, _keyNext, _keyPre, _keyVolUp and _keyVolDown.


******************************


Known Bugs:
 * Clicking on the next (>>) or previous (<<) keys very fast might result in the timer not working correctly.
 * Drag & Drop in Playlist Editor only works to add tracks to your own playlist. You can't remove tracks this way nor can you sort your playlist. (I'm working on a workaround for this, but I'm not sure if it's possible at all.)


******************************


For further information, support and an example mission showing you how to add your own music and additional vehicle types, please visit the following link:

    http://forums.bistudio.com/showthread.php?t=82665

Members Area

Testimonials

  • "Hello Günter, thx for the hole new stuff in A2WarMod v1.4, i´m playing the hole night and can´t, and won´t stop ! I´m so excited for the CoWarMod Thx a lot for your ..."
    McLupo
    A2WarMod v 1.4
  • "I loved OpFlashpoint, and I actually had read somewhere that a purchase of ARMA I, and this mod(s) is as good as having ARMA II. I don't know how true that is, but I went ahe..."
    by p309
    A2WarMod
  • "I'm liking the mod so far and using mods that I never knew existed. "
    dDefinder
    COWarMod release

Donate!