Closed maximyurchuk closed 4 years ago
Argh, seems 0.7.4 commands are broken with this change.
will merge when 0.7.6 is released and most people play >= 0.7.5 then
@jxsl13 I fixed problems with clients 0.7.4 and below, so, I suppose it can be merged without waiting 0.7.6 release. For fix details see my last commit.
original source: https://github.com/jxsl13/zcatch/blob/7fb4e63cd4b4ba9649326e90af615d15b9b576ad/src/game/server/gamemodes/zcatch.cpp#L318
this PR breaks the /rank nickname with spaces
Yeah, already realize that. Fixed in last commit.
There are were some problems at least with current steam client (0.7.5):
/help
because it declared with's'
specifier. TW client rejects sending/help
message because it expects string argument;/help someting
was handled incorrectly. Instead of printing help info about 'something' actual behaviour was printingsomething
in common chat. It's happened because then callingOnChatMessage(ID, 0, ID, pArgs);
pArgs
doesn't prefixed with/help
;/rank
command was not recognized as command in TW client (then you press/
in chat you can view list of commands) because in modern TW client there is no'p'
(player) specifier. It was removed in this commit.You can check these problems in game.
This pull request have following changes:
OnChatMessage
anymore (it was quite strange);CommandsManager()
now, so it visible in TW client (release
andallmessages
were added);OnPlayerCommandImpl
;-- bleeding