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

createmove stutter fix #4

Closed
auzw opened this issue Nov 13, 2021 · 2 comments
Closed

createmove stutter fix #4

auzw opened this issue Nov 13, 2021 · 2 comments

Comments

@auzw
Copy link

auzw commented Nov 13, 2021

since 2020 june createmove hook causes stuttering when returning false. so you should set your local viewangles to the cmd viewangles in order to fix this issue.

code:
`

bool __stdcall hooks::createMove::hooked(float inputFrame, CUserCmd* cmd)
{	
original(inputFrame, cmd);

if (!cmd || !cmd->m_commandNumber)
	return false;

game::localPlayer = reinterpret_cast<Player_t*>(interfaces::entList->getClientEntity(interfaces::engine->getLocalPlayer()));

if (original(inputFrame, cmd))
	interfaces::prediction->setLocalViewangles(cmd->m_viewangles);

`

@Bartis1313
Copy link
Owner

Right, forgive my laziness and literally not going through state of run command/prediction based stuff for reversal part.
Also next time if you can, create pull request for fix.

@auzw
Copy link
Author

auzw commented Nov 14, 2021

okay, i don't really use github so i don't know how to make a pr but im gonna try next time xD

@auzw auzw closed this as completed Nov 14, 2021
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

No branches or pull requests

2 participants