Page 1 of 1

Help setting up game command menus for source

Posted: Fri Feb 06, 2009 5:37 pm
by hldj noob
Not too good with scripting, but I would like to use some of the advanced features.
Found the idea off of these two old posts, to setup custom menus in-game for hldj. I can't seem to get the config files to load though. So what am I doing wrong?

followed instructions here:
http://hostedboard.com/hldj-post-282.html#282
and here
http://hostedboard.com/hldj-post-283.html#283

I know that these are for HL1, but I think the code should still work for source right?

I have loaded the config files into the hldj's custom folder, and added the lines
bind p "exec commandmenu.cfg"
exec commandmenu.cfg

also tried typing 'exec commandmenu.cfg ' straight into the console but it could find the file to load it.
Anybody succefully done something this before that can help out setting up in-game hldj menus? or got the different keyboard layout idea (would work just as well to me as menus would) to work successfully in source?

Re: Help setting up game command menus for source

Posted: Sat Feb 07, 2009 2:44 am
by Renegade
The command menu config is actually not a script, but a VGUI description language; it's only read and recognized by the HL1 engine (dunno why they've taken it out of Source), so unfortunately this feature will not work elsewhere.

*edit: thanks for the motivation, I've finally done up a definitive tutorial on binding keys to audio:
http://www.hldj.org/forums/viewtopic.php?f=6&t=252

Re: Help setting up game command menus for source

Posted: Mon Feb 09, 2009 2:37 pm
by hldj noob
Thanks for the reply. Too bad this feature does not work in source, I thought it would seeing as how there is the vgui for responses (yes, no, attacking, etc.) in-game. It would have been really handy, not to mention speedy. I'll read through your other post and see if I can start writing a binding script.