alliedmodders/hl2sdk

CMoveData::m_flMaxSpeed is at the wrong offset

bottiger1 opened this issue · 0 comments

m_flMaxSpeed is at the wrong offset.

float m_flMaxSpeed;

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.