I notice the other night how old I am getting and how I can't compete with kids with Jedi reflexes always snatching my favorite vehicle on the deploy screen So here are some goodies that allow you to auto deploy as soon as the spawn point become available:

Code:


class SomeDeployScreenClass
{
public:
char _0x000[0x260];
bool m_canSpawn;
static SomeDeployScreenClass* GetInstance()
{
return reinterpret_cast(*reinterpret_cast((*reinterpret_c ast((*reinterpret_cast(0x142812040)) + 0x030)) + 0x728));
}
};


usage: Just call this somewhere in your loop at the deploy screen just put the cursor on your favorite vehicle waiting to spawn and press the mapped key
Code:


void BF4::AutoJoinVehicle()
{
if ( !m_pLocalPlayer->OnDeployScreen( ) )
{
m_autoJoinVehicle = false;
return;
}

if (g_engine->GetInput()->GetVirtualKeyPress(VK_YourFavoriteKey))
{
m_autoJoinVehicle = true;
}

if ( m_autoJoinVehicle )
{
auto deployScreenSettings = SomeDeployScreenClass::GetInstance();
if (IsValidPtr(deployScreenSettings) && deployScreenSettings->m_canSpawn)
{
g_bf4->m_inputBuffersData[ConceptActivate] = 1;
m_autoJoinVehicle = false;
}
}
}




Original Writen by shellBullet in Battlefield 4 Category, the date of 25-06-2015 16:29.