
fixes a bunch of return types that were seemingly copied from IDA without manual verification
22 lines
593 B
C++
22 lines
593 B
C++
#include "hooking.hpp"
|
|
#include "services/players/player_service.hpp"
|
|
#include "util/globals.hpp"
|
|
|
|
#include <netsync/nodes/player/CPlayerCameraDataNode.hpp>
|
|
#include <netsync/nodes/player/CPlayerGameStateDataNode.hpp>
|
|
|
|
namespace big
|
|
{
|
|
void hooks::write_player_camera_data_node(rage::netObject* player, CPlayerCameraDataNode* node)
|
|
{
|
|
g_hooking->get_original<hooks::write_player_camera_data_node>()(player, node);
|
|
|
|
if (g.spoofing.spoof_hide_spectate && g.player.spectating)
|
|
{
|
|
node->m_free_cam_pos_x += 50.0f;
|
|
node->m_free_cam_pos_y -= 50.0f;
|
|
node->m_camera_x -= 50.0f;
|
|
}
|
|
}
|
|
}
|