Displaying the Current Audio in Source games

Cool tips, tricks, FAQs, scripts, binds, etc.
Post Reply
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Displaying the Current Audio in Source games

Post by Renegade »

Displaying the current audio in non-source games is quick and easy because of the new on-screen display. However, in Source games the command to do this is not currently available and instead you must view the display through the console. A quick way of doing this is by binding a key as such:

Code: Select all

bind <key> "hldjca; showconsole"
(replace <key> with the key to bind it to).
This will automatically bring up the console for you and display the current audio (then hit escape to go back to the game). You can use this with almost any command in HLDJ that uses the console, such as listaudio, which could be bound as "la; showconsole" etc.
If you are using this for an HL1 game, then replace the command "showconsole" with "toggleconsole".

You can even go a step further and have the console open and close automatically:

Code: Select all

bind <key> "hldjca; showconsole; halfsec; halfsec; hideconsole; escape"
This will do the same as above, except it will automatically close the console and return you to the game after 1 second. You can add more/less "halfsec" commands to increase/decrease the amount of time the console is displayed for.
Kramer
Game DJ
Posts: 2
Joined: Tue Aug 25, 2009 2:16 pm

Re: Displaying the Current Audio in Source games

Post by Kramer »

You can now bind them so HLDJ show the playing audio right in the chat:

Chat:

Code: Select all

bind <selectedkey> hldjsca
bind kp_minus hldjsca //Example
Team Chat:

Code: Select all

bind <selectedkey> hldjstca
bind kp_plus hldjstca
Post Reply