Geometrical (12-23-2012),Horror (10-12-2012),inmate (10-12-2012),mwxplayer (11-24-2012),rawr im a tiger (10-12-2012),Skinksteek (10-30-2012)
Well, first of all, this wasn't found by me.. cardoow reversed this a long ago. I just found the new offset...
Anyways.. it's pretty simple. You know those boxes the are shown on enemies when you're on the Reaper, Osprey, etc.? Now you can draw them all the time.
If you want to find the offset for a different version, just search for All References of Client_t+0x38 (Client Perk) on IDA or Olly... and you'll be lead to the function.Code:void FixBlindEye() { CClientInfo * pLocal = GetLocalClient(); //Get the Local Client (You) for(int i=0; i< 18; i++) { CClientInfo * pClient = GetClientByIndex(i); if(pClient != pLocal) //If the player is not you... if(pClient->Perk & 0x20) //Does the player has Blind Eye on? pClient->Perk = 0x0; //Yes? Then, turn it off. } } void DrawBoxes(){ DWORD dwCall = 0x5C3760; //Offset for 1.9.453 //Since this function is called by the game to draw the chopper boxes, //by default, it wouldn't draw on players with Blind Eye.. we have to fix that FixBlindEye(); //Call our function __asm{ push 0x0 call [dwCall] add esp, 0x4 } }
Example: On 1.9.453:
Client_t = 0x00AD69F8
0x00AD69F8 + 0x38 = 0xAD6A30 (Search for AD6A30)
PS: You need to hook some render function for this to work, otherwise it'll just crash.
Last edited by MarkHC; 10-14-2012 at 12:01 PM.
CoD Minion from 09/19/2012 to 01/10/2013
Geometrical (12-23-2012),Horror (10-12-2012),inmate (10-12-2012),mwxplayer (11-24-2012),rawr im a tiger (10-12-2012),Skinksteek (10-30-2012)
What address does GetLocalClient use? I've been trying to figure out a way to get the local player since it's not always the first one even if you're the host.
Also, I got an access violation at dwCall when I tried to use this. I tried using VirtualProtect as well.
"Unhandled exception at 0x005c3760 in test.exe: 0xC0000005: Access violation."
Last edited by superleecherz; 10-12-2012 at 01:31 AM.
Or set the flag on IsInGame.
CoD Minion from 09/19/2012 to 01/10/2013
Last edited by MarkHC; 10-13-2012 at 01:11 PM.
CoD Minion from 09/19/2012 to 01/10/2013
@-InSaNe-
you have the GetPlayerByIndex and GetLocalPlayer Function ?
what the name of this adrr ?
Code:DWORD dwCall = 0x5C3760
Last edited by luizimloko; 10-13-2012 at 01:42 PM.
You don't need those function actually.. they're just wrappers... here's how I do it:
And I'm not sure about the function name.. but it is the one that draw the boxes when you're on some killstreak...Code:client_t* Clients = ( client_t* ) Offsets.ClientInfo_OFFS; void cESP::FixBlindEye() { client_t* Local = Clients[CG->ClientNum]; for(int i = 0; i < 18; i++) { if(&Clients[i] != Local) { if(Clients[i].Perk & 0x20 || Clients[i].Perk & 0x40) Clients[i].Perk = 0x0; } } }
CoD Minion from 09/19/2012 to 01/10/2013
Last edited by MarkHC; 10-13-2012 at 04:38 PM.
CoD Minion from 09/19/2012 to 01/10/2013
Kenshin13 (10-14-2012)
barata55 (10-14-2012)