Solved External Standalone RCS C#

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

RaINi

Newbie
Feb 16, 2017
3
12
0
I'm trying to make a Standalone RCS using Mouse Event, cant get it to work tho.
rawinput & custom accel is turned off in csgo
would be nice if some one can help

-it returns the angles & punch but does nothing

C++:
using System;
using System.Threading;
using External.Math;
using External.SDK;
using External.Structs;

namespace External.Features
{
    class Testing
    {
        private static float MaxYaw = 2;
        private static float MaxPitch = 2;
        private static float MinYaw = 2;
        private static float MinPitch = 2;
        public static float RandomYaw;
        public static float RandomPitch;
        private static float Sensitivity;

        private static int PrevFired;

        private static Vectoring.Vector3 Pixels;
        private static Vectoring.Vector3 LastPunch { get; set; }

        public static void Run()
        {
            Sensitivity = Program.Memory.rdFloat(Globals.bClient + Offsets.m_dwSensitivity);

            while (true)
            {
                if (KeyUtil.GetKeyDown(0x01))
                {
                    int ShotsFired = Program.Memory.rdInt(LocalPlayer.Base + Offsets.m_iShotsFired);

                    if (ShotsFired > 1 && ShotsFired >= PrevFired)
                    {
                        ControlRecoil();
                        LastPunch = Program.Memory.rdVector(LocalPlayer.Base + Offsets.m_vecPunch);
                        Thread.Sleep(1);
                    }
                }

                PrevFired = ShotsFired;
                Thread.Sleep(1);
            }
        }

        private static void ControlRecoil()
        {
            RandomizeRecoilControl();

            //m_rawinput & m_customaccel has to be 0
            Vectoring.Vector3 Punch = Program.Memory.rdVector(LocalPlayer.Base + Offsets.m_vecPunch) - LastPunch;

            if (Punch.x != 0 && Punch.y != 0)
            {
                Pixels.x = Punch.x / (float)(0.22 * Sensitivity * 1) * RandomYaw * 10;
                Pixels.y = Punch.y / (float)(0.22 * Sensitivity * 1) * RandomPitch * 10;
                WinAPI.mouse_event((uint)0, (uint)Pixels.y, (uint)-Pixels.x, 0, 0);

                Console.WriteLine("\r\n>> LAST PUNCH");
                Console.WriteLine("X: " + LastPunch.x + " Y: " + LastPunch.y);
                Console.WriteLine(">> CURR PUNCH");
                Console.WriteLine("X: " + Punch.x + " Y: " + Punch.y);
                Console.WriteLine(">> PIXELS");
                Console.WriteLine("X: " + Pixels.x + " Y: " + Pixels.y);
            }
        }

        private static void RandomizeRecoilControl()
        {
            float TempMinYaw = MinYaw * 10;
            float TempMinPitch = MinPitch * 10;
            float TempMaxYaw = MaxYaw * 10;
            float TempMaxPitch = MaxPitch * 10;

            float TempRandomYaw = new Random().Next((int)TempMinYaw, (int)TempMaxYaw) + 1;
            float TempRandomPitch = new Random().Next((int)TempMinPitch, (int)TempMaxPitch) + 1;

            RandomYaw = TempRandomYaw / 10;
            RandomPitch = TempRandomPitch / 10;
        }
    }
}
 
Last edited:

Traxin

Escobar Tier VIP
Dank Tier Donator
Aug 3, 2015
1,041
25,378
154
I personally can't see anything wrong with the code, have you gotten mouse event to work with csgo before? Maybe there's something there that's worth checking out?

here's an internal C++ one
 
Last edited by a moderator:

Traxin

Escobar Tier VIP
Dank Tier Donator
Aug 3, 2015
1,041
25,378
154
"Can't get it to work" doesn't really describe the problem though.
Have you set any breakpoints, done any debugging? Need more info shun...
 

RaINi

Newbie
Feb 16, 2017
3
12
0
I personally can't see anything wrong with the code, have you gotten mouse event to work with csgo before? Maybe there's something there that's worth checking out?
never worked with mouse event before tbh, if i turn rawinput on it glitches (i know it should be off for it to work but that proves that it does "something")

//got it working.. the Sensitivity that i was reading was wrong o.o
https://gyazo.com/40231ed92ddd297929b513d5706c6cbc
 
Last edited:
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods