a2x / cs2-dumper

Counter-Strike: 2 Offset Dumper
MIT License
817 stars 94 forks source link

Offsets are wrong #154

Closed x3in closed 2 months ago

x3in commented 2 months ago

Lots of offsets in client.dll are incorrect.

To name a few: Sanitized Player name is 0x630 not the 0x7* value Bone Array Health
pGameSceneNode

Is probably much more broken than just those.

x3in commented 2 months ago

image

x3in commented 2 months ago

image Seems the pPlayerController was updated. The 0x748 offset is entirely empty. And the sanitized name is now directly stored at the 0x640 offset. Instead of being a pointer

a2x commented 2 months ago

Thanks for letting me know. I missed that some of the fields moved around in the schema related structures.

Could you let me know if all is fine now?

x3in commented 2 months ago

Thanks for letting me know. I missed that some of the fields moved around in the schema related structures.

Could you let me know if all is fine now?

I don't think so. sanitized player name is now at 0x630 and I think CSPlayerPawn + 0x7EB is iHealth now. It looks like the structure is very off what it should be.

a2x commented 2 months ago

Ok. I've got a meeting in a few minutes, so I'll take a closer look afterwards.

a2x commented 2 months ago

There are no issues for me.

I can get health by reading local player pawn + 0x324 (m_iHealth) and player name by reading local player controller + 0x630 (m_iszPlayerName).

FYI, m_sSanitizedPlayerName is now at 0x740.

x3in commented 2 months ago

There are no issues for me.

I can get health by reading local player pawn + 0x324 (m_iHealth) and player name by reading local player controller + 0x630 (m_iszPlayerName).

FYI, m_sSanitizedPlayerName is now at 0x740.

You are right about sanitized player name ptr, being at 0x740. However reading PlayerPawn + 0x324 does not get m_iHealth. image

a2x commented 2 months ago
const auto local_player_pawn = process::read_memory<uint64_t>(client_base + 0x180DB18);
const auto health = process::read_memory<int32_t>(local_player_pawn + 0x324);

printf("health: %d\n", health);

https://github.com/a2x/cs2-dumper/blob/3f6c8940978c16ea9a92714437b53b2ed3ffbd65/output/client.dll.hpp#L5725

image

x3in commented 2 months ago

Weird, just dumped and recompiled and now 0x324 is working for me as well. Strange...

x3in commented 2 months ago

Only issue now is something changed with the bone array.

cezacs1 commented 2 months ago

still not working with this offsets

QQ3028828376 commented 2 months ago

What is the bone point offset?

QQ3028828376 commented 2 months ago

Can the author update cs2-dumper.exe?