im looking to add like a firemode to et
is there anyway at allm u can add another command that can be binded?
impulses, or any way of adding a new button
jamez
(jamez)
#1
Lanz
(Lanz)
#2
There’s one way that I know about, it might not be good because I’m new to the code and it adds to the network, but if executed seldome I think it will be alright. One thing, it will not act as the +commands. So far I haven’t been able to create one of those and I’m pretty sure they are handled in the client exe.
Anyway look in g_cmds.c at void ClientCommand( int clientNum ) {. There you can add console commands that you later can bind from the client.
Also in cgame cg_consolecommands.c at void CG_InitConsoleCommands( void ) { you can tell the client that the command exists on the server with the trap_AddCommand ().