Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMoveType patch #118

Closed
wants to merge 1 commit into from
Closed

EMoveType patch #118

wants to merge 1 commit into from

Conversation

M3351AN
Copy link
Contributor

@M3351AN M3351AN commented Aug 27, 2024

It's a ghetto patch to EMoveType
In short, EMoveType struct maybe completely different from CSGO, so that chks before call movement functions isn't works properly
Just tried my best to obtain several movetype values as patches, the struct might have to be completely restructured in the future

@Exlodium
Copy link
Collaborator

        const std::int32_t nMoveType = Globals::m_pLocalPlayerPawn->m_nActualMoveType();

enum EMoveType : std::uint8_t
{
        MOVETYPE_NONE = 0,
        MOVETYPE_OBSOLETE,
        MOVETYPE_WALK,
        MOVETYPE_FLY,
        MOVETYPE_FLYGRAVITY,
        MOVETYPE_VPHYSICS,
        MOVETYPE_PUSH,
        MOVETYPE_NOCLIP,
        MOVETYPE_OBSERVER,
        MOVETYPE_LADDER,
        MOVETYPE_CUSTOM,
        MOVETYPE_LAST,
        MOVETYPE_INVALID,
        MOVETYPE_MAX_BITS = 5
};

CSGO style movetype is now called m_nActualMoveType

Here's also a dump from server.dll of the current enum.

I will not merge this

@Exlodium Exlodium closed this Aug 28, 2024
@Exlodium
Copy link
Collaborator

Will fix this issue later today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants