Pages: [1]
  Print  
Author Topic: Adding console command  (Read 2892 times)
breizh_nerd
Nub


Cakes 0
Posts: 7


« on: June 20, 2011, 09:08:30 am »

Hello, everything I need is in the title : I would like to add a new command line in order to call a function in the console but I don't know how, thanks for the help!
Logged
Gig
In the year 3000
***

Cakes 45
Posts: 4359


WWW
« Reply #1 on: June 20, 2011, 11:52:26 am »

Please explain better.

What kind of function do you want to implement?

Are you sure you are not simply searching for how to "bind" a key to a specific command?
Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Peter Silie
Member


Cakes 2008
Posts: 610



« Reply #2 on: June 20, 2011, 02:54:52 pm »

or just the /exec xxx.cfg?
Logged
Cacatoes
Banned for leasing own account
Posts a lot
*

Cakes 73
Posts: 1428


also banned for baiting another to violate rules


« Reply #3 on: June 23, 2011, 07:15:34 am »

That could be in the QVM.
Try to get an overview of ioq3's source code, shouldn't be too hard ( http://wiki.ioquake3.org/Code_Overview )
I suppose the client part contains some of these console commands (maybe declared in qshared or elsewhere so that the game becomes aware of that command).
You can get the QVM source there: http://openarena.ws/board/index.php?topic=1908.0
Logged

Todo: Walk the cat.
Pages: [1]
  Print  
 
Jump to: