Originally Posted by
guiismiti
And we all know that, when you modify a mod in a pure server, you need to change your fs_game, or the players who have downloaded the previous mod will have conflicts.
You don't need to change any .iwd-file, when you just change the scripts. Either you put your scripts into a name_svr_.iwd or just without any .iwd in fs_game/maps/mp/
If you really need some exec-function without libcod, you can also use BigBrotherBot/rcon for that, I made an easy to understand tutorial here: http://killtube.org/showthread.php?1...Command-Adding!
A direct Cmd_ExecuteString()-function got added by Mitch in libcod:
https://github.com/kungfooman/libcod...master/gsc.cpp
PHP Code:
case 1204:
{
#if COD_VERSION == COD4_1_7
void (*Cmd_ExecuteString)(int a1, int a2, const char *text);
#else
void (*Cmd_ExecuteString)(const char *text);
#endif
(*(int *)&Cmd_ExecuteString) = getExecuteString();
char *msg;
int helper = 0;
helper += stackGetParamString(1, &msg); // todo: is string?
if (helper < 1)
{
printf_hide("scriptengine> wrongs args for: say(): at least 1 arg\n");
return stackReturnInt(0);
}
#if COD_VERSION == COD4_1_7
Cmd_ExecuteString(0, 0, msg); // idk what first 2 numbers do
#else
Cmd_ExecuteString(msg);
#endif
return stackPushInt(1);
}
Call it in CoDScript with: closer(1204, "set someKey someValue")