External RCS
Been trying to make an rcs for well over an hour and i'm not sure what i'm missing. I wrote it myself and it was very imperfect. So i figured i would copy someone else's source (had to translate from C++ to C# but that's simple af). Similar result. Very imperfect. So i tried another source. And another. And i tried rewriting it again with my own logic. Still no luck. So after a ton of failed attempts i need some help.
This is in C# but anyone who know C++ could read this just as easily.
Here's what i have.
Here's a video of the result.
From it, we can conclude that timing is not the issue. Also that my current punch and old punch are being read correctly.
Thanks for helping a fat noob guys.
This is in C# but anyone who know C++ could read this just as easily.
Here's what i have.
Code:
private void timerRCS_Tick(object sender, EventArgs e)//Essentially a thread for those that only know C++
{
shotsFired = Engine.LocalPlayer.shotsFired;
punchVector = Engine.LocalPlayer.vecPunch;
if (Engine.LocalPlayer.health > 0 && Engine.LocalPlayer.InGame == 6)
{
if (shotsFired > 1 && shotsFired > prevFired)
{
prevFired = shotsFired;
punchVector.x = punchVector.x * 2;
punchVector.y = punchVector.y * 2;
viewAngle.x = Engine.vam.ReadFloat((IntPtr)(Engine.LocalPlayer.C lientStateBase + Offsets.oViewAngles));
viewAngle.y = Engine.vam.ReadFloat((IntPtr)(Engine.LocalPlayer.C lientStateBase + Offsets.oViewAngles + 4));
fin.x = viewAngle.x - (punchVector.x - oldPunch.x);
fin.y = viewAngle.y - (punchVector.y - oldPunch.y);
Aimbot.ClampAngles(ref fin);
Engine.vam.WriteFloat((IntPtr)(Engine.LocalPlayer. ClientStateBase + Offsets.oViewAngles), fin.x);
Engine.vam.WriteFloat((IntPtr)(Engine.LocalPlayer. ClientStateBase + Offsets.oViewAngles + 4), fin.y);
oldPunch.x = punchVector.x;
oldPunch.y = punchVector.y;
}
else if (shotsFired <= 1 || shotsFired < prevFired) //A regular else was not working.
{
oldPunch.x = 0;
oldPunch.y = 0;
prevFired = 0;
}
}
}
From it, we can conclude that timing is not the issue. Also that my current punch and old punch are being read correctly.
Thanks for helping a fat noob guys.

