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.
The I write vectors into the memory:
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?
Code:
void Start1()
{
while (true)
{
AimBot.Start();
Sleep(2);
}
}
Code:
void Start2()
{
while (true)
{
RCS.Start();
Sleep(5);
}
}
Code:
Meme.Write<Vector>(ClientState + Offsets.m_dwViewAngle, AimVec); Meme.Write<Vector>(ClientState + Offsets.m_dwViewAngle, RCSVec);
Who knows how to fix this asynchrony?
