public RFIDAntennaFloor()
        {
            CameraLocked
            .Create(this)
            .SetEnabled(false);

            Transform
            .Create(this)
            .SetPosition(400, 290)
            .SetUpdateZWithPosition(false)
            .SetZ(-1);

            SpriteData
            .Create(this)
            .SetOffset(-13, -6);

            Scripts
            .Create(this);

            TracerLine
            .Create(this)
            .SetCollider(WoodenPanel.Collider)
            .SetColor(Color.Red)
            .SetHitColor(Color.LightGreen)
            .SetVisible(false);

            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.rfidantenna);

            Enabled = false;
            Visible = false;
        }
Esempio n. 2
0
        private void projectileMotion(float p1, int p2)
        {
            int   dAngle = Aimer.instance.angle;
            int   power  = Aimer.instance.power;
            float angle  = (float)getAngle(dAngle);
            int   Xpos   = (int)(Game.round.me.x);

            count++;
            if (count > 5)
            {
                count = 0;
                Tracers.Clear();
            }

            if (dAngle <= 180)
            {
                Proj       p      = new Proj();
                TracerLine tracer = Tracers.CreateLine(p, Color.red);

                for (int i = 1; i <= 1000 - Xpos; i += increment)
                {
                    float t = i / (float)((power + powerSalt[power]) * Mathf.Cos(angle));
                    float Y = (float)(((power + powerSalt[power]) * Mathf.Sin(angle)) * t - (0.5 * g * t * t));

                    Vector3 point = new Vector3(Map.toWorldX((float)i + Xpos), Map.toWorldY(Game.round.me.y + Y));
                    tracer.line.points3.Add(point);

                    if (Game.round.me.y + Y < 0)
                    {
                        break;//round has gone off bottom of screen
                    }
                }
                tracer.line.Draw3D();
            }
            else
            {
                Proj       p      = new Proj();
                TracerLine tracer = Tracers.CreateLine(p, Color.red);
                for (int i = 1; i < Xpos; i += increment)
                {
                    float t = i / (float)((power + powerSalt[power]) * Mathf.Cos(angle));
                    float Y = (float)(((power + powerSalt[power]) * Mathf.Sin(angle)) * t - (0.5 * g * t * t));

                    Vector3 point = new Vector3(Map.toWorldX((float)Xpos - i), Map.toWorldY(Game.round.me.y + Y));
                    tracer.line.points3.Add(point);

                    if (Game.round.me.y + Y < 0)
                    {
                        break;//round has gone off bottom of screen
                    }
                }
                tracer.line.Draw3D();
            }
        }
Esempio n. 3
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);
                }
            }
        }
    }
Esempio n. 4
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);
                    }
                }
            }
        }
Esempio n. 5
0
        public void OnGUI()
        {
            if (MainCamera == null)
            {
                MainCamera = Camera.main;
            }

            if (WeaponOptions.NoSway)
            {
                if (OptimizationVariables.MainPlayer != null && OptimizationVariables.MainPlayer.animator != null)
                {
                    OptimizationVariables.MainPlayer.animator.viewSway = Vector3.zero;
                }
            }

            if (Event.current.type != EventType.Repaint)
            {
                return;
            }

            if (!DrawUtilities.ShouldRun())
            {
                return;
            }

            if (WeaponOptions.Tracers)
            {
                ESPComponent.GLMat.SetPass(0);

                GL.PushMatrix();
                GL.LoadProjectionMatrix(MainCamera.projectionMatrix);
                GL.modelview = MainCamera.worldToCameraMatrix;
                GL.Begin(GL.LINES);

                for (int i = Tracers.Count - 1; i > -1; i--)
                {
                    TracerLine t = Tracers[i];
                    if (DateTime.Now - t.CreationTime > TimeSpan.FromSeconds(5))
                    {
                        Tracers.Remove(t);
                        continue;
                    }

                    GL.Color(t.Hit
                                                ? ColorUtilities.getColor("_BulletTracersHitColor")
                                                : ColorUtilities.getColor("_BulletTracersColor"));

                    GL.Vertex(t.StartPosition);
                    GL.Vertex(t.EndPosition);
                }

                GL.End();
                GL.PopMatrix();
            }
            if (WeaponOptions.ShowWeaponInfo)
            {
                if (!(OptimizationVariables.MainPlayer.equipment.asset is ItemGunAsset))
                {
                    return;
                }

                GUI.depth = 0;
                ItemGunAsset PAsset = (ItemGunAsset)OptimizationVariables.MainPlayer.equipment.asset;
                string       text   = $"<size=15>{PAsset.itemName}\nRange: {PAsset.range}</size>";

                DrawUtilities.DrawLabel(ESPComponent.ESPFont, LabelLocation.MiddleLeft,
                                        new Vector2(Screen.width - 20, Screen.height / 2), text, ColorUtilities.getColor("_WeaponInfoColor"), ColorUtilities.getColor("_WeaponInfoBorder"), 1);
            }
        }