Hello,
The Bad:
There does not appear to be any "easy" way do disable this command.
The Good:
The code governing this console command is open: see
http://www.mt-wudan.com/jkamp/g__cmds_8c.html#a64
Since it is a debug command I would have assumed there is a switch somewhere to disable all such commands in one fell swoop but I don't see anything like that in the code...
The Ugly:
This command should not exist in the first place: see
g_cmds.c
Code: Select all
void ClientCommand( int clientNum ) {
...
#ifndef FINAL_BUILD
03603 else if (Q_stricmp(cmd, "debugSetSaberMove") == 0)
03604 {
03605 Cmd_DebugSetSaberMove_f(ent);
03606 }
so this command should only be understood by the console if the build in
not final (ie. in a debug build). So JKA 1.00 was not a final build ?!.
Given that, I think it is safe to assume that
any mod out there would solve your problem, since they should be compiled as FINAL. But I have a feeling this is not a solution you are prepared to accept: people who stick to 1.00 are generally very fussy over the slightest alterations of gameplay, if I recall, and every mod brings its own, even if it is not the modder's agenda. And come to think of it, I don't even think there is an SDK for 1.00. So you're completely stuck.
So I would think your best bet would be to use an hexadecimal editor to garble the string in here "else if (Q_stricmp(cmd, "
debugSetSaberMove") ", which must appear somewhere in the executable. This should be both reasonably easy to do and effective. In theory the command will still exist and be activable, but you will be the only one to know its new name.
Let me know how this works out. If you have trouble doing it I can do it for you if you post the jampgame component of your server -- it should be a 30 seconds manipulation. Of course I am assuming that you have root access on your linux server; if you don't you can't alter jampgame and my suggestions are moot. In that case you'll have to negotiate with whoever
has root access.
PS/disclaimer: I have not touched JKA in a long time, and I never used 1.00 anyway, so I'm more than a little fuzzy over the differences between 1.00 and 1.01 and all that.