intervention61 (10-16-2011),monz (06-30-2011),PornFlakesreg (02-18-2011),Skyline. (01-25-2011),^...,^ (01-08-2011)
Since we know after cod4 the crosshairclientnum from cg don't counts on higher distance we need to use something more tricky.
credits goes to Tamimego and the quake sdk like always.Code:void (*CG_Trace)(Trace* Trace, vec3_t Start, vec3_t End, int skipNumber, int mask, int a6, int a7) = (void (__cdecl *)(Trace* , vec3_t , vec3_t , int , int , int , int ))0x00438A60; struct Trace { char z_crap[16]; float fraction; char z_crap2[8]; WORD solid; WORD allsolid; int entityNum; int unknow; char z_crap3[68]; }; int (__cdecl *k_AttackOn)() = (int (__cdecl *)())0x7FCF60; int (__cdecl *k_AttackOff)() = (int (__cdecl *)())0x7FD030; Trace crosshair_trace; int CAimbot::ScanCrosshairEntity( ) { vec3_t angle, end; VectorCopy( cg->refdef.Location, angle); VectorMA( angle, 131072, cg->refdef.ViewAxis[0], end ); CG_Trace( &crosshair_trace, angle, end, 0, 0x280B001, 0, 0 ); if(crosshair_trace.entityNum < 32 ) { return crosshair_trace.entityNum; } return -1; } bool CAimbot::TriggerBot( ) { int CrosshairClient = ScanCrosshairEntity( ); static int lastShotTime = 0; int GetTick = GetTickCount( ); if(ClientInfo[CrosshairClient].Team != ClientInfo[ PlayerSnap->clientNum ].Team || ClientInfo[CrosshairClient].Team == TEAM_FREE) { if ( !lastShotTime && CrosshairClient >=0 ) { lastShotTime = GetTick; k_AttackOn( ); return true; } else if(GetTick - lastShotTime > 100 ) { lastShotTime = 0; k_AttackOff( ); return false; } else if (lastShotTime != 0) { return true; } } return false; }
intervention61 (10-16-2011),monz (06-30-2011),PornFlakesreg (02-18-2011),Skyline. (01-25-2011),^...,^ (01-08-2011)
ummm i love how ur a newb here (the tag) and in uc ur a god
lolz nice post thanks just waht i was looking for +plus a good name
Where am I meant to put this?
Why bother asking if you don't know reverse engineering and C++?
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]
thanks for the info sir
[MPGH]master131 (01-25-2011)
CoD Minion: Jan 13th 2011 to April 11 2011
MMORPG Minion Since: March 28th 2011 to April 11 2011
Don't be afraid to rep, you aren't loosing anything!
Don't forget your P&Q's. Press the thanks button if someone has helped.
jamesa1994@hotmail.com
ok ive stablished that its suposed 2 be in a txt file (DUH) but where do i put the text file ?
soz 4 being a noob
Last edited by fireup27; 02-16-2011 at 12:44 AM.