Jump to content

Home

Declaring server-side client commands for auto-completion


Gamall Ida

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...