From 0ff99ececc8e5335c3d9a4f4242a5e4836d5c741 Mon Sep 17 00:00:00 2001 From: maybegreat48 <96936658+maybegreat48@users.noreply.github.com> Date: Wed, 14 Jun 2023 21:29:25 +0000 Subject: [PATCH] Update to 1.67 (#1407) --- metadata.json | 4 +- scripts/gtav-classes.cmake | 2 +- .../commands/player/kick/breakup_kick.cpp | 10 +- .../commands/player/toxic/ceo_kick.cpp | 4 +- .../player/toxic/kick_from_interior.cpp | 9 +- .../commands/player/toxic/send_to_island.cpp | 30 ------ .../commands/player/toxic/start_script.cpp | 16 ++-- src/backend/looped/self/dance_mode.cpp | 3 - src/backend/looped/self/off_radar.cpp | 8 +- .../looped/system/desync_kick_protection.cpp | 29 +----- src/backend/looped/tunables/disable_phone.cpp | 4 +- src/backend/looped/vehicle/ls_customs.cpp | 16 ++-- src/backend/script_patches.hpp | 26 ++--- src/byte_patch_manager.cpp | 4 - src/core/enums.hpp | 79 ++++++++-------- src/core/globals.hpp | 3 +- src/core/scr_globals.hpp | 60 ++++++------ src/gta_pointers.hpp | 11 --- src/hooking.cpp | 7 -- src/hooks/info/get_network_event_data.cpp | 2 +- src/hooks/misc/queue_dependency.cpp | 47 +++++++++- src/hooks/protections/can_apply_data.cpp | 4 +- .../constraint_attachment_crash.cpp | 12 --- .../protections/fragment_physics_crash.cpp | 9 -- .../protections/infinite_train_crash.cpp | 21 ----- .../protections/script_event_handler.cpp | 16 +--- .../serialize_ped_inventory_data_node.cpp | 50 ---------- .../serialize_vehicle_gadget_data_node.cpp | 50 ---------- src/pointers.cpp | 94 +++---------------- src/services/gui/gui_service.cpp | 2 - src/services/gui/gui_service.hpp | 1 + src/services/players/player_service.cpp | 2 +- src/services/tunables/tunables_service.cpp | 8 +- src/util/entity.hpp | 3 +- src/util/globals.hpp | 9 +- src/util/scripts.hpp | 8 +- src/util/session.hpp | 15 +-- src/views/network/missions/hunt_the_beast.hpp | 21 +++-- src/views/network/view_missions.cpp | 33 ++++--- src/views/network/view_session.cpp | 7 +- src/views/players/player/player_kick.cpp | 6 +- src/views/players/player/player_toxic.cpp | 2 - .../settings/view_protection_settings.cpp | 1 - 43 files changed, 262 insertions(+), 486 deletions(-) delete mode 100644 src/backend/commands/player/toxic/send_to_island.cpp delete mode 100644 src/hooks/protections/constraint_attachment_crash.cpp delete mode 100644 src/hooks/protections/infinite_train_crash.cpp delete mode 100644 src/hooks/protections/serialize_ped_inventory_data_node.cpp delete mode 100644 src/hooks/protections/serialize_vehicle_gadget_data_node.cpp diff --git a/metadata.json b/metadata.json index 9efb70cb..73dc0dee 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "game": { - "online": "1.66", - "build": "2845" + "online": "1.67", + "build": "2944" } } \ No newline at end of file diff --git a/scripts/gtav-classes.cmake b/scripts/gtav-classes.cmake index ade16681..702ea39d 100644 --- a/scripts/gtav-classes.cmake +++ b/scripts/gtav-classes.cmake @@ -3,7 +3,7 @@ include(FetchContent) FetchContent_Declare( gtav_classes GIT_REPOSITORY https://github.com/Yimura/GTAV-Classes.git - GIT_TAG 9de17746d2e7492725d2e7430ad0f27c05b6c2f0 + GIT_TAG 7b8bfba701d70e6a503c0767a5bc3b6c4c0294b8 GIT_PROGRESS TRUE CONFIGURE_COMMAND "" BUILD_COMMAND "" diff --git a/src/backend/commands/player/kick/breakup_kick.cpp b/src/backend/commands/player/kick/breakup_kick.cpp index e666a197..261b9111 100644 --- a/src/backend/commands/player/kick/breakup_kick.cpp +++ b/src/backend/commands/player/kick/breakup_kick.cpp @@ -21,9 +21,9 @@ namespace big virtual void execute(player_ptr player, const std::vector& _args, const std::shared_ptr ctx) { rage::snMsgRemoveGamersFromSessionCmd cmd{}; - cmd.m_session_id = gta_util::get_network()->m_game_session_ptr->m_rline_session.m_session_id; - cmd.m_num_peers = 1; - cmd.m_peer_ids[0] = player->get_session_peer()->m_peer_data.m_peer_id_2; + cmd.m_session_id = gta_util::get_network()->m_game_session_ptr->m_rline_session.m_session_id; + cmd.m_num_peers = 1; + cmd.m_handles[0] = player->get_net_data()->m_gamer_handle; if (g.session.show_cheating_message) cmd.m_unk = 19; @@ -39,7 +39,7 @@ namespace big if (plyr->id() != player->id()) g_pointers->m_gta.m_send_remove_gamer_cmd(gta_util::get_network()->m_game_session_ptr->m_net_connection_mgr, g_pointers->m_gta.m_get_connection_peer(gta_util::get_network()->m_game_session_ptr->m_net_connection_mgr, - (int)plyr->get_session_player()->m_player_data.m_peer_id_2), + plyr->get_session_player()->m_player_data.m_peer_id_2), gta_util::get_network()->m_game_session_ptr->m_connection_identifier, &cmd, 0x1000000); @@ -55,7 +55,7 @@ namespace big { g_pointers->m_gta.m_send_remove_gamer_cmd(gta_util::get_network()->m_game_session_ptr->m_net_connection_mgr, g_pointers->m_gta.m_get_connection_peer(gta_util::get_network()->m_game_session_ptr->m_net_connection_mgr, - (int)plyr->get_session_player()->m_player_data.m_peer_id_2), + plyr->get_session_player()->m_player_data.m_peer_id_2), gta_util::get_network()->m_game_session_ptr->m_connection_identifier, &cmd, 0x1000000); diff --git a/src/backend/commands/player/toxic/ceo_kick.cpp b/src/backend/commands/player/toxic/ceo_kick.cpp index 33de55f2..cc563021 100644 --- a/src/backend/commands/player/toxic/ceo_kick.cpp +++ b/src/backend/commands/player/toxic/ceo_kick.cpp @@ -3,6 +3,8 @@ #include "natives.hpp" #include "pointers.hpp" +#include