![]() |
A fix for FakeClientCommand() code.
Code:
void CGeneral::FakeClientCommand(CClient *pClient, const char *fmt, ...) Code:
const char *pfnCmd_Args(void) Note that the pfnCmd_Args() isn't supposed to return the command name (not only "say" "say_team" but also whatever command name). It isn't "bug in HL engine". You can look at the cmd.c file in Quake1 source code to find it out. PS, This is PMB's code, however botman's original one also has this bug. It won't affect too much to CS, but if some MOD use pfnCmd_Args() to do something this will cause problem for bots. |
Re: A fix for FakeClientCommand() code.
I don't get it here... what are the symptoms of the bug, and how are you fixing it ?
|
Re: A fix for FakeClientCommand() code.
eg, when you typed "command arg1 arg2 arg3" in the console, the pfnCmd_Args() just returns "arg1 arg2 arg3" and NOT "command arg1 arg3 arg3".
That doesn't only happen when command is "say" or "say_team" but whatever command. |
Re: A fix for FakeClientCommand() code.
yes, that bug was known but somehow nobody wanted to fix it or did not see any advantage in it. The only advantage i see in this now, is that you can make chatting a lot easier:
FakeClientCOmmand("say", text, null, null); will make bots chat in the proper CS 1.x format... ;) And you dont have to worry about sending this message to other clients. |
All times are GMT +2. The time now is 16:49. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.