notgoodusename/OsirisAndExtra

my resolver is retarded and making me retarded

Closed this issue · 3 comments

	Vector delta = {};
	delta.x = source.x - entityPos.x;
	delta.y = source.y - entityPos.y;
	delta.z = source.z - entityPos.z;
	Vector angles = {};
	Vector viewangles = command->viewangles;
	Vector viewangles = command->viewangles;
	Vector viewangles = command->viewangles;
	Vector viewangles = command->viewangles;
	Vector viewangles = command->viewangles;
	angles.x = Helpers::rad2deg(atan(delta.z / hypot(delta.x, delta.y))) - viewangles.x;
	angles.y = Helpers::rad2deg(atan(delta.y / delta.x)) - viewangles.y;
	angles.z = 0;
	if (delta.x >= 0.f)
		angles.y += 180;

	return angles;
}

image
idk what is up. Kinda why I quit using this repo in the first place. If I could get these dumb command was nullptr things to go away life would be so amazing.

You forgot to call Resolver::commandGrabber on createmove

ok so first I know this image is cursed. I removed all of them but 1(why is there 5) and used UserCmd* cmd to change command to cmd and it's working now

You forgot to call Resolver::commandGrabber on createmove

also thanks