User Login
Help CSGoodies
| Playing MP3's In Counter Strike |
|
|
|
| Guides | |||
| Written by <a href="http://www.csgoodies.com/component/comprofiler/userprofile/310">.:{EK}:. Squall</a> | |||
| Monday, 19 January 2009 02:58 | |||
|
Alot of Counter Strike players use external media players like Winamp or WMP to listen to music (mp3's mostly). Apart from using up memory and processing power of the CPU, these external media players 'can' cause slight FPS drops. Unknown to most gamers, Counter Strike has a built in mp3 player. Just like media players, the Half Life engine(used by Counter Strike) is capable of playing mp3's, increasing/decreasing volume and with a little bit of scripting , you can even make your own playlists with countless number of mp3's.
How to Play MP3 files in Counter Strike?
Now firstly you have to have some knowledge of the Counter Strike folder structure. The main directory "cstrike" is found at:
C:/Valve/Steam/SteamApps/your account name/Counter-strike/cstrike In the cstrike folder will see a folder called "Media". The entire Half Life Soundtrack can be found in this folder (if you happen to have Half life installed you will probably not find it in cstrike but in the half life folder). Since the Engine uses the media folder for mp3's , i will be using it here as well. The command for playing a mp3 file is: mp3 play folderName/mp3Name. 'folderName' is the name of the folder in which the mp3 you are trying to play is placed. 'mp3Name' is the full file name of the mp3 your are trying to play eg. outofcontrol.mp3. To play a mp3 called noob.mp3 which you placed in the media folder, you would type in the console: mp3 play media/noob.mp3. To stop playing the mp3 you would type:mp3 stop. play mp3 : mp3 play FolderName/mp3Name  Playing The Half Life Soundtrack To play them simply type in console: mp3 play media/half-life#.mp3 example:mp3 play media/half-life01.mp3 List of Half-Life Mp3's: half-life01.mp3 Creating Custom mp3 Playlists We be will using the file called 'autoexec.cfg' for our playlists. It is found in :
C:/Valve/Steam/Steamapps/your account name/CounterStrike/cstrike or C:/programfiles/Valve/Steam/Steamapps/your account name/Counter Strike/cstrike Any text editor can be used to open and edit .cfg files , notepad is most commonly used. Now for the playlist part , firstly place all the mp3's you want to be in the playlist in the 'Media' folder found in the cstrike directory. Open up autoexec.cfg with Notepad. We will now need to write a script for the playlist. One key will play mp3's in the order as defined in the playlist and one key will stop the playback of mp3's.
alias song "song1" Pressing - (minus key on the keypad) will play the first mp3 defined in the playlist, press it again alias song "song1" Â Notes:1.When some mp3's dont work in Counter Strike, simply reconvert them to mp3 format using a program like dbPowerAmp (search on google for this) 2.I have used autoexec.cfg file here but you can make your own .cfg file (eg mp3.cfg) however make sure you execute it everytime you start CS by typing in console: exec filename (filename is the name of your mp3 playlist file eg. exec mp3.cfg) or simple place the command in your config.cfg or autoexec.cfg , this will it will automatically load when you start CS. (if you have any questions or requests please post in the TEAM EK FORUMS - http://t-ek.awardspace.com/index.html )
 Â
Set as favorite
Email This
Hits: 8180 Comments
(10)
You must be logged in to post a comment. Please register if you do not have an account yet.
|





