feat(Spectate): Why did I ever use signature

This commit is contained in:
Yimura 2022-02-01 23:14:58 +01:00
parent 8902ba8b8c
commit b5c12a12bf
4 changed files with 2 additions and 12 deletions

View File

@ -17,7 +17,7 @@ namespace big
{
bReset = true;
g_pointers->m_spectate_player(false, -1);
NETWORK::NETWORK_SET_IN_SPECTATOR_MODE(false, -1);
HUD::SET_MINIMAP_IN_SPECTATOR_MODE(false, -1);
}
@ -26,7 +26,7 @@ namespace big
Ped target = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_player_service->m_selected_player->id());
g_pointers->m_spectate_player(true, target);
NETWORK::NETWORK_SET_IN_SPECTATOR_MODE(true, target);
HUD::SET_MINIMAP_IN_SPECTATOR_MODE(true, target);
bReset = false;

View File

@ -34,6 +34,4 @@ namespace big::functions
);
using send_event_ack = void(rage::netEventMgr* event_manager, CNetGamePlayer* source_player, CNetGamePlayer* target_player, int event_index, int event_handled_bitset);
// Received Event Signatures END
using spectate_player = bool(bool toggle, Ped player);
}

View File

@ -168,12 +168,6 @@ namespace big
memset(spectator_check, 0x90, 0x4);
});
// Spectate Player
main_batch.add("SP", "48 89 5C 24 ? 57 48 83 EC 20 41 8A F8 84 C9", [this](memory::handle ptr)
{
m_spectate_player = ptr.as<decltype(m_spectate_player)>();
});
// Scripted Game Event Handler
main_batch.add("SGEH", "40 53 48 81 EC ? ? ? ? 44 8B 81 ? ? ? ? 4C 8B CA 41 8D 40 FF 3D ? ? ? ? 77 42", [this](memory::handle ptr)
{

View File

@ -71,8 +71,6 @@ namespace big
// Received Event Signatures END
PVOID m_send_net_info_to_lobby{};
functions::spectate_player* m_spectate_player{};
};
inline pointers *g_pointers{};