Need help: Race condition

Posts 1–6 of 6 · Page 1 of 1
Need help: Race condition
Hello, guys I'd like to do Aim and RCS but it should work independently. I made it by 2 different threads.
Code:
void Start1()
{
	while (true)
	{
		AimBot.Start();
		Sleep(2);
	}
}
Code:
void Start2()
{
	while (true)
	{
		RCS.Start();
		Sleep(5);
	}
}
The I write vectors into the memory:
Code:
	Meme.Write<Vector>(ClientState + Offsets.m_dwViewAngle, AimVec);
	        Meme.Write<Vector>(ClientState + Offsets.m_dwViewAngle, RCSVec);
And I think that because of this, it turns out that one of the vectors is not recorded. In game I can see that sometimes Aim and RCS are working OK, but sometimes I see that RCS doesn't work with Aimlock.
Who knows how to fix this asynchrony?
Do RCS in aimbot code ? Seriously separate aim and rcs is kinda useless (?). You're trying to write 2 different addresses in the same time, so it wont work perfectly.
Quote Originally Posted by armez47 View Post
Do RCS in aimbot code ? Seriously separate aim and rcs is kinda useless (?). You're trying to write 2 different addresses in the same time, so it wont work perfectly.
I know... But i need that rcs working independently even when aim has no target. I'd like to make AimAssist that it works with low fov and rcs working always
Quote Originally Posted by MIXA066 View Post
I know... But i need that rcs working independently even when aim has no target. I'd like to make AimAssist that it works with low fov and rcs working always
Create vars like isAiming etc. In the Aim/RCS functions check for it. Tbh incross aimassist is better :s .
Quote Originally Posted by armez47 View Post
Create vars like isAiming etc. In the Aim/RCS functions check for it. Tbh incross aimassist is better :s
I didn't see any samles about it. And I tryed to turn off rcs, while aim is working, but it was some problem: when aim and aim rcs off -> rcs is turning on and sometimes the crosshair is jerked down sharply.
Quote Originally Posted by MIXA066 View Post
I didn't see any samles about it. And I tryed to turn off rcs, while aim is working, but it was some problem: when aim and aim rcs off -> rcs is turning on and sometimes the crosshair is jerked down sharply.
Why would you use a sample ? Do it yourself. I'm telling you.. give up on separate aim and rcs, and implement rcs in aimbot code, it will be better.
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us