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

Find internal frame lock #30

Closed
szapp opened this issue Aug 27, 2016 · 2 comments
Closed

Find internal frame lock #30

szapp opened this issue Aug 27, 2016 · 2 comments

Comments

@szapp
Copy link
Owner

szapp commented Aug 27, 2016

The engine must have some kind of frame lock on mouse movement implemented. Find it.

@szapp
Copy link
Owner Author

szapp commented Aug 27, 2016

    // MEM_Info(toStringf(MEM_ReadInt(10073048))); // 0x99B3D8 (flt_0099B3D8)

    const int oCNpc__GetTurnSpeed = 6818160; //0x680970
    var int v73; v73 = MEM_Timer.frameTimeFloat; // MEM_Timer.factorMotion;
    var int v39; CALL__thiscall(_@(hero), oCNpc__GetTurnSpeed); v39 = CALL_RetValAsInt();
    var int v79; v79 = MEM_ReadInt(10073048); // 0x99B3D8 (flt_0099B3D8)
    var int a2; a2 = mkf(2);

    v73 = mulf(divf(mulf(v39, v79), v73), a2);
    MEM_Info(ConcatStrings(ConcatStrings(toStringf(v73), " - "), toStringf(frameAdj)));

@szapp
Copy link
Owner Author

szapp commented Oct 13, 2016

Fix #30 implement proper mouse turn rate

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

No branches or pull requests

1 participant