Looking for a dll base
I'm bringing my Xbox knowledge to PC. I'm just looking for a DLL base that is ready for my start hooking stuff.
*(int*)(dwPlayerBase + HealthOffset) = 9999;
int myHealth = *(int*)(dwPlayerBase + HealthOffset);
Vector3 CEntity::Pos()
{
return *(Vector3*)(DWORD(Offsets::Pos + (this->m_nIndex * 0x38EC)));
}
class CEntity
{
public:
DWORD Base = 0;
int m_nIndex = 0;
Vector3 Pos();
void GiveNoclip();
CEntity::CEntity(int nIndex);
void CEntity::SetPos(Vector3 Position);
void CEntity::SetUAV();
};
CEntity::CEntity(int nIndex)
{
this->m_nIndex = nIndex;
this->Base = Modules::dwBase + 0x38EC * nIndex;
}
void CEntity::GiveNoclip()
{
}
Vector3 CEntity::Pos()
{
return *(Vector3*)(DWORD(Offsets::Pos + (this->m_nIndex * 0x38EC)));
}
void CEntity::SetPos(Vector3 Position)
{
*(Vector3*)(DWORD(Offsets::Pos + (this->m_nIndex * 0x38EC))) = Position;
}
void CEntity::SetUAV()
{
*(int*)(DWORD(Offsets::UAV + (this->m_nIndex * 0x38EC))) = 1;
}
namespace Offsets
{
DWORD Lazer = 0x47CDF6;
DWORD Stats = 0x18E1078;
DWORD Pos = 0x01C2945C;
DWORD Fov = 0x59E4EC4;
DWORD UAV = 0x1C2C8BC;
DWORD ViewAngles = 0x1061C84;
}
void GiveNoclip(int nIndex)
{
0x01C2C778 + 0x38EC * nIndex;
}
int nGetLocalIndex()
{
return *(int*)0x08FD0F0;
}
bool bIsInGame()
{
return *(bool*)0x08DBD84;
}
void ForceHost()
{
*(int*)(0xC + *(int*)0x132FD24) = 1;
}
void SetFov(float FOV)
{
*(float*)Offsets::Fov = FOV;
}
while (!bIsInGame())
{
ForceHost();
Sleep(10);
}
pLocal = new CEntity(nGetLocalIndex());
if (GetAsyncKeyState(VK_INSERT) & 1)
savedPos = pLocal->Pos();
if (GetAsyncKeyState(VK_HOME) & 1)
{
pLocal->SetPos(savedPos);
}
SetFov(80);
pLocal->SetUAV();
Sleep(1);
for (int i = 0; i < 18; i++)
{
CEntity *pEntity = new CEntity(i);
if (pEntity->m_nIndex = pLocal->m_nIndex)
continue;
Vector3 AimbotAngle = CalcAngle(pLocal->Pos(), pEntity->Pos());
if (!AimbotAngle.bIsZero())
SetViewAngles(AimbotAngle);
}