Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Another Question...
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Lodan
Newbie cheater
Reputation: 0

Joined: 21 Mar 2015
Posts: 14

PostPosted: Sun Mar 22, 2015 9:50 pm    Post subject: Reply with quote

They deleted my first post for say the name of the game but this time wasnt me. =)
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Mar 22, 2015 10:57 pm    Post subject: Reply with quote

Lodan wrote:
They deleted my first post for say the name of the game but this time wasnt me. =)


I deleted the picture from the post with the name. You were making the effort not to mention it so will let it slide. Razz

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Lodan
Newbie cheater
Reputation: 0

Joined: 21 Mar 2015
Posts: 14

PostPosted: Mon Mar 23, 2015 2:15 pm    Post subject: Reply with quote

Hi guys, i tried almost everything in this forum to find my hp adress but failure.
Then i will show you the code that acess the hp in my hack.
lets see if you can found the right adress to acess the HP.

Lets started:

private Int64 CGameOffset = 0x142AEC018;

long entityOffset = this.GameMemory.ReadInt64(CGameOffset);
long playerOffset = this.GameMemory.ReadInt64(entityOffset + 0x11D8);

long entityEntry = this.GameMemory.ReadInt64(playerOffset + 0x410);


And this is my code for read HP player

// Player //
if (EntityType == 0x04)
{
// Show HP

long num22 = this.GameMemory.ReadInt64(entityEntry + 0x4068L);
uint num23 = this.GameMemory.ReadUInt32(num22);
for (uint j = 1; (num23 != 0x30) && (j < 50); j++)
{
num22 = this.GameMemory.ReadInt64(num22 + 0xf8L);
num23 = this.GameMemory.ReadUInt32(num22);
}
uint playerHP = this.GameMemory.ReadUInt32(num22 + 0xb0L) / 100;

int Hue = (int)(120f * (float)playerHP / 100f);
Color color = ColorTranslator.FromWin32(ColorHLSToRGB(Hue, 120, 240)); // H,L,S;
string playerNameHP = weapon + EntityName + " " + playerHP.ToString() + "%";
if (ShowPlayers) this.EntityToScreen(new Vector3(EntityX, EntityY + 1f, EntityZ), playerNameHP, color, true, false, BoxedPlayers, 2f, EntityYaw, EntityPitch);
//if (ShowPlayers) this.EntityToScreen(new Vector3(EntityX, EntityY + 1f, EntityZ), EntityName, Color.SkyBlue, true, false, BoxedPlayers, 2f, EntityYaw, EntityPitch);
}



Then i ask you which is the adress for HP player ??????
Rep for who get it...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites