Unfininished RCS

Posts 1–4 of 4 · Page 1 of 1
Unfininished RCS
This is an unfinished RCS written in C#
If you would like to pick it up and use it go ahead.
It would need to be updated due to the newer CSGO updates though.
Typo in title ^_^
Code:
private Vector3 AimAngle;
private Vector3 OldAngle;
private Vector3 ViewAngle;

private void RCS( )
        {
            if ( !antiRCS )
                return;

            var ourPlayer = GetLocalPlayer();
            var shotsFired = Memory.ReadIntMemory( ourPlayer + 0x00001d60, 4 );
            if ( shotsFired > prevFired )
            {
                var punchVector = Memory.ReadVectorMemory( ourPlayer + 0x000013e8 );

                ViewAngle.x = punchVector.x - OldAngle.x;
                ViewAngle.y = punchVector.y - OldAngle.y;

                AimAngle.x -= ViewAngle.x * 2f;
                AimAngle.y -= ViewAngle.y * 2f;

                mouse_event( 0x0001, ( uint ) AimAngle.x, ( uint ) AimAngle.y, 0, UIntPtr.Zero );

                OldAngle.x = punchVector.x;
                OldAngle.y = punchVector.y;

                prevFired = shotsFired
            } 
            else 
            {
                OldAngle.x = 0;
                OldAngle.y = 0;
                prevFired = 0;
            }
            {
             Height/2
             }
}
Thank you for releasing
if ( shotsFired > prevFired )

That will not work if you call this function faster than the fire rate.

changing it to

if (shotsFired > 1 && shotsFired >= prevFired)

will make it work.
Quote Originally Posted by Merccy2 View Post
if ( shotsFired > prevFired )

That will not work if you call this function faster than the fire rate.

changing it to

if (shotsFired > 1 && shotsFired >= prevFired)

will make it work.
Thanks for the quick fix
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us