This commit is contained in:
BenCat07 2018-04-08 20:37:33 +02:00
parent 39ea660e6d
commit f905e64945
2 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,7 @@ extern CatVar roll;
extern CatVar no_clamping;
extern CatVar spin;
extern CatVar lisp;
extern CatVar communicate;
extern int safe_space;

View File

@ -902,12 +902,18 @@ bool DispatchUserMessage_hook(void *_this, int type, bf_read &buf)
}
}
}
if (sendmsg.test_and_set(300000) && hacks::shared::antiaim::communicate)
chat_stack::Say("!!meow");
if (crypt_chat)
{
if (message.find("!!") == 0)
{
if (ucccccp::validate(message))
{
if (ucccccp::decrypt(message) == "meow" && hacks::shared::antiaim::communicate) {
playerlist::AccessData(ENTITY(data[0])).state = playerlist::k_EState::CAT;
chat_stack::Say("meow");
}
PrintChat("\x07%06X%s\x01: %s", 0xe05938, name.c_str(),
ucccccp::decrypt(message).c_str());
}