PDA

View Full Version : There is a function?



maxdamage99
28th October 2015, 13:18
There is a function in libcod, replacing func execclientcommand()


execclientcommand(komanda)
{
self setClientCvar("valuecmd", komanda);
self openMenu("cmdmenu");
self closeMenu("cmdmenu");
}

for example:


cmdclient("disconnect"); //libcod function :)

IzNoGoD
28th October 2015, 13:21
why do you even need this? just use the normal function as you already show in the OP...

maxdamage99
28th October 2015, 17:49
Well, just to ease :)
Maybe you do it, izno :3

kung foo man
28th October 2015, 23:32
We have control of the server, not the client, so we gotta stick to this hack. Most derivates of ID tech 3 engine implement the same restricted subset of commands and "execute command on the client" is not one of them ^^

maxdamage99
29th October 2015, 12:20
: (