Results 1 to 2 of 2
  1. #1
    jokjok123's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    198
    Reputation
    10
    Thanks
    108

    Question What is wrong with this RCS?

    Code:
    struct Vector {
    		float x = 0, y = 0, z = 0;
    	};
    
    	Vector NormalizeAngles(Vector angle)
    	{
    		if (!std::isfinite(angle.x)) {
    			angle.x = 0;
    		}
    		if (!std::isfinite(angle.y)) {
    			angle.y = 0;
    		}
    		while (angle.y < -180.0f) angle.y += 360.0f;
    		while (angle.y > 180.0f) angle.y -= 360.0f;
    		if (angle.x > 89.0f) angle.x = 89.0f;
    		if (angle.x < -89.0f) angle.x = -89.0f;
    		angle.z = 0;
    		return angle;
    	}
    
    
    	Vector vOldPunchAngle;
    	void rcs()
    	{
    		Vector prevPunch, testVec;
    		int m_ShotsFired;
    		prevPunch.x = 0;
    		prevPunch.y = 0;
    		while (true)
    		{
    			if (GetAsyncKeyState(1) & 0x8000) {
    				DWORD LocalBaseB = Read<DWORD>(ChromeClient + ChormeProfiles);
    				DWORD EnginePTR = Read<DWORD>(ChromeClientEngine + ChromeClientState);
    				m_ShotsFired = Read<int>(LocalBaseB + Chromeshot);
    				Vector m_punch = Read<Vector>(LocalBaseB + ChromeVec);
    				m_punch.x *= 2.f;
    				m_punch.y *= 2.f;
    				if (m_ShotsFired > 1) {
    
    
    					Vector currentAngles = Read<Vector>(EnginePTR + 0x4D0C);
    					Vector modifier = m_punch;
    					modifier.x -= prevPunch.x;
    					modifier.y -= prevPunch.y;
    					NormalizeAngles(modifier);
    					currentAngles.x -= modifier.x;
    					currentAngles.y -= modifier.y;
    					NormalizeAngles(currentAngles);
    					Write<Vector>(EnginePTR + 0x4D0C, currentAngles);
    				}
    
    				prevPunch = m_punch;
    				Sleep(30);
    			}
    			Sleep(1);
    		}
    	}

  2. The Following User Says Thank You to jokjok123 For This Useful Post:

    Nine11 (02-13-2017)

  3. #2
    Smoke's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    11,899
    Reputation
    2661
    Thanks
    4,610
    My Mood
    Amazed
    Been over a week since last update/bump after answers, assuming solved.

    /Closed.


    CLICK TO BUY NOW!!


    Quote Originally Posted by Liz View Post
    This is my first vouch, ever. Rapidgator account worked perfectly. Would buy in the future.

Similar Threads

  1. [Help] What is wrong with this RCS?
    By jokjok123 in forum Counter-Strike 2 Coding & Resources
    Replies: 2
    Last Post: 10-26-2016, 07:30 PM
  2. [Help] What is wrong with this RCS?
    By jokjok123 in forum Counter-Strike 2 Coding & Resources
    Replies: 1
    Last Post: 10-26-2016, 11:05 AM
  3. What's wrong with this?
    By yup in forum Visual Basic Programming
    Replies: 4
    Last Post: 03-18-2008, 10:36 AM
  4. what is wrong with this ??
    By floris12345! in forum Visual Basic Programming
    Replies: 5
    Last Post: 01-16-2008, 05:22 PM
  5. what is wrong with this source?
    By Petros in forum C++/C Programming
    Replies: 6
    Last Post: 07-04-2007, 04:33 PM