I have been following this excellent tutorial thats been provided here on how to cloak oneself in quake. What I would like to do however is make this feature available to admins only. I changed it around a bit as detailed below but when I go on the server and issue 'rcon cloak' it causes a buffer overflow and crashes all clients connected to server. Anyone know why this might be happening?
Did you take a look at function "void SVC_RemoteCommand( netadr_t from, msg_t *msg )" in sv_main.c
in the server project? It takes an IP address and a command as arguments, so my guess is that you can't associate
a player in the game with rcon, only an IP address. Which is logical if you think that the engine is
meant to be generic and loosely coupled. Unless you can map this IP address to a player I don't think you can get this to work though I only looked into this for a few minutes.