hl2sdk
hl2sdk copied to clipboard
CMoveData::m_flMaxSpeed is at the wrong offset
m_flMaxSpeed is at the wrong offset.
https://github.com/alliedmodders/hl2sdk/blob/c33f7155e9aff9573c20d86e10c8158425a3d67a/game/shared/igamemovement.h#L55
I found it in the member variable below it .
float m_flClientMaxSpeed;
I verified this by hooking CTFGameMovement::ProcessMovement( CBasePlayer *pBasePlayer, CMoveData *pMove ). m_flMaxSpeed was 0.0 and m_flClientMaxSpeed was 520.0 as it is set by this code
https://github.com/TheAlePower/TeamFortress2/blob/1b81dded673d49adebf4d0958e52236ecc28a956/tf2_src/game/shared/tf/tf_gamemovement.cpp#L315
I'm not sure how I would go about finding the exact member that was added to cause the variable to shift downwards and where, but I thought I would report it.