Results 1 to 2 of 2
  1. #1
    dotakoder1337's Avatar
    Join Date
    Oct 2018
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0

    Post Updating offsets Cod4

    Hi all, I am a beginner to game hacking. I read lots of tuts and guides but that didnt help me with what I need. So, I downloaded a source of a cheat for CoD4 and it has got old offsets that don't work anymore. I need to update them so that cheat works perfectly. But the problem is i don't understand where to look for Such offsets. So here's the code:
    Code:
    uintptr_t addr_clientinfoArray = 0x831270;
    uintptr_t off_name = 0x0C;
    uintptr_t off_team = 0x6AC;
    uintptr_t off_positionflag = 0x470;
    unsigned int size_clientInfo = 0x4CC;
    
    uintptr_t addr_cg_t = 0x01288500;
    uintptr_t off_ingame = 0x30;
    uintptr_t off_health = 0x1A0;
    uintptr_t cg_t_size = 0x274;
    
    uintptr_t refdef_t = 0x078f600;
    uintptr_t off_viewAngles = 0x04098; // from different class but easily offset from refdef
    uintptr_t off_position = 0x40A4; // same
    
    uintptr_t cg_ents = 0x8472D8;
    unsigned int size_c_entity = 0x1DC;
    uintptr_t off_clientNum = 0xCC;
    uintptr_t off_IsValidEnt = 0x2; //BYTE
    uintptr_t off_bAlive = 0x1C0;
    
    uintptr_t addr_cg_s = 0x0746338;
    uintptr_t off_cg_clientNum = 0x0;
    
    entity GetPlayerData()
    {
    	entity ent;
    	ent.health = *(int*)(addr_cg_t + off_health);
    	ent.isInGame = *(int*)(addr_cg_t + off_ingame);
    	ent.clientNum = *(int*)(addr_cg_s); //offset 0x0
    	ent.team = *(int*)(addr_clientinfoArray + ent.clientNum * size_clientInfo + off_team);
    	fov[0] = *(float*)(0x078F610);
    	fov[1] = *(float*)(0x078F614);
    
    	viewAngles.x = *(float*)(0x0793698);
    	viewAngles.y = *(float*)(0x0793698 + 4);
    	viewAngles.z = *(float*)(0x0793698 + 8);
    	ent.pos = *(vec3*)(0x07936A4);
    
    	return ent;
    }
    
    
    void ESP::UpdateResolution()
    {
    	resolution[0] = *(int*)0x078F608;
    	resolution[1] = *(int*)0x078F608 + 4;
    	screencenter[0] = resolution[0] / 2;
    	screencenter[1] = resolution[1] / 2;
    	bGotRes = true;
    I don't need you to give me just fresh offsets without telling where you found them. I just want to know where to look for them so that I or any new beginner don't need to ask it here or anywhere else. Thanks.

    P.s. The health offset is good(I found it with CE)
    Last edited by dotakoder1337; 06-22-2020 at 03:36 PM.

  2. #2
    dotakoder1337's Avatar
    Join Date
    Oct 2018
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    I have been able to find the offsets for some but not for all of them

    Code:
    uintptr_t addr_clientinfoArray = 0x839270;   <<-- Probably correct
    uintptr_t off_name = 0x0C /14 ;
    uintptr_t off_team = 0x80/6AC;
    uintptr_t off_positionflag = 0x470;
    unsigned int size_clientInfo = 0x4CC;  <<-- Correct
    
    uintptr_t addr_cg_t = 0x01288500;
    uintptr_t off_ingame = 0x30;
    uintptr_t off_health = 0x1A0; <<-- Correct
    uintptr_t cg_t_size = 0x274; 
    
    uintptr_t refdef_t = 0x00797380  
    uintptr_t off_viewAngles = 0x04098; // from different class but easily offset from refdef
    uintptr_t off_position = 0x40A4; // same
    
    uintptr_t cg_ents = 0x84F2D8   <<-- Correct
    unsigned int size_c_entity = 0x1DC; <<-- Correct
    uintptr_t off_clientNum = 0xCC;
    uintptr_t off_IsValidEnt = 0x2; //BYTE
    uintptr_t off_bAlive = 0x1C0;
    
    uintptr_t addr_cg_s = 0x074A908;   <<-- Correct
    uintptr_t off_cg_clientNum = 0x0;

Similar Threads

  1. Update Offset's
    By luizimloko in forum CrossFire Latin America / Brazil Hack Source Code
    Replies: 8
    Last Post: 04-20-2012, 05:45 PM
  2. [Patched] Updated offsets
    By Linow916 in forum CrossFire Latin America / Brazil Hacks
    Replies: 17
    Last Post: 04-19-2012, 06:14 AM
  3. (Help) How can i update my COD4 v1.0 ?
    By SandYAN in forum Call of Duty Modern Warfare Help
    Replies: 0
    Last Post: 02-19-2012, 02:45 PM
  4. [Source Code] CrossFire Updated Offsets
    By Takari in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 28
    Last Post: 02-27-2011, 01:48 PM
  5. [MW2] Updated offsets(.195 patch)
    By Hell_Demon in forum C++/C Programming
    Replies: 5
    Last Post: 05-04-2010, 05:47 PM