HelpBroken External RCS

Posts 1–2 of 2 · Page 1 of 1
Broken External RCS
Hey guys. For some reason my RCS is looking down/to the left/ spinning in circles and being really buggy in general.
Code:
        private void RCS()
        {
            float oldViewX = 0;
            float oldViewY = 0;
            float angleX;
            float angleY;
            int address;
            if (GetAsyncKeyState(0x01) != 0)
            {
                address = LocalPlayer + Offsets.oShotsFired;
                int shotsFired = vam.ReadInt32((IntPtr)address);
                if (shotsFired >= 2)
                {
                    address = bEngine + Offsets.oClientState;
                    int clientState = vam.ReadInt32((IntPtr)address);
                    float playerViewX = vam.ReadFloat((IntPtr)clientState + Offsets.oViewAngles);
                    float playerViewY = vam.ReadFloat((IntPtr)clientState + Offsets.oViewAngles + 4);
                    float vectorPunchX = vam.ReadFloat((IntPtr)LocalPlayer + Offsets.oVecPunch);
                    float vectorPunchY = vam.ReadFloat((IntPtr)LocalPlayer + Offsets.oVecPunch);
                    playerViewX = playerViewX += oldViewX;
                    playerViewY = playerViewY += oldViewY;
                    angleX = playerViewX - vectorPunchX * 2;
                    angleY = playerViewY - vectorPunchY * 2;
                    vam.WriteFloat((IntPtr)clientState + Offsets.oViewAngles, angleX);
                    vam.WriteFloat((IntPtr)clientState + Offsets.oViewAngles + 4, angleY);
                    oldViewX = vectorPunchX * (float)2;
                    oldViewY = vectorPunchY * (float)2;
                } else
                {
                    oldViewX = 0;
                    oldViewY = 0;
                }
            } else
            {
                oldViewX = 0;
                oldViewY = 0;
            }
        }
What's wrong with it? I've looked over it a few times and it looks right, so I don't understand :/
Been over a week since last update/bump after no answers, marked unresolved.

/Closed.
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?