Results 1 to 4 of 4
  1. #1
    $TT#yehjthrtjhrthjrth's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    1

    Question Untrusted ban with normalized angles?

    I was running an aimbot in casual and got a untrusted ban which means my hack is doing something wrong, although this confuses me because according to what I have read this shouldn't happen with what I have.

    Angle Normalization:
    Code:
    static Vector NormalizeAngle(Vector angles)
            {
                if (float.IsInfinity(angles.x))
                {
                    angles.x = 0.0f;
                }
    
                if (float.IsInfinity(angles.y))
                {
                    angles.y = 0.0f;
                }
    
                while (angles.y < -180.0f) angles.y += 360.0f;
                while (angles.y > 180.0f) angles.y -= 360.0f;
                if (angles.x > 89.0f) angles.x = 89.0f;
                if (angles.x < -89.0f) angles.x = -89.0f;
                angles.z = 0.0f;
                return angles;
            }
    CalcAngle:
    Code:
            static Vector CalcAngle(Vector src, Vector dst) 
            {
                Vector angle;
                Vector delta; 
                delta.x = src.x - dst.x;
                delta.y = src.y - dst.y;
                delta.z = src.z - dst.z;
                double hyp = Math.Sqrt(delta.x * delta.x + delta.y * delta.y);
                angle.x = (float)(Math.Atan((delta.z + 64.06f) / hyp) * 57.295779513082f);
                angle.y = (float)(Math.Atan(delta.y / delta.x) * 57.295779513082f);
                angle.z = 0.0f;
    
                if (delta.x >= 0.0)
                    angle.y += 180.0f;   
    
                return angle;
            }
    Get Recoil Punch:
    Code:
            static Vector GetPunch() 
            {
                int localplayer = Mem.ReadInt(clientdll + m_dwLocalPlayer);
                Vector angle;
                angle.x = Mem.ReadFloat(localplayer + m_vecPunch);
                angle.y = Mem.ReadFloat(localplayer + m_vecPunch + 0x4);
                angle.z = 0.0f;
                return angle;
            }
    I run angle normalization before rcs and after, and I have read several threads and looked at my angles while playing and they appear to be fine so I'm confused to what caused my ban.

    I'm also using spottedmask for visibility checks but this shouldn't cause an untrusted ban.
    Last edited by $TT#yehjthrtjhrthjrth; 04-14-2016 at 06:37 AM.

  2. #2
    Orinion77's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    140
    Reputation
    10
    Thanks
    47
    My Mood
    Relaxed
    1.Show us where you call NormalizeAngle
    2. What injector do you use?

  3. #3
    $TT#yehjthrtjhrthjrth's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by Orinion77 View Post
    1.Show us where you call NormalizeAngle
    2. What injector do you use?
    My cheat is external, but here is where I normalize:

    Code:
    for (int i = 1; i < 64; i++)
                    {
                        int ent = Mem.ReadInt(clientdll + m_dwEntityList + ((i - 1) * 16));
                        int ent_team = Mem.ReadInt(ent + m_iTeamNum);
                        int ent_dorm = Mem.ReadInt(ent + m_bDormant);
                        int ent_hp = Mem.ReadInt(ent + m_iHealth);
    
                        if (ent_team != localteam && ent_dorm == 0 && ent_hp > 0 && aimbotting == false)
                        {
                            bool mspotted = IsSpotted(ent, localplayer);
                            Vector angles = CalcAngle(GetLocalPos(), GetBonePos(ent, 6));
                            angles = NormalizeAngle(angles);
    
    
                            if (GetAsyncKeyState(Keys.F) != 0 && mspotted == true && !float.IsNaN(angles.x) && !float.IsNaN(angles.y))
                            {
                                aimbotting = true;
                                angles.x = angles.x - GetPunch().x * 2;
                                angles.y = angles.y - GetPunch().y * 2;
                                angles = NormalizeAngle(angles);
                                SetAngle(angles);
                            }
                        }
                    }

  4. #4
    Hunter's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    Depths Of My Mind.
    Posts
    17,468
    Reputation
    3771
    Thanks
    6,159
    My Mood
    Cheerful
    1 week has passed and no further replies have been made by the OP. Assuming solved.

    /Closed.

Similar Threads

  1. [SOLVED]Can i get banned with texture skins?
    By Playerstyler in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 07-11-2010, 09:04 AM
  2. Users banned with MPGH in name
    By arunforce in forum News & Announcements
    Replies: 14
    Last Post: 05-05-2009, 02:25 PM
  3. BAN with nx on your account?
    By nighthawk3 in forum Combat Arms Hacks & Cheats
    Replies: 7
    Last Post: 12-25-2008, 06:23 PM
  4. The error: please log in with normal procedure
    By teckste in forum WarRock - International Hacks
    Replies: 3
    Last Post: 11-07-2008, 06:07 AM
  5. Banned With NEW PUBLIC TRAINER...ByPass
    By hakker1 in forum WarRock - International Hacks
    Replies: 2
    Last Post: 05-20-2007, 08:43 AM