add spectate option to playerlist
This commit is contained in:
parent
1ab827cf40
commit
65701bdc80
@ -10,8 +10,12 @@
|
|||||||
"aimbot_hitboxmode",
|
"aimbot_hitboxmode",
|
||||||
"aimbot_fov",
|
"aimbot_fov",
|
||||||
"aimbot_fov_draw",
|
"aimbot_fov_draw",
|
||||||
|
"aimbot_fov_draw_opacity",
|
||||||
"aimbot_prioritymode",
|
"aimbot_prioritymode",
|
||||||
"aimbot_charge",
|
"aimbot_charge",
|
||||||
|
"aimbot_auto_unzoom",
|
||||||
|
"aimbot_auto_zoom",
|
||||||
|
"aimbot_rage_only",
|
||||||
{
|
{
|
||||||
"type": "list",
|
"type": "list",
|
||||||
"name": "Ignore",
|
"name": "Ignore",
|
||||||
@ -42,6 +46,7 @@
|
|||||||
"type": "list",
|
"type": "list",
|
||||||
"name": "Preferences",
|
"name": "Preferences",
|
||||||
"list": [
|
"list": [
|
||||||
|
"aimbot_miss_chance",
|
||||||
"aimbot_silent",
|
"aimbot_silent",
|
||||||
"aimbot_target_lock",
|
"aimbot_target_lock",
|
||||||
"aimbot_hitbox",
|
"aimbot_hitbox",
|
||||||
@ -182,6 +187,7 @@
|
|||||||
"esp_entity",
|
"esp_entity",
|
||||||
"esp_model_name",
|
"esp_model_name",
|
||||||
"esp_entity_id",
|
"esp_entity_id",
|
||||||
|
"esp_spellbooks",
|
||||||
{
|
{
|
||||||
"type": "list",
|
"type": "list",
|
||||||
"name": "Colors",
|
"name": "Colors",
|
||||||
@ -285,7 +291,8 @@
|
|||||||
"glow_medkits",
|
"glow_medkits",
|
||||||
"glow_ammo",
|
"glow_ammo",
|
||||||
"glow_stickies",
|
"glow_stickies",
|
||||||
"glow_powerups"
|
"glow_powerups",
|
||||||
|
"glow_weapons_white"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -392,7 +399,11 @@
|
|||||||
"uberspam_build",
|
"uberspam_build",
|
||||||
"uberspam_file",
|
"uberspam_file",
|
||||||
"spam_voicecommand",
|
"spam_voicecommand",
|
||||||
"spam_teamname"
|
"spam_teamname",
|
||||||
|
"chat_log",
|
||||||
|
"chat_log_noipc",
|
||||||
|
"chat_log_nospam",
|
||||||
|
"chat_log_template"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -428,6 +439,11 @@
|
|||||||
"type": "list",
|
"type": "list",
|
||||||
"name": "Miscellaneous",
|
"name": "Miscellaneous",
|
||||||
"list": [
|
"list": [
|
||||||
|
"autotaunt",
|
||||||
|
"autotaunt_chance",
|
||||||
|
"autojoin_team",
|
||||||
|
"autojoin_class",
|
||||||
|
"autoqueue",
|
||||||
"events",
|
"events",
|
||||||
"airstuck",
|
"airstuck",
|
||||||
"instant_weapon_switch",
|
"instant_weapon_switch",
|
||||||
|
@ -56,6 +56,9 @@ void DrawCheatVisuals() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (spectator_target) {
|
||||||
|
AddCenterString("Press SPACE to stop spectating");
|
||||||
|
}
|
||||||
if (CE_GOOD(g_pLocalPlayer->entity) && !g_Settings.bInvalid) {
|
if (CE_GOOD(g_pLocalPlayer->entity) && !g_Settings.bInvalid) {
|
||||||
PROF_SECTION(PT_total_hacks);
|
PROF_SECTION(PT_total_hacks);
|
||||||
{
|
{
|
||||||
|
@ -127,6 +127,10 @@ void RenderPlayer(int eid) {
|
|||||||
}
|
}
|
||||||
x += 200;
|
x += 200;
|
||||||
ImGui::PopItemWidth();
|
ImGui::PopItemWidth();
|
||||||
|
ImGui::SameLine(x);
|
||||||
|
if (ImGui::Button("Spectate")) {
|
||||||
|
spectator_target = eid;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ImGui::PopID();
|
ImGui::PopID();
|
||||||
}
|
}
|
||||||
|
@ -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 teammates(CV_SWITCH, "esp_teammates", "0", "ESP Teammates", "Teammate ESP");
|
||||||
CatVar tank(CV_SWITCH, "esp_show_tank", "1", "Show tank", "Show tanks in mvm");
|
CatVar tank(CV_SWITCH, "esp_show_tank", "1", "Show tank", "Show tanks in mvm");
|
||||||
// Text Esps
|
// 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_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_name(CV_SWITCH, "esp_name", "1", "Name ESP", "Show name");
|
||||||
CatVar show_class(CV_SWITCH, "esp_class", "1", "Class ESP", "Show class");
|
CatVar show_class(CV_SWITCH, "esp_class", "1", "Class ESP", "Show class");
|
||||||
|
@ -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");
|
CatVar freecam(CV_KEY, "debug_freecam", "0", "Freecam");
|
||||||
int spectator_target { 0 };
|
int spectator_target { 0 };
|
||||||
|
|
||||||
CatCommand spectate("debug_spectate", "Spectate", [](const CCommand& args) {
|
CatCommand spectate("spectate", "Spectate", [](const CCommand& args) {
|
||||||
if (args.ArgC() < 1) {
|
if (args.ArgC() < 1) {
|
||||||
spectator_target = 0;
|
spectator_target = 0;
|
||||||
return;
|
return;
|
||||||
@ -132,6 +132,9 @@ void OverrideView_hook(void* _this, CViewSetup* setup) {
|
|||||||
setup->angles = CE_VAR(spec, netvar.m_angEyeAngles, QAngle);
|
setup->angles = CE_VAR(spec, netvar.m_angEyeAngles, QAngle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (g_IInputSystem->IsButtonDown(ButtonCode_t::KEY_SPACE)) {
|
||||||
|
spectator_target = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (freecam) {
|
if (freecam) {
|
||||||
|
Reference in New Issue
Block a user