Gamall Ida Posted April 14, 2007 Share Posted April 14, 2007 Hello, I have a little annoyance I am hoping somebody here can help me with: The custom commands I create do not appear in the auto-completion list that pops up when pressing TAB or ENTER in the game console. This is quite annoying because, "l" being a command, each time I type "l [ENTER]", a list of everything beginning by L is displayed before the output of the command /l itself. See it here -> http://gamall-ida.com/f/files/auto_comp_567.jpg As it is, I wouldn't expect the game to know about my custom commands, because they are just things like that if (Q_stricmp (cmd, "firstletter") == 0 || Q_stricmp (cmd, "fullname") == 0 ) { DoSomethingThere(ent); return; } in ClientCommand(); So my question is : How do I "declare" my server-side client commands, so that they appear in auto-completion lists ? Thanks for your time, Gamall Link to comment Share on other sites More sharing options...
dumbledore Posted April 14, 2007 Share Posted April 14, 2007 in cg_initconsolecommands, look how at the end lots of commands are added without actually having matching functions. of course this will only work if your mod is both server+client :/ Link to comment Share on other sites More sharing options...
Gamall Ida Posted April 14, 2007 Author Share Posted April 14, 2007 Trouble is, my mod is server-side only... I was hoping tab completion was working hand-in-hand with the server, but the function you pointed me to seems to indicate otherwise... too bad... Thanks anyway Link to comment Share on other sites More sharing options...
ensiform Posted April 17, 2007 Share Posted April 17, 2007 And so are most of ours... the client is just there for those who are not newp to download something small... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.