Simple WH Source - 2D Boxes
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.
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.
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.
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.




