custom self chams and glow settings

This commit is contained in:
LIghty 2018-03-21 20:15:58 +01:00
parent d7b2ef9d0a
commit aa6f71be7a
3 changed files with 139 additions and 31 deletions

View File

@ -337,21 +337,36 @@ static const std::string list_tf2 = R"(
"auto_vacc_bullets" "auto_vacc_bullets"
] ]
"Ignore" [ "Ignore" [
"Ignore Menu"
"trigger_ignore_cloak" "trigger_ignore_cloak"
"trigger_ignore_hoovy" "trigger_ignore_hoovy"
"trigger_ignore_vaccinator" "trigger_ignore_vaccinator"
] ]
"Auto Backstab" [ "Auto Backstab" [
"Auto BackStab" "Auto BackStab Menu"
"autobackstab_range" "autobackstab_range"
"autobackstab" "autobackstab"
] ]
"Auto Sticky" [ "Auto Sticky" [
"Auto Sticky" "Auto Sticky Menu"
"sticky_enabled" "sticky_enabled"
"sticky_legit" "sticky_legit"
"sticky_buildings" "sticky_buildings"
] ]
"Auto Detonator" [
"Auto Detonator Menu"
"detonator_enabled"
"detonator_legit"
]
"Auto Airblast" [
"Auto Airblast Menu"
"reflect_enabled"
"reflect_key"
"reflect_legit"
"reflect_dodgeball"
"reflect_only_idle"
"reflect_stickybombs"
]
] ]
"Fake Lag" [ "Fake Lag" [
"Fake Lag Menu" "Fake Lag Menu"
@ -361,8 +376,9 @@ static const std::string list_tf2 = R"(
"Sequence Freezing Menu" "Sequence Freezing Menu"
"se_master" "se_master"
"se_key" "se_key"
"se_doom"
"se_switch" "se_switch"
"se_value"90 "se_value"
"se_cart" "se_cart"
"se_cap" "se_cap"
"se_cloak" "se_cloak"
@ -379,6 +395,7 @@ static const std::string list_tf2 = R"(
"fov_zoomed" "fov_zoomed"
"no_invis" "no_invis"
"no_hats" "no_hats"
"antidisguise"
"no_arms" "no_arms"
"ESP" [ "ESP" [
"ESP Menu" "ESP Menu"
@ -398,15 +415,6 @@ static const std::string list_tf2 = R"(
"esp_class" "esp_class"
"esp_name" "esp_name"
"esp_distance" "esp_distance"
"ESP Color" [
"Esp Color"
"esp_color_blue_r"
"esp_color_blue_g"
"esp_color_blue_b"
"esp_color_red_r"
"esp_color_red_g"
"esp_color_red_b"
]
] ]
"Chams" [ "Chams" [
"Chams Menu" "Chams Menu"
@ -424,6 +432,14 @@ static const std::string list_tf2 = R"(
"chams_teammates" "chams_teammates"
"chams_health" "chams_health"
"chams_flat" "chams_flat"
"Self Chams"[
"Self Chams Menu"
"chams_self"
"chams_self_rainbow"
"chams_self_r"
"chams_self_g"
"chams_self_b"
]
] ]
"Glow" [ "Glow" [
"Glow Menu" "Glow Menu"
@ -440,8 +456,28 @@ static const std::string list_tf2 = R"(
"glow_players" "glow_players"
"glow_teammates" "glow_teammates"
"glow_health" "glow_health"
"Self Glow"[
"Self Glow Menu"
"glow_self"
"glow_self_rainbow"
"glow_self_r"
"glow_self_g"
"glow_self_b"
]
]
"Colors" [
"Colors Menu"
"gui_rainbow"
"gui_color_r"
"gui_color_g"
"gui_color_b"
"esp_color_blue_r"
"esp_color_blue_g"
"esp_color_blue_b"
"esp_color_red_r"
"esp_color_red_g"
"esp_color_red_b"
] ]
] ]
"Bunny Hop" [ "Bunny Hop" [
"Bunny Hop Menu" "Bunny Hop Menu"
@ -456,9 +492,13 @@ static const std::string list_tf2 = R"(
"Anti-Aim Menu" "Anti-Aim Menu"
"aa_enabled" "aa_enabled"
"aa_truefakes" "aa_truefakes"
"aa_pitch_real"
"aa_yaw_real"
"aa_pitch_mode_real"
"aa_yaw_mode_real"
"aa_pitch" "aa_pitch"
"aa_pitch_mode"
"aa_yaw" "aa_yaw"
"aa_pitch_mode"
"aa_yaw_mode" "aa_yaw_mode"
"aa_spin" "aa_spin"
"aa_roll" "aa_roll"
@ -488,19 +528,29 @@ static const std::string list_tf2 = R"(
"Chat Spam" [ "Chat Spam" [
"Chat Spam Menu" "Chat Spam Menu"
"spam" "spam"
"chat_newlines"
"killsay" "killsay"
"spam_teamname" "spam_teamname"
"spam_voicecommand" "spam_voicecommand"
"chat_newlines"
"spam_delay" "spam_delay"
"spam_file" "spam_file"
"spam_random" "spam_random"
"Uberspam" [
"Uberspam Menu"
"uberspam"
"uberspam_team"
"uberspam_build"
"uberspam_ended"
"uberspam_used"
"uberspam_ready"
]
] ]
"Misc" [ "Misc" [
"Misc Menu" "Misc Menu"
"pure_bypass" "pure_bypass"
"nolerp" "nolerp"
"info" "info"
"info_min"
"noisemaker" "noisemaker"
"medal_flip" "medal_flip"
"killstreak" "killstreak"
@ -509,12 +559,8 @@ static const std::string list_tf2 = R"(
"anti_afk" "anti_afk"
"die_if_vac" "die_if_vac"
"request_balance_spam" "request_balance_spam"
"autotaunt" "nopush_enabled"
"autotaunt_chance"
"gui_rainbow"
"gui_color_b"
"gui_color_g"
"gui_color_r"
"HealArrow" [ "HealArrow" [
"HealArrow Menu" "HealArrow Menu"
"healarrow" "healarrow"
@ -522,16 +568,55 @@ static const std::string list_tf2 = R"(
"healarrow_charge" "healarrow_charge"
] ]
"Anti Backstab" [ "Anti Backstab" [
"Anti Backstab" "Anti Backstab Menu"
"antibackstab" "antibackstab"
"antibackstab_nope" "antibackstab_nope"
"antibackstab_angle" "antibackstab_angle"
"antibackstab_silent" "antibackstab_silent"
"antibackstab_distance" "antibackstab_distance"
] ]
] "Spyalert" [
"Ignore Settings" [ "Spyalert Menu"
"Ignore Settings Menu" "spyalert_enabled"
"spyalert_backstab"
"spyalert_sound"
"spyalert_interval"
"spyalert_warning"
]
"Anti Cheat" [
"Anti Cheat Menu"
"ac_enabled"
"ac_aimbot"
"ac_aimbot_detections"
"ac_aimbot_angle"
"ac_bhop_count"
]
"Automated" [
"Automated Menu"
"autoqueue"
"autojoin_team"
"autojoin_class"
"autotaunt"
"autotaunt_chance"
]
"Debug" [
"Debug Menu"
"debug_freecam"
"debug_projectiles"
"debug_log_sent_messages"
"debug_log_usermessages"
"debug_tcm"
"debug_info"
"skinchanger_debug"
"debug_aimbot_engine_pp"
"aimbot_debug"
"debug_ve_averaging"
"debug_ve_smooth"
"debug_ve_window"
"debug_pp_rocket_time_ping"
"debug_pp_extrapolate"
"debug_engine_pred_others"
]
] ]
)"; )";

View File

@ -44,7 +44,16 @@ static CatVar legit(CV_SWITCH, "chams_legit", "0", "Legit chams",
static CatVar singlepass(CV_SWITCH, "chams_singlepass", "0", "Single-pass", static CatVar singlepass(CV_SWITCH, "chams_singlepass", "0", "Single-pass",
"Render chams only once (this disables 'darker' chams " "Render chams only once (this disables 'darker' chams "
"on invisible parts of player"); "on invisible parts of player");
static CatVar chamsself(CV_SWITCH, "chams_self", "0", "Enable chams on self",
"");
static CatVar rainbow(CV_SWITCH, "chams_self_rainbow", "1",
"Enable rainbow chams on self",
"Only visible in thirdperson!");
static CatVar chamsR(CV_INT, "chams_self_r", "0", "Self chams red", "", 0, 255);
static CatVar chamsG(CV_INT, "chams_self_g", "0", "Self chams green", "", 0,
255);
static CatVar chamsB(CV_INT, "chams_self_b", "0", "Self chams blue", "", 0,
255);
void EffectChams::Init() void EffectChams::Init()
{ {
logging::Info("Init EffectChams..."); logging::Info("Init EffectChams...");
@ -120,8 +129,8 @@ rgba_t EffectChams::ChamsColor(IClientEntity *entity)
case ENTITY_PLAYER: case ENTITY_PLAYER:
if (!players) if (!players)
return colors::empty; return colors::empty;
if (!ent->m_bEnemy && !teammates) if (ent->m_IDX == LOCAL_E->m_IDX && chamsself && !rainbow)
return colors::empty; return colors::FromRGBA8(chamsR, chamsG, chamsB, 255);
if (health) if (health)
{ {
return colors::Health(ent->m_iHealth, ent->m_iMaxHealth); return colors::Health(ent->m_iHealth, ent->m_iMaxHealth);
@ -140,6 +149,8 @@ bool EffectChams::ShouldRenderChams(IClientEntity *entity)
CachedEntity *ent = ENTITY(entity->entindex()); CachedEntity *ent = ENTITY(entity->entindex());
if (CE_BAD(ent)) if (CE_BAD(ent))
return false; return false;
if (ent->m_IDX == LOCAL_E->m_IDX && !chamsself)
return false;
switch (ent->m_Type) switch (ent->m_Type)
{ {
case ENTITY_BUILDING: case ENTITY_BUILDING:

View File

@ -49,6 +49,14 @@ static CatVar teammate_buildings(CV_SWITCH, "glow_teammate_buildings", "0",
static CatVar powerups(CV_SWITCH, "glow_powerups", "1", "Powerups"); static CatVar powerups(CV_SWITCH, "glow_powerups", "1", "Powerups");
static CatVar weapons_white(CV_SWITCH, "glow_weapons_white", "1", static CatVar weapons_white(CV_SWITCH, "glow_weapons_white", "1",
"White Weapon Glow", "Weapons will glow white"); "White Weapon Glow", "Weapons will glow white");
static CatVar glowself(CV_SWITCH, "glow_self", "0", "Enable glow on self");
static CatVar rainbow(CV_SWITCH, "glow_self_rainbow", "1",
"Enable rainbow glow on self",
"Only visible in thirdperson!");
static CatVar glowR(CV_INT, "glow_self_r", "200", "Self glow red", "", 0, 255);
static CatVar glowG(CV_INT, "glow_self_g", "200", "Self glow green", "", 0,
255);
static CatVar glowB(CV_INT, "glow_self_b", "200", "Self glow blue", "", 0, 255);
struct ShaderStencilState_t struct ShaderStencilState_t
{ {
@ -241,6 +249,8 @@ rgba_t EffectGlow::GlowColor(IClientEntity *entity)
} }
break; break;
case ENTITY_PLAYER: case ENTITY_PLAYER:
if (ent->m_IDX == LOCAL_E->m_IDX && glowself && !rainbow)
return colors::FromRGBA8(glowR, glowG, glowB, 255);
if (health) if (health)
{ {
return colors::Health(ent->m_iHealth, ent->m_iMaxHealth); return colors::Health(ent->m_iHealth, ent->m_iMaxHealth);
@ -262,6 +272,8 @@ bool EffectGlow::ShouldRenderGlow(IClientEntity *entity)
ent = ENTITY(entity->entindex()); ent = ENTITY(entity->entindex());
if (CE_BAD(ent)) if (CE_BAD(ent))
return false; return false;
if (ent->m_IDX == LOCAL_E->m_IDX && !glowself)
return false;
switch (ent->m_Type) switch (ent->m_Type)
{ {
case ENTITY_BUILDING: case ENTITY_BUILDING: