Exemplo n.º 1
0
    public void OnGUI()
    {
        bool flag = WeaponComponent.MainCamera == null;

        if (flag)
        {
            WeaponComponent.MainCamera = Camera.main;
        }
        bool noSway = WeaponOptions.NoSway;

        if (noSway)
        {
            bool flag2 = OptimizationVariables.MainPlayer != null && OptimizationVariables.MainPlayer.animator != null;
            if (flag2)
            {
                OptimizationVariables.MainPlayer.animator.viewSway = Vector3.zero;
            }
        }
        bool flag3 = Event.current.type != EventType.Repaint;

        if (!flag3)
        {
            bool flag4 = !DrawUtilities.ShouldRun();
            if (!flag4)
            {
                bool tracers = WeaponOptions.Tracers;
                if (tracers)
                {
                    ESPComponent.GLMat.SetPass(0);
                    GL.PushMatrix();
                    GL.LoadProjectionMatrix(WeaponComponent.MainCamera.projectionMatrix);
                    GL.modelview = WeaponComponent.MainCamera.worldToCameraMatrix;
                    GL.Begin(1);
                    for (int i = WeaponComponent.Tracers.Count - 1; i > -1; i--)
                    {
                        TracerLine tracerLine = WeaponComponent.Tracers[i];
                        bool       flag5      = DateTime.Now - tracerLine.CreationTime > TimeSpan.FromSeconds(5.0);
                        if (flag5)
                        {
                            WeaponComponent.Tracers.Remove(tracerLine);
                        }
                        else
                        {
                            GL.Color(tracerLine.Hit ? ColorUtilities.getColor("_BulletTracersHitColor") : ColorUtilities.getColor("_BulletTracersColor"));
                            GL.Vertex(tracerLine.StartPosition);
                            GL.Vertex(tracerLine.EndPosition);
                        }
                    }
                    GL.End();
                    GL.PopMatrix();
                }
                bool showWeaponInfo = WeaponOptions.ShowWeaponInfo;
                if (showWeaponInfo)
                {
                    bool flag6 = !(OptimizationVariables.MainPlayer.equipment.asset is ItemGunAsset);
                    if (!flag6)
                    {
                        GUI.depth = 0;
                        ItemGunAsset itemGunAsset = (ItemGunAsset)OptimizationVariables.MainPlayer.equipment.asset;
                        string       content      = string.Format("<size=15>{0}\nДальность: {1}\nУрон игрокам: {2}</size>", itemGunAsset.itemName, itemGunAsset.range, itemGunAsset.playerDamageMultiplier.damage);
                        DrawUtilities.DrawLabel(ESPComponent.ESPFont, LabelLocation.MiddleLeft, new Vector2(Screen.width - 20, Screen.height / 2), content, ColorUtilities.getColor("_WeaponInfoColor"), ColorUtilities.getColor("_WeaponInfoBorder"), 1, null, 12);
                    }
                }



                if (ESPOptions.ShowCoordinates)
                {
                    float  x       = OptimizationVariables.MainPlayer.transform.position.x;
                    float  y       = OptimizationVariables.MainPlayer.transform.position.y;
                    float  z       = OptimizationVariables.MainPlayer.transform.position.z;
                    string content = string.Format("<size=10>Координаты(X,Y,Z): {0},{1},{2}</size>", System.Math.Round(x, 2).ToString(), System.Math.Round(y, 2).ToString(), System.Math.Round(z, 2).ToString());
                    DrawUtilities.DrawLabel(ESPComponent.ESPFont, LabelLocation.TopRight, new Vector2(Screen.width / Screen.width + 10, Screen.height / 38), content, ColorUtilities.getColor("_CoordInfoColor"), ColorUtilities.getColor("_CoordInfoBorder"), 1, null, 12);
                }
                float radius    = RaycastOptions.SilentAimFOV * 7 + 20;
                float radiusAim = AimbotOptions.FOV * 7 + 20;
                if (RaycastOptions.ShowSilentAimUseFOV)
                {
                    DrawUtilities.DrawCircle(AssetVariables.Materials["ESP"], ColorUtilities.getColor("_ShowFOV"), new Vector2(Screen.width / 2, Screen.height / 2), radius);
                }
                if (RaycastOptions.ShowAimUseFOV)
                {
                    DrawUtilities.DrawCircle(AssetVariables.Materials["ESP"], ColorUtilities.getColor("_ShowFOVAim"), new Vector2(Screen.width / 2, Screen.height / 2), radiusAim);
                }
            }
        }
    }
Exemplo n.º 2
0
        // Token: 0x060001FD RID: 509 RVA: 0x00013024 File Offset: 0x00011224
        public void OnGUI()
        {
            bool flag  = WeaponComponent.MainCamera == null;
            bool flag2 = flag;

            if (flag2)
            {
                WeaponComponent.MainCamera = Camera.main;
            }
            bool noSway = WeaponOptions.NoSway;
            bool flag3  = noSway;

            if (flag3)
            {
                bool flag4 = OptimizationVariables.MainPlayer != null && OptimizationVariables.MainPlayer.animator != null;
                bool flag5 = flag4;
                if (flag5)
                {
                    OptimizationVariables.MainPlayer.animator.viewSway = Vector3.zero;
                }
            }
            bool flag6 = Event.current.type != EventType.Repaint;
            bool flag7 = !flag6;

            if (flag7)
            {
                bool flag8 = !DrawUtilities.ShouldRun();
                bool flag9 = !flag8;
                if (flag9)
                {
                    bool tracers = WeaponOptions.Tracers;
                    bool flag10  = tracers;
                    if (flag10)
                    {
                        ESPComponent.GLMat.SetPass(0);
                        GL.PushMatrix();
                        GL.LoadProjectionMatrix(WeaponComponent.MainCamera.projectionMatrix);
                        GL.modelview = WeaponComponent.MainCamera.worldToCameraMatrix;
                        GL.Begin(1);
                        for (int i = WeaponComponent.Tracers.Count - 1; i > -1; i--)
                        {
                            TracerLine tracerLine = WeaponComponent.Tracers[i];
                            bool       flag11     = DateTime.Now - tracerLine.CreationTime > TimeSpan.FromSeconds(5.0);
                            bool       flag12     = flag11;
                            if (flag12)
                            {
                                WeaponComponent.Tracers.Remove(tracerLine);
                            }
                            else
                            {
                                GL.Color(tracerLine.Hit ? ColorUtilities.getColor("_BulletTracersHitColor") : ColorUtilities.getColor("_BulletTracersColor"));
                                GL.Vertex(tracerLine.StartPosition);
                                GL.Vertex(tracerLine.EndPosition);
                            }
                        }
                        GL.End();
                        GL.PopMatrix();
                    }
                    bool showWeaponInfo = WeaponOptions.ShowWeaponInfo;
                    bool flag13         = showWeaponInfo;
                    if (flag13)
                    {
                        bool flag14 = !(OptimizationVariables.MainPlayer.equipment.asset is ItemGunAsset);
                        bool flag15 = !flag14;
                        if (flag15)
                        {
                            GUI.depth = 0;
                            ItemGunAsset itemGunAsset = (ItemGunAsset)OptimizationVariables.MainPlayer.equipment.asset;
                            string       content      = string.Format("<size=15>{0}\nДальность: {1}\nУрон игрокам: {2}</size>", itemGunAsset.itemName, itemGunAsset.range, itemGunAsset.playerDamageMultiplier.damage);
                            DrawUtilities.DrawLabel(ESPComponent.ESPFont, LabelLocation.MiddleLeft, new Vector2((float)(Screen.width - 20), (float)(Screen.height / 2)), content, ColorUtilities.getColor("_WeaponInfoColor"), ColorUtilities.getColor("_WeaponInfoBorder"), 1, null, 12);
                        }
                    }
                    float radius              = RaycastOptions.SilentAimFOV * 7f + 20f;
                    float radius2             = AimbotOptions.FOV * 7f + 20f;
                    bool  showSilentAimUseFOV = RaycastOptions.ShowSilentAimUseFOV;
                    if (showSilentAimUseFOV)
                    {
                        DrawUtilities.DrawCircle(AssetVariables.Materials["ESP"], ColorUtilities.getColor("_ShowFOV"), new Vector2((float)(Screen.width / 2), (float)(Screen.height / 2)), radius);
                    }
                    bool showAimUseFOV = RaycastOptions.ShowAimUseFOV;
                    if (showAimUseFOV)
                    {
                        DrawUtilities.DrawCircle(AssetVariables.Materials["ESP"], ColorUtilities.getColor("_ShowFOVAim"), new Vector2((float)(Screen.width / 2), (float)(Screen.height / 2)), radius2);
                    }
                }
            }
        }