chore: remove session name spoof (#1184)

This commit is contained in:
Andreas Maerten 2023-04-04 00:07:15 +02:00 committed by GitHub
parent 042ec19495
commit a6b99ea481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 387 additions and 415 deletions

View File

@ -329,9 +329,6 @@ namespace big
bool player_magnet_enabled = false; bool player_magnet_enabled = false;
int player_magnet_count = 32; int player_magnet_count = 32;
bool is_team = false; bool is_team = false;
bool name_spoof_enabled = false;
bool advertise_menu = false;
std::string spoofed_name = "";
bool join_in_sctv_slots = false; bool join_in_sctv_slots = false;
const char chat_command_prefix = '/'; const char chat_command_prefix = '/';
@ -370,7 +367,7 @@ namespace big
bool show_cheating_message = false; bool show_cheating_message = false;
bool anonymous_bounty = true; bool anonymous_bounty = true;
NLOHMANN_DEFINE_TYPE_INTRUSIVE(session, local_weather, override_time, override_weather, custom_time, chat_force_clean, log_chat_messages, log_text_messages, decloak_players, force_session_host, force_script_host, player_magnet_enabled, player_magnet_count, is_team, name_spoof_enabled, advertise_menu, spoofed_name, join_in_sctv_slots, kick_chat_spammers, kick_host_when_forcing_host, explosion_karma, damage_karma, disable_traffic, disable_peds, force_thunder, block_ceo_money, randomize_ceo_colors, block_jobs, block_muggers, block_ceo_raids, send_to_apartment_idx, send_to_warehouse_idx, chat_commands, chat_command_default_access_level, show_cheating_message, anonymous_bounty) NLOHMANN_DEFINE_TYPE_INTRUSIVE(session, local_weather, override_time, override_weather, custom_time, chat_force_clean, log_chat_messages, log_text_messages, decloak_players, force_session_host, force_script_host, player_magnet_enabled, player_magnet_count, is_team, join_in_sctv_slots, kick_chat_spammers, kick_host_when_forcing_host, explosion_karma, damage_karma, disable_traffic, disable_peds, force_thunder, block_ceo_money, randomize_ceo_colors, block_jobs, block_muggers, block_ceo_raids, send_to_apartment_idx, send_to_warehouse_idx, chat_commands, chat_command_default_access_level, show_cheating_message, anonymous_bounty)
} session{}; } session{};
struct settings struct settings

View File

@ -152,31 +152,6 @@ namespace big
}); });
} }
components::sub_title("REMOTE_NAME_SPOOFING"_T);
ImGui::Checkbox("SPOOF_PLAYER_NAMES"_T.data(), &g.session.name_spoof_enabled);
if (ImGui::IsItemHovered())
ImGui::SetTooltip("SPOOF_PLAYER_NAMES_DESC"_T.data());
if (g.session.name_spoof_enabled)
{
ImGui::Checkbox("ADVERTISE_YIMMENU"_T.data(), &g.session.advertise_menu);
if (ImGui::IsItemHovered())
ImGui::SetTooltip("ADVERTISE_YIMMENU_DESC"_T.data());
if (!g.session.advertise_menu)
{
constexpr size_t name_size = RTL_FIELD_SIZE(rage::rlGamerInfo, m_name);
static char name[name_size];
strcpy_s(name, sizeof(name), g.session.spoofed_name.c_str());
ImGui::Text("PLAYER_SPOOFED_NAME"_T.data());
components::input_text("##username_input", name, sizeof(name));
if (name != g.session.spoofed_name)
g.session.spoofed_name = std::string(name);
}
}
components::sub_title("ALL_PLAYERS"_T); components::sub_title("ALL_PLAYERS"_T);
ImGui::Checkbox("OFF_THE_RADAR"_T.data(), &g.session.off_radar_all); ImGui::Checkbox("OFF_THE_RADAR"_T.data(), &g.session.off_radar_all);
ImGui::SameLine(); ImGui::SameLine();