Merge branch 'master' of https://github.com/nullifiedcat/cathook into cathook-NCC

This commit is contained in:
LIghty 2018-03-25 12:29:04 +02:00
commit c910a300f3
8 changed files with 61 additions and 29 deletions

View File

@ -5,7 +5,7 @@
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/> <provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/> <provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/> <provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-371518977614573663" id="org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true"> <provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-399608743044235133" id="org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/> <language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/> <language-scope id="org.eclipse.cdt.core.g++"/>
</provider> </provider>

View File

@ -14,12 +14,12 @@ namespace shared
namespace antiaim namespace antiaim
{ {
CatVar communicate(CV_SWITCH, "identify", "1", CatVar communicate(CV_SWITCH, "identify", "1", "identify",
"Auto identify for other cathook users"); "Auto identify for other cathook users");
CatVar enabled(CV_SWITCH, "aa_enabled", "0", "Anti-Aim", CatVar enabled(CV_SWITCH, "aa_enabled", "0", "Anti-Aim",
"Master AntiAim switch"); "Master AntiAim switch");
CatVar trueang(CV_SWITCH, "aa_truefakes", "1", CatVar trueang(CV_SWITCH, "aa_realfakes", "1", "Real fakes",
"Do true fakeangles (Unresolveable)"); "Do real fakeangles (Unresolveable)");
CatVar yaw(CV_FLOAT, "aa_yaw", "0.0", "Yaw", "Static yaw (left/right)", 360.0); CatVar yaw(CV_FLOAT, "aa_yaw", "0.0", "Yaw", "Static yaw (left/right)", 360.0);
CatVar pitch(CV_FLOAT, "aa_pitch", "-89.0", "Pitch", "Static pitch (up/down)", CatVar pitch(CV_FLOAT, "aa_pitch", "-89.0", "Pitch", "Static pitch (up/down)",
-89.0, 89.0); -89.0, 89.0);
@ -28,10 +28,10 @@ CatVar yaw_real(CV_FLOAT, "aa_yaw_real", "0.0", "Real Yaw",
CatVar pitch_real(CV_FLOAT, "aa_pitch_real", "-89.0", "Real Pitch", CatVar pitch_real(CV_FLOAT, "aa_pitch_real", "-89.0", "Real Pitch",
"Static pitch (up/down)", -89.0, 89.0); "Static pitch (up/down)", -89.0, 89.0);
CatEnum yaw_mode_enum({ "KEEP", "STATIC", "JITTER", "BIGRANDOM", "RANDOM", CatEnum yaw_mode_enum({ "KEEP", "STATIC", "JITTER", "BIGRANDOM", "RANDOM",
"SPIN", "OFFSETKEEP", "EDGE", "HECK" }); "SPIN", "OFFSETKEEP", "EDGE", "HECK", "FAKESIDEWAYS" });
CatEnum pitch_mode_enum({ "KEEP", "STATIC", "JITTER", "RANDOM", "FLIP", CatEnum pitch_mode_enum({ "KEEP", "STATIC", "JITTER", "RANDOM", "FLIP",
"FAKEFLIP", "FAKEUP", "FAKEDOWN", "FAKECENTER", "UP", "FAKEFLIP", "FAKEUP", "FAKEDOWN", "FAKECENTER", "UP",
"DOWN", "HECK", "FAKESIDEWAYS" }); "DOWN", "HECK" });
CatVar yaw_mode(yaw_mode_enum, "aa_yaw_mode", "0", "Yaw mode", "Yaw mode"); CatVar yaw_mode(yaw_mode_enum, "aa_yaw_mode", "0", "Yaw mode", "Yaw mode");
CatVar pitch_mode(pitch_mode_enum, "aa_pitch_mode", "0", "Pitch mode", CatVar pitch_mode(pitch_mode_enum, "aa_pitch_mode", "0", "Pitch mode",
"Pitch mode"); "Pitch mode");

View File

@ -29,10 +29,12 @@ CatVar tracers(tracers_enum, "esp_tracers", "0", "Tracers",
CatEnum emoji_esp_enum({ "None", "Joy", "Thinking" }); CatEnum emoji_esp_enum({ "None", "Joy", "Thinking" });
CatVar emoji_esp(emoji_esp_enum, "esp_emoji", "0", "Emoji ESP", CatVar emoji_esp(emoji_esp_enum, "esp_emoji", "0", "Emoji ESP",
"Draw emoji on peopels head"); "Draw emoji on peopels head");
CatVar emoji_ok(CV_SWITCH, "esp_okhand", "0", "Draw ok_hand on hands"); CatVar emoji_ok(CV_SWITCH, "esp_okhand", "0", "ok_hand",
CatVar emoji_esp_size(CV_FLOAT, "esp_emoji_size", "32", "Emoji ESP Size"); "Draw ok_hand on hands");
CatVar emoji_esp_size(CV_FLOAT, "esp_emoji_size", "32", "Emoji ESP Size",
"Emoji size");
CatVar emoji_esp_scaling(CV_SWITCH, "esp_emoji_scaling", "1", CatVar emoji_esp_scaling(CV_SWITCH, "esp_emoji_scaling", "1",
"Emoji ESP Scaling"); "Emoji ESP Scaling", "Emoji ESP Scaling");
CatVar emoji_min_size(CV_INT, "esp_emoji_min_size", "20", "Emoji ESP min size", CatVar emoji_min_size(CV_INT, "esp_emoji_min_size", "20", "Emoji ESP min size",
"Minimum size for an emoji when you use auto scaling"); "Minimum size for an emoji when you use auto scaling");
hitbox_cache::CachedHitbox *hitboxcache[32][18]{}; hitbox_cache::CachedHitbox *hitboxcache[32][18]{};

View File

@ -14,22 +14,25 @@ namespace shared
namespace lagexploit namespace lagexploit
{ {
CatVar toggle(CV_SWITCH, "se_toggle", "0", "Toggle sequence exploit"); CatVar toggle(CV_SWITCH, "se_toggle", "0", "toggle", "Toggle sequence exploit");
CatVar shoot(CV_SWITCH, "se_shoot", "0", "Instant revvup/shoot two shots at once"); CatVar shoot(CV_SWITCH, "se_shoot", "0", "Instant revvup/shoot",
"Instant revvup/shoot two shots at once");
// SHOUTOUTS TO BLACKFIRE // SHOUTOUTS TO BLACKFIRE
CatVar doom(CV_SWITCH, "se_doom", "0", "Shoot 2+ shots at once", CatVar doom(CV_SWITCH, "se_doom", "0", "Shoot 2+ shots at once",
"See Center string on activation."); "See Center string on activation.");
CatVar razorback(CV_SWITCH, "se_antirazorback", "0", "Anti-Razorback",
"Stab through razorbacks");
CatVar stickyspam(CV_SWITCH, "se_stickyspam", "0", "Sticky spam", CatVar stickyspam(CV_SWITCH, "se_stickyspam", "0", "Sticky spam",
"Allows Spam of stickies simply by holding Mouse1."); "Allows Spam of stickies simply by holding Mouse1.");
CatVar cloak(CV_SWITCH, "se_cloak", "0", "Instant decloak/cloak"); CatVar cloak(CV_SWITCH, "se_cloak", "0", "Instant decloak/cloak", "");
CatVar cap(CV_SWITCH, "se_cap", "0", "Auto instant cap"); CatVar cap(CV_SWITCH, "se_cap", "0", "Auto instant cap", "");
CatVar cart(CV_SWITCH, "se_cart", "0", "Farm cart points", CatVar cart(CV_SWITCH, "se_cart", "0", "Farm cart points",
"Automatically farm points by touching " "Automatically farm points by touching "
"the cart (only works on attacking " "the cart (only works on attacking "
"team)"); "team)");
CatVar instant_weapon_switch(CV_SWITCH, "se_switch", "0", CatVar instant_weapon_switch(CV_SWITCH, "se_switch", "0",
"Instant weapon switch"); "Instant weapon switch", "");
CatVar key(CV_KEY, "se_key", "0", "Sequence exploit key"); CatVar key(CV_KEY, "se_key", "0", "Sequence exploit key");
CatVar master_switch(CV_SWITCH, "se_master", "1", "Enable sequence exploit", CatVar master_switch(CV_SWITCH, "se_master", "1", "Enable sequence exploit",
"Master switch for the sequence exploit\nDisabling this " "Master switch for the sequence exploit\nDisabling this "
@ -293,9 +296,10 @@ void CreateMove()
if (instant_weapon_switch && not HasCondition<TFCond_Cloaked>(LOCAL_E)) if (instant_weapon_switch && not HasCondition<TFCond_Cloaked>(LOCAL_E))
{ {
static int lastweapon = 0; static int lastweapon = 0;
if (lastweapon != g_pUserCmd->weaponselect) if (lastweapon != g_pUserCmd->weaponselect) {
amount = 1 * 90; amount = 2 * 90;
lastweapon = g_pUserCmd->weaponselect; lastweapon = g_pUserCmd->weaponselect;
}
} }
if (cloak && shoot) if (cloak && shoot)
{ {
@ -395,7 +399,7 @@ void CreateMove()
} }
} }
// SHOUTOUTS TO BLACKFIRE // SHOUTOUTS TO BLACKFIRE
if (doom) if (doom || razorback)
{ {
static int i = 0; static int i = 0;
servertime = servertime =
@ -407,7 +411,7 @@ void CreateMove()
CE_FLOAT(g_pLocalPlayer->weapon(), netvar.flNextPrimaryAttack); CE_FLOAT(g_pLocalPlayer->weapon(), netvar.flNextPrimaryAttack);
if (servertime - nextattack > 30.0f) if (servertime - nextattack > 30.0f)
nextattack = servertime - 30.0f; nextattack = servertime - 30.0f;
if (servertime - nextattack > 0.0f && if (doom && servertime - nextattack > 0.0f &&
(g_pUserCmd->buttons & IN_ATTACK || (g_pUserCmd->buttons & IN_ATTACK ||
g_pUserCmd->buttons & IN_ATTACK2)) g_pUserCmd->buttons & IN_ATTACK2))
{ {
@ -420,6 +424,19 @@ void CreateMove()
g_pUserCmd->buttons &= ~IN_ATTACK2; g_pUserCmd->buttons &= ~IN_ATTACK2;
} }
} }
else if (razorback && servertime - nextattack > 3.0f &&
(g_pUserCmd->buttons & IN_ATTACK ||
g_pUserCmd->buttons & IN_ATTACK2))
{
if (g_pLocalPlayer->weapon()->m_iClassID == CL_CLASS(CTFKnife))
{
if (!i)
i = 3;
amount = i * 66;
g_pUserCmd->buttons &= ~IN_ATTACK;
g_pUserCmd->buttons &= ~IN_ATTACK2;
}
}
if (i) if (i)
i--; i--;
lastwep = g_pLocalPlayer->weapon()->m_IDX; lastwep = g_pLocalPlayer->weapon()->m_IDX;
@ -444,6 +461,16 @@ void Draw()
auto amount = (int) servertime - (int) nextattack; auto amount = (int) servertime - (int) nextattack;
AddCenterString(format("Fireable amount: ", amount), colors::orange); AddCenterString(format("Fireable amount: ", amount), colors::orange);
} }
if (razorback)
if (servertime - nextattack > 3.0f)
{
AddCenterString(format("Can Stab through Razorback"),
colors::green);
}
else if (servertime - nextattack < 3.0f)
AddCenterString(format("Can't Stab through Razorback"),
colors::red);
#endif #endif
} }
} }

View File

@ -283,16 +283,15 @@ static CatVar newlines_msg(CV_INT, "chat_newlines", "0", "Prefix newlines",
// "Use this if you want to use spam/killsay and still be able to chat normally // "Use this if you want to use spam/killsay and still be able to chat normally
// (without having your msgs eaten by valve cooldown)"); // (without having your msgs eaten by valve cooldown)");
static CatVar airstuck(CV_KEY, "airstuck", "0", "Airstuck"); static CatVar airstuck(CV_KEY, "airstuck", "0", "Airstuck", "");
static CatVar crypt_chat( static CatVar crypt_chat(
CV_SWITCH, "chat_crypto", "1", "Crypto chat", CV_SWITCH, "chat_crypto", "1", "Crypto chat",
"Start message with !! and it will be only visible to cathook users"); "Start message with !! and it will be only visible to cathook users");
static CatVar chat_filter(CV_STRING, "chat_censor", "", static CatVar chat_filter(CV_STRING, "chat_censor", "", "Censor words",
"Censor words",
"Spam Chat with newlines if the chosen words are " "Spam Chat with newlines if the chosen words are "
"said, seperate with commas"); "said, seperate with commas");
static CatVar chat_filter_enabled(CV_SWITCH, "chat_censor_enabled", "0", static CatVar chat_filter_enabled(CV_SWITCH, "chat_censor_enabled", "0",
"Enable censor"); "Enable censor", "Censor Words in chat");
bool SendNetMsg_hook(void *_this, INetMessage &msg, bool bForceReliable = false, bool SendNetMsg_hook(void *_this, INetMessage &msg, bool bForceReliable = false,
bool bVoice = false) bool bVoice = false)
@ -822,6 +821,7 @@ bool DispatchUserMessage_hook(void *_this, int type, bf_read &buf)
for (int i = 0; i < 120; i++) for (int i = 0; i < 120; i++)
clear += "\n"; clear += "\n";
} }
*bSendPackets = true;
chat_stack::Say(". " + clear, true); chat_stack::Say(". " + clear, true);
retrun = true; retrun = true;
lastfilter = format(filter); lastfilter = format(filter);
@ -854,6 +854,7 @@ bool DispatchUserMessage_hook(void *_this, int type, bf_read &buf)
for (int i = 0; i < 120; i++) for (int i = 0; i < 120; i++)
clear += "\n"; clear += "\n";
} }
*bSendPackets = true;
chat_stack::Say(". " + clear, true); chat_stack::Say(". " + clear, true);
retrun = true; retrun = true;
lastfilter = format(filter); lastfilter = format(filter);

View File

@ -6,7 +6,7 @@
*/ */
#include "menu/CBaseContainer.h" #include "menu/CBaseContainer.h"
#include "menu/GUI.h"
#include "common.hpp" #include "common.hpp"
#include "sdk.hpp" #include "sdk.hpp"

View File

@ -7,6 +7,7 @@
#include "menu/ncc/ItemVariable.hpp" #include "menu/ncc/ItemVariable.hpp"
#include "menu/ncc/Item.hpp" #include "menu/ncc/Item.hpp"
#include "menu/ncc/Menu.hpp"
#include "common.hpp" #include "common.hpp"
namespace menu namespace menu
@ -22,10 +23,11 @@ ItemVariable::ItemVariable(CatVar &variable)
void ItemVariable::Update() void ItemVariable::Update()
{ {
Item::Update(); Item::Update();
if (!catvar.desc_long.empty()) if (catvar.registered == true)
if (catvar.desc_long.length() && IsHovered() && if (!catvar.desc_long.empty())
catvar.desc_long != "no description") if (catvar.desc_long.length() && IsHovered() &&
ShowTooltip(catvar.desc_long); catvar.desc_long != "no description")
ShowTooltip(catvar.desc_long);
} }
void ItemVariable::Change(float amount) void ItemVariable::Change(float amount)

View File

@ -586,7 +586,7 @@ static const std::string list_tf2 = R"(
"Anti-/Anti-Aim" [ "Anti-/Anti-Aim" [
"Anti-Aim Menu" "Anti-Aim Menu"
"aa_enabled" "aa_enabled"
"aa_truefakes" "aa_realfakes"
"aa_pitch_real" "aa_pitch_real"
"aa_yaw_real" "aa_yaw_real"
"aa_pitch_mode_real" "aa_pitch_mode_real"