Well that shouldn't be too hard :\
Get the current weapon pointer, this code gets the weapon id, if it's the knife it checks if the bool at pWeapon + 0xAB0 is true, if it is then it forces an attack :3
I got this script from A programmar but how do i make it work to use in tf2 can someone help me?
Heres the code how do i make it hack tf2?its supposed to auto backstab.
also heres the link https://www.mpgh.net/forum/426-team-f...py-script.html
code:
if ( iGetWeaponID( pBaseWeapon ) == WPN_Knife )
{
if (*(MakePtr( bool*, pBaseWeapon, gPointers.m_bReadyToBackstab )))
pCommand->buttons |= IN_ATTACK;
}
Current m_bReadyToBackstab offset is 0xAB0
Well that shouldn't be too hard :\
Get the current weapon pointer, this code gets the weapon id, if it's the knife it checks if the bool at pWeapon + 0xAB0 is true, if it is then it forces an attack :3
Ah we-a blaze the fyah, make it bun dem!
so replace getweaponID with the weapon name? i know u have to learn coding but if u know can u tell me?