Play audio on voice chat and more (#1053)

* feat(VC): audio through voice chat
* fix(BlackHole): remove unnecessary cleanup
* fix(Formatting): fix formatting for initializer lists
* feat(LSC): reimplement LSC
* feat(Protections): add (untested) protections for vehicle kick and remote teleport
This commit is contained in:
maybegreat48
2023-03-09 12:23:01 +00:00
committed by GitHub
parent a44c74b869
commit e5aa39dd35
44 changed files with 806 additions and 322 deletions

View File

@ -1,9 +1,9 @@
#include "core/data/command_access_levels.hpp"
#include "core/data/language_codes.hpp"
#include "core/scr_globals.hpp"
#include "natives.hpp"
#include "services/player_database/player_database_service.hpp"
#include "views/view.hpp"
#include "natives.hpp"
#include <script/globals/GPBD_FM.hpp>
#include <script/globals/GPBD_FM_3.hpp>
@ -16,9 +16,9 @@ namespace big
if (ImGui::TreeNode("INFO"_T.data()))
{
components::button("Open SC Overlay", [] {
int gamerHandle;
NETWORK::NETWORK_HANDLE_FROM_PLAYER(g_player_service->get_selected()->id(), &gamerHandle, 13);
NETWORK::NETWORK_SHOW_PROFILE_UI(&gamerHandle);
uint64_t gamerHandle[13];
NETWORK::NETWORK_HANDLE_FROM_PLAYER(g_player_service->get_selected()->id(), (Any*)&gamerHandle, 13);
NETWORK::NETWORK_SHOW_PROFILE_UI((Any*)&gamerHandle);
});
ImGui::Text("PLAYER_INFO_ID"_T.data(), g_player_service->get_selected()->id());

View File

@ -15,9 +15,6 @@ namespace big
components::player_command_button<"breakup">(g_player_service->get_selected());
ImGui::SameLine();
components::command_checkbox<"breakupcheating">();
components::disable_unless(std::not_fn(is_session_host), [] {
components::player_command_button<"lckick">(g_player_service->get_selected());
});
components::player_command_button<"bailkick">(g_player_service->get_selected());
ImGui::SameLine();

View File

@ -1,5 +1,6 @@
#include "script/globals/GPBD_FM_3.hpp"
#include "util/scripts.hpp"
#include "util/vehicle.hpp"
#include "views/view.hpp"
namespace big