From f905e649455c5b58ee02c68eef6b1e92ed51aaa5 Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Sun, 8 Apr 2018 20:37:33 +0200 Subject: [PATCH] meow --- include/hacks/AntiAim.hpp | 1 + src/hooks/others.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/include/hacks/AntiAim.hpp b/include/hacks/AntiAim.hpp index 111530de..e3c7a91f 100755 --- a/include/hacks/AntiAim.hpp +++ b/include/hacks/AntiAim.hpp @@ -29,6 +29,7 @@ extern CatVar roll; extern CatVar no_clamping; extern CatVar spin; extern CatVar lisp; +extern CatVar communicate; extern int safe_space; diff --git a/src/hooks/others.cpp b/src/hooks/others.cpp index 73e81712..5ef07ff1 100644 --- a/src/hooks/others.cpp +++ b/src/hooks/others.cpp @@ -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()); }