Thanks, but that's what I said. I added my command in there just as the map command is there and the tab completion works, but it only does just that, complete the filename, I want it to list all the files like /map <TAB> does, where it lists all the maps it can find. I think the function we both found is only for tab completion when you do something like /map my<TAB> (Completes it to /map mymap).
<br><br>Also, do you know where the map command is handled? I've been looking but can't find anything. Nevermind I just found it, sv_ccmds.c, SV_Map_f. Doesn't seem like it does what I'm saying though.<br>
<br>Thanks for the help so far but I think you misunderstood me, that or you thought what I thought haha (That that function is what I wanted), if you still don't understand please let me know and I'll try to clarify! :)
<br><br>Thanks again!<br><br><div><span class="gmail_quote">On 2/17/07, <b class="gmail_sendername">Rainer Klaffenboeck</b> <<a href="mailto:rainer.klaffenboeck@inode.at">rainer.klaffenboeck@inode.at</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">qcommon/common.c/Field_CompleteCommand()<br><br>Have fun,<br>Hobbes<br><br>Jorge Pena wrote:
<br>> Hey do any of you guys know where the tab completion for the /map<br>> command is handled? I've been searching on and off and haven't found<br>> anything. Basically I want to take a look at it to incorporate it into
<br>> another command I want to make. I found Field_CompleteCommand, and I<br>> added my command to that and it seems to correctly 'tab complete' but<br>> it doesn't do what I want. Basically, I want it to output a list of
<br>> files I have in a directory called /ogg (Or anywhere), like the /map<br>> command does when you type /map space <TAB>, it lists all the maps,<br>> pretty much like that, I've been searching and searching but can't
<br>> find anything, I'd really appreciate any help!<br><br><br><br></blockquote></div><br>