Sorry to bump this
For the ingame b3/commands.Code:if (getAscii(args[1][0]) >= 20 && getAscii(args[1][0]) <= 22)
But how does this respond to the Ascii table?
Printable View
Sorry to bump this
For the ingame b3/commands.Code:if (getAscii(args[1][0]) >= 20 && getAscii(args[1][0]) <= 22)
But how does this respond to the Ascii table?
Seems to be just some magic values for something engine internal, IIRC there was no meaning to them besides messing up chat messages.
PHP Code:
fixChatArgs(args)
{
if (isDefined(args[1])) { // engine is adding identifier infront of the chat message
if (getAscii(args[1][0]) >= 20 && getAscii(args[1][0]) <= 22) {
//std\io::print("delete bad ascii code: " + std\utils::getAscii(args[1][0]) + "\n");
args[1] = getSubStr(args[1], 1);
newArgs = strTok(args[1], " ");
for (i=0; i<newArgs.size; i++)
args[1+i] = newArgs[i];
}
}
return args;
}