diff --git a/check-data b/check-data index eaa9abeb..eafb525f 100755 --- a/check-data +++ b/check-data @@ -5,5 +5,6 @@ if ! [ -d "$1" ]; then sudo mkdir -p "$1" sudo chown -R $USER "$1" sudo chmod -R 777 "$1" - rsync -avh --progress "data/" "$1" fi + +rsync -avh --progress "data/" "$1" \ No newline at end of file diff --git a/data/menu.json b/data/menu.json index 6c38f482..3bed681f 100644 --- a/data/menu.json +++ b/data/menu.json @@ -10,8 +10,12 @@ "aimbot_hitboxmode", "aimbot_fov", "aimbot_fov_draw", + "aimbot_fov_draw_opacity", "aimbot_prioritymode", "aimbot_charge", + "aimbot_auto_unzoom", + "aimbot_auto_zoom", + "aimbot_rage_only", { "type": "list", "name": "Ignore", @@ -42,6 +46,7 @@ "type": "list", "name": "Preferences", "list": [ + "aimbot_miss_chance", "aimbot_silent", "aimbot_target_lock", "aimbot_hitbox", @@ -182,6 +187,7 @@ "esp_entity", "esp_model_name", "esp_entity_id", + "esp_spellbooks", { "type": "list", "name": "Colors", @@ -285,7 +291,8 @@ "glow_medkits", "glow_ammo", "glow_stickies", - "glow_powerups" + "glow_powerups", + "glow_weapons_white" ] }, { @@ -392,7 +399,11 @@ "uberspam_build", "uberspam_file", "spam_voicecommand", - "spam_teamname" + "spam_teamname", + "chat_log", + "chat_log_noipc", + "chat_log_nospam", + "chat_log_template" ] }, { @@ -428,6 +439,11 @@ "type": "list", "name": "Miscellaneous", "list": [ + "autotaunt", + "autotaunt_chance", + "autojoin_team", + "autojoin_class", + "autoqueue", "events", "airstuck", "instant_weapon_switch", diff --git a/src/drawmgr.cpp b/src/drawmgr.cpp index 13a5cd85..4dd1b5f3 100644 --- a/src/drawmgr.cpp +++ b/src/drawmgr.cpp @@ -56,6 +56,9 @@ void DrawCheatVisuals() { } } } + if (spectator_target) { + AddCenterString("Press SPACE to stop spectating"); + } if (CE_GOOD(g_pLocalPlayer->entity) && !g_Settings.bInvalid) { PROF_SECTION(PT_total_hacks); { diff --git a/src/gui/im/Playerlist.cpp b/src/gui/im/Playerlist.cpp index 3fa7d176..6903701d 100644 --- a/src/gui/im/Playerlist.cpp +++ b/src/gui/im/Playerlist.cpp @@ -127,6 +127,10 @@ void RenderPlayer(int eid) { } x += 200; ImGui::PopItemWidth(); + ImGui::SameLine(x); + if (ImGui::Button("Spectate")) { + spectator_target = eid; + } } ImGui::PopID(); } diff --git a/src/hack.cpp b/src/hack.cpp index 74d3f889..ff3cfffe 100644 --- a/src/hack.cpp +++ b/src/hack.cpp @@ -162,6 +162,7 @@ void hack::CC_Cat(const CCommand& args) { } void hack::Initialize() { + signal(SIGPIPE, SIG_IGN); time_injected = time(nullptr); // Essential files must always exist, except when the game is running in text mode. #if ENABLE_VISUALS == 1 diff --git a/src/hacks/ESP.cpp b/src/hacks/ESP.cpp index 1ff468b4..0b151e52 100644 --- a/src/hacks/ESP.cpp +++ b/src/hacks/ESP.cpp @@ -44,7 +44,7 @@ CatVar buildings(CV_SWITCH, "esp_buildings", "1", "Building ESP", "Show building CatVar teammates(CV_SWITCH, "esp_teammates", "0", "ESP Teammates", "Teammate ESP"); CatVar tank(CV_SWITCH, "esp_show_tank", "1", "Show tank", "Show tanks in mvm"); // Text Esps -CatVar show_weapon(CV_SWITCH, "esp_weapon", "1", "Show weapon name", "Show which weapon the enemy is using"); +CatVar show_weapon(CV_SWITCH, "esp_weapon", "0", "Show weapon name", "Show which weapon the enemy is using"); CatVar show_distance(CV_SWITCH, "esp_distance", "1", "Distance ESP", "Show distance to target"); CatVar show_name(CV_SWITCH, "esp_name", "1", "Name ESP", "Show name"); CatVar show_class(CV_SWITCH, "esp_class", "1", "Class ESP", "Show class"); diff --git a/src/hooks/others.cpp b/src/hooks/others.cpp index e88276a8..3c2e6e2c 100644 --- a/src/hooks/others.cpp +++ b/src/hooks/others.cpp @@ -95,7 +95,7 @@ CatVar override_fov(CV_FLOAT, "fov", "0", "FOV override", "Overrides FOV with th CatVar freecam(CV_KEY, "debug_freecam", "0", "Freecam"); int spectator_target { 0 }; -CatCommand spectate("debug_spectate", "Spectate", [](const CCommand& args) { +CatCommand spectate("spectate", "Spectate", [](const CCommand& args) { if (args.ArgC() < 1) { spectator_target = 0; return; @@ -132,6 +132,9 @@ void OverrideView_hook(void* _this, CViewSetup* setup) { setup->angles = CE_VAR(spec, netvar.m_angEyeAngles, QAngle); } } + if (g_IInputSystem->IsButtonDown(ButtonCode_t::KEY_SPACE)) { + spectator_target = 0; + } } if (freecam) {