Welcome, Guest.

Author Topic: Gmod ClientModeShared::CreateMove confusion  (Read 922 times)

Offline grey10110

  • Posts: 8
    • View Profile
Gmod ClientModeShared::CreateMove confusion
« on: July 26, 2022, 08:53:28 PM »
Hi,

Im trying to find ClientModeShared::CreateMove and i found a very similar function at index 25 of ClientModeShared's vtable:
-Decompilation-

-Source SDK-


But the "getLocalPlayer" function return a C_WeaponSWEP object instead of the localPlayer.
I suppose this is in fact not CreateMove but im unsure and i dont really know where to search for it if this is the case.

Can somebody help me on this please ?

(btw im on the x86_64 branch)

Offline KittoniuM

  • Administrator
  • *
  • Posts: 1276
    • View Profile
Re: Gmod ClientModeShared::CreateMove confusion
« Reply #1 on: July 27, 2022, 02:42:14 AM »
I don't remember what i used to find index, maybe just bruteforcing..
look through leaked 2017 source engine files for createmove uses and nearby strings... vguiscreenmode showmodelviewermode are similar  to  them

Offline grey10110

  • Posts: 8
    • View Profile
Re: Gmod ClientModeShared::CreateMove confusion
« Reply #2 on: July 28, 2022, 05:04:21 AM »
I've managed to find it! It was because of those _guard_check_icall inserted between functions that i couldn't find it (they break the function order from the SDK)

So i just decompiled everything and manually found it.
« Last Edit: August 07, 2022, 05:36:47 PM by grey10110 »


Total Registered Members:





2017-2023 BigPackets. All rights reserved. All other trademarks, logos and copyrights are the property of their respective owners. This site is not associated with any company in any way.