If anyone could jot something up or point me in the right direction here... I want to learn how to take source codes (I hope to write my own some day =/) and compile them (even one) into a dll with a hook to make it work in the game... If ANYONE could just point me in the right direction there...
Also, the original creators of the hacks.... How the hell do they find these values that they use?
Code:
Code:
//=============================================================================
// Function: No Recoil
void NoRecoil(AcItem* pItem = NULL)
{
if (!pItem)
return;
AcRaycastWeapon* pRaycastWeapon = NULL;
if (pItem->IsA(AcRaycastWeapon::StaticClass()))
pRaycastWeapon = reinterpret_cast<AcRaycastWeapon*>(pItem);
else
return;
pRaycastWeapon->m_WeaponRecoilSettings.m_fEndYawMin = 0.0f;
pRaycastWeapon->m_WeaponRecoilSettings.m_fEndYawMax = 0.0f;
pRaycastWeapon->m_RangedWeaponTypeSettings.m_fMaxRange = 0.0f;
pRaycastWeapon->m_RangedWeaponTypeSettings.m_fRampDistance = 0.0f;
/* Return old values... */
}
...
NoRecoil(pPlayerController->m_HoldableItemManager->m_CurrentItem);
How did this coder find the names of these variables? like:
Code:
if (pItem->IsA(AcRaycastWeapon::StaticClass()))
pRaycastWeapon = reinterpret_cast<AcRaycastWeapon*>(pItem);
else
What process do you go through to find these values out?
Ammo, for example, is easy... You just freeze a value in memory that you find through the process of elimination via a UCE....
How did this coder figure out that the variable for the weapon being held was pRaycastWeapon?
Like I said if anyone can point me in the right direction... and if I can wrap my mind around it... I will practice this and post hacks...
MPGH Only hacks... (that's just how I am, dedicated to this forum =/) not that it means too much but still...
Thanks to anyone willing to feed my ignorance/curiosity in advance...