Reactions, remote kick and better protections (#807)

* feat(Scripts): Complete GlobalPlayerBD
* feat(Scripts): add GPBD_Kicking
* feat(Scripts): start work on GPBD_FM_3
* feat(Scripts): add more to GPBD_FM_3
* feat(Scripts): complete GPBD_FM_3
* feat(Scripts): start work on GPBD_FM
* feat(Scripts): improve GPBD_FM
* feat(Scripts): complete GPBD_FM
* feat(Reactions): Add reactions
* feat(Protections): Improve protections
* feat(RemoteKick): Add remote kick
* feat(Stats): add KillsOnPlayers and DeathsByPlayers
* fix(Classes): Fix compiler warnings
This commit is contained in:
maybegreat48
2023-01-03 16:48:32 +00:00
committed by GitHub
parent 858b4d6b9f
commit 13ff1be75a
62 changed files with 1039 additions and 882 deletions

View File

@ -38,7 +38,7 @@ namespace big
CONTEXT_MENU_SETTINGS,
ESP_SETTINGS,
GUI_SETTINGS,
NOTIFICATION_SETTINGS,
REACTION_SETTINGS,
PROTECTION_SETTINGS,
DEBUG,
@ -89,7 +89,7 @@ namespace big
{ tabs::CONTEXT_MENU_SETTINGS, { "Context Menu", view::context_menu_settings}},
{ tabs::ESP_SETTINGS, { "ESP", view::esp_settings}},
{ tabs::GUI_SETTINGS, { "GUI", view::gui_settings}},
{ tabs::NOTIFICATION_SETTINGS, { "Notifications", view::notification_settings}},
{ tabs::REACTION_SETTINGS, { "Reactions", view::reaction_settings}},
{ tabs::PROTECTION_SETTINGS, { "Protection", view::protection_settings}},
{ tabs::DEBUG, { "Debug", nullptr }},
}}},

View File

@ -38,17 +38,17 @@ namespace big
component.SetParameter("MMATTR_DISCRIMINATOR", 1, constraint.value());
}
int state = 0;
rage::rlTaskStatus state{};
static rage::rlSessionInfo result_sessions[MAX_SESSIONS_TO_FIND];
m_active = true;
if (g_hooking->get_original<hooks::start_matchmaking_find_sessions>()(0, 1, &component, MAX_SESSIONS_TO_FIND, result_sessions, &m_num_sessions_found, &state))
{
while (state == 1)
while (state.status == 1)
script::get_current()->yield();
if (state == 3)
if (state.status == 3)
{
for (int i = 0; i < m_num_sessions_found; i++)
{

View File

@ -3,11 +3,15 @@
#include "rate_limiter.hpp"
class CVehicle;
class CPed;
class CNetGamePlayer;
class CPlayerInfo;
namespace rage
{
class snPlayer;
class snPeer;
class rlGamerInfo;
}
namespace big
@ -53,8 +57,15 @@ namespace big
bool never_wanted = false;
bool semi_godmode = false;
bool kill_loop = false;
bool explosion_loop = false;
bool freeze_loop = false;
bool ragdoll_loop = false;
bool rotate_cam_loop = false;
rate_limiter m_host_migration_rate_limit{ 1s, 20 };
rate_limiter m_play_sound_rate_limit{ 1s, 10 };
rate_limiter m_invites_rate_limit{ 10s, 2 };
bool exposed_desync_protection = false;
bool is_modder = false;