Player
Player
h>
#include <vector>
#include <memory>
#include <math.h>
#include "player.h"
#include "com.dts.freefireth"
Vector3 Player::GetPosition()
{
coords_t coords;
unsigned int coords_offset = 0x34;
ReadMember(coords_offset, &coords, sizeof(coords));
return Vector3(coords);
}
std::unique_ptr<Player> Player::GetClosestEnemy()
{
unsigned int player_addr;
std::unique_ptr<Player> closest_player;
Vector3 my_pos = GetPosition();
bool Player::IsShooting()
{
bool is_shooting;
ReadMember(0x224, &is_shooting);
return is_shooting;
}