HLDJ hsay command?

Help with using HLDJ
Post Reply
monkey_monopoly
Game DJ
Posts: 2
Joined: Sat Oct 01, 2011 10:24 pm

HLDJ hsay command?

Post by monkey_monopoly »

Hi, I am an admin on a server and use hldj all of the time. I was wondering if there was a way to have the file name appear in the command /hsay (sm_hsay) so the song name will appear in a hint box, similar to hldjsca. I think it would be awesome if it is possible. Thanks for you responses in advance.
Renegade
HLDJ Developer
HLDJ Developer
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm
Contact:

Re: HLDJ hsay command?

Post by Renegade »

if it takes a string as parameter and you know some C, you can just modify hldj_WriteCurAudioConfigs in hldj_api.c: where you see the "say " command printed, just copy-paste that line one below to add your own say.

Code: Select all

fprintf( config, "<your command here> %s", curAudio );
monkey_monopoly
Game DJ
Posts: 2
Joined: Sat Oct 01, 2011 10:24 pm

Re: HLDJ hsay command?

Post by monkey_monopoly »

Thanks for the response, but I don't know C at all. I guess I could find out the rest of the steps on my own. ;) Thanks again.
Post Reply