[opendemo-devel] Re: opendemo on rtcw 1.41
Status: Beta
Brought to you by:
girlich
From: Dan H. <go...@an...> - 2003-01-23 08:49:32
|
On Thu, 23 Jan 2003, Dr. Uwe Girlich wrote: > Here we have the problem, that this must be updated, if the corresponding code > in g_svcmds.c/ConsoleCommand() will be changed. The other possibility would be > to remove the additional test in odr_main.c/odr_vmMain() and always call > odr_post_ConsoleCommand(). So we would not have to change anything in > g_svcmds.c but we would get all odrecord and odstop commands as "server say" > output too. How about odr_pre_ConsoleCommand() which intercepts just the opendemo console commands, and skips over the odr_vmMain() if it's intercepted a command. That means you don't have to change the game code... Still, I don't think it's too bad to do: if (0 && g_dedicated.integer) And then implement "say" in odr_post_ConsoleCommand(). It's the least ugly and most efficient solution to my eyes. -Dan -- [-] Omae no subete no kichi wa ore no mono da. [-] |