Code:
long entityOffset = this.GameMemory.ReadInt64(CGameOffset);
long playerOffset = this.GameMemory.ReadInt64(entityOffset + 0x11D8);
player_X = this.GameMemory.ReadFloat(playerOffset + 0x100); // old 0x210
player_Y = this.GameMemory.ReadFloat(playerOffset + 0x104); // old 0x214
player_Z = this.GameMemory.ReadFloat(playerOffset + 0x108); // old 0x218
player_D = this.GameMemory.ReadFloat(playerOffset + 0x240);
long posOffset = this.GameMemory.ReadInt64(playerOffset + 0x198);
player_X = this.GameMemory.ReadFloat(posOffset + 0x100);
player_Y = this.GameMemory.ReadFloat(posOffset + 0x104);
player_Z = this.GameMemory.ReadFloat(posOffset + 0x108);
Code:
int entityCount = this.GameMemory.ReadInt32(entityOffset + 0x688);
long entityEntry = this.GameMemory.ReadInt64(playerOffset + 0x410);
Code:
int EntityType = this.GameMemory.ReadInt32(entityEntry + 0x5C8);
if (EntityType == 0) continue;
int EntityId = this.GameMemory.ReadInt32(entityEntry + 0x620);
long _nameEntry = this.GameMemory.ReadInt64(entityEntry + 0x4E0);
String EntityName = this.GameMemory.ReadString(_nameEntry, this.GameMemory.ReadInt32(entityEntry + 0x4E8));
Code:
// Get Player Pos //
if (EntityType == 0x04 || EntityType == 0x05)
{
EntityX = this.GameMemory.ReadFloat(entityEntry + 0x100); // old 0x210
EntityY = this.GameMemory.ReadFloat(entityEntry + 0x104); // old 0214
EntityZ = this.GameMemory.ReadFloat(entityEntry + 0x108); // old 0218
EntitySpeed = this.GameMemory.ReadFloat(entityEntry + 0x2C8); // old 0x1D8;
EntityYaw = this.GameMemory.ReadFloat(entityEntry + 0x2E0); // old 0x1F0
}
// Vechicle Position //
else if (EntityType == 0x11 || EntityType == 0x72 || EntityType == 0x76)
{
EntityX = this.GameMemory.ReadFloat(entityEntry + 0x13F0);
EntityY = this.GameMemory.ReadFloat(entityEntry + 0x13F4);
EntityZ = this.GameMemory.ReadFloat(entityEntry + 0x13F8);
EntitySpeed = this.GameMemory.ReadFloat(entityEntry + 0x2C8);
}
else
{
// Try Get NPC Position //
EntityX = this.GameMemory.ReadFloat(entityEntry + 0x3C0);
if (EntityX == 0)
{
// Get Item Pos //
EntityX = this.GameMemory.ReadFloat(entityEntry + 0x13F0);
EntityY = this.GameMemory.ReadFloat(entityEntry + 0x13F4);
EntityZ = this.GameMemory.ReadFloat(entityEntry + 0x13F8);
}
else
{
// NPC Position //
EntityY = this.GameMemory.ReadFloat(entityEntry + 0x3C4);
EntityZ = this.GameMemory.ReadFloat(entityEntry + 0x3C8);
EntitySpeed = this.GameMemory.ReadFloat(entityEntry + 0x1D8);
EntityYaw = this.GameMemory.ReadFloat(entityEntry + 0x1F0);
}
}
// found this H1Z1 Reversal to solve car/player issues
long entityPositionOffset = this.GameMemory.ReadInt64(entityEntry + 0x198);
EntityX = this.GameMemory.ReadFloat(entityPositionOffset + 0x110);
EntityY = this.GameMemory.ReadFloat(entityPositionOffset + 0x114);
EntityZ = this.GameMemory.ReadFloat(entityPositionOffset + 0x118);
The Code What went wrong Dont Work= = pls help me