private void UpdatePlayers()
 {
     try
     {
         if (Settings.DrawPlayers && GameScene.IsLoaded() && GameScene.InMatch() && Main.LocalPlayer != null && !MonoBehaviourSingleton <EFT.UI.PreloaderUI> .Instance.IsBackgroundBlackActive && Main.MainCamera != null)
         {
             if (Time.time >= this._nextPlayerCacheTime && Main.GameWorld != null && Main.GameWorld.RegisteredPlayers != null)
             {
                 Main.GamePlayers.Clear();
                 foreach (Player player in Main.GameWorld.RegisteredPlayers)
                 {
                     if (Vector3.Distance(Main.MainCamera.transform.position, player.Transform.position) <= Settings.DrawPlayersDistance)
                     {
                         Main.GamePlayers.Add(new GamePlayer(player));
                     }
                 }
                 this._nextPlayerCacheTime = Time.time + Main._cachePlayersInterval;
             }
             foreach (GamePlayer gamePlayer in Main.GamePlayers)
             {
                 if (GameUtils.IsPlayerValid(gamePlayer.Player))
                 {
                     gamePlayer.RecalculateDynamics();
                 }
             }
         }
     }
     catch
     { }
 }
        public void OnGUI()
        {
            if (GameScene.IsLoaded() && GameScene.InMatch() && Main.LocalPlayer != null && Main.MainCamera != null && Main.LocalPlayer.PointOfView == EPointOfView.FirstPerson && !MonoBehaviourSingleton <EFT.UI.PreloaderUI> .Instance.IsBackgroundBlackActive)
            {
                if (Settings.DrawPlayerList)
                {
                    float num = 0f;

                    Render.DrawBackground(new Rect((float)Screen.width - 270f, 50f, 250f, 100f + Height - 85f), new Color(0f, 0f, 0f, 0.8f)); //a 0.5f

                    foreach (GamePlayer gamePlayer in Main.GamePlayers)
                    {
                        if (!gamePlayer.IsAI && GameUtils.IsPlayerValid(gamePlayer.Player) && GameUtils.IsPlayerAlive(gamePlayer.Player) && !GameUtils.IsInYourGroup(gamePlayer.Player) && gamePlayer.Player != Main.LocalPlayer)
                        {
                            String PlayerType;
                            if (gamePlayer.Player.Profile.Info.MemberCategory == EMemberCategory.UniqueId || gamePlayer.Player.Profile.Info.MemberCategory == EMemberCategory.Default)
                            {
                                PlayerType = "";
                            }
                            else
                            {
                                PlayerType = $"[{gamePlayer.Player.Profile.Info.MemberCategory}]";
                            }

                            String PlayerInfo = $"{gamePlayer.Player.Profile.Info.Nickname} [{gamePlayer.Player.HealthController.GetBodyPartHealth(EBodyPart.Common, true).Current}]HP [{gamePlayer.Player.Profile.Info.Level}] [{PlayerValue(gamePlayer.Player)/1000}K] {PlayerType}";

                            Render.DrawString(new Vector2((float)Screen.width - 260f, 53.04348f + num), PlayerInfo, Color.white, false, 9);
                            num   += 17f;
                            Height = num;
                        }
                    }
                }
            }
        }
        public void Update()
        {
            if (GameScene.IsLoaded() && GameScene.InMatch() && Main.LocalPlayer != null && Main.MainCamera != null && Main.LocalPlayer.PointOfView == EPointOfView.FirstPerson && !MonoBehaviourSingleton <EFT.UI.PreloaderUI> .Instance.IsBackgroundBlackActive)
            {
                this.SuperWeapon();
                this.NoRecoil();
                //Misc.SuperBullet();
                Misc.NoVisor();
                this.MaxStats();
                this.SpeedHack();
                this.PrepareHud();
                Misc.ThermalVison();
                Misc.NightVision();
                this.RemoveSpeedDebuff();
                this.InfiniteStamina();
                this.Hooks();
                this.FullAuto();
                this.InteractionDistance();
                this.Movement();
                Testing();
                this.FastReload();
                this.ExternHooks();
                //ForwardTP();
            }

            if (GameScene.IsLoaded() && GameScene.InMatch())
            {
                this.Flyhack();
            }

            this.HotKeys();
        }
        private void OnGUI()
        {
            if (!GameScene.InMatch())
            {
                GameStatus = "Main menu";
            }
            else if (MonoBehaviourSingleton <EFT.UI.PreloaderUI> .Instance.IsBackgroundBlackActive)
            {
                GameStatus = "Waiting for game to start";
            }
            else if (GameScene.IsLoaded() && GameScene.InMatch() && !MonoBehaviourSingleton <EFT.UI.PreloaderUI> .Instance.IsBackgroundBlackActive)
            {
                GameStatus = "Ingame";
            }


            Render.DrawLabel(this._waterMark, $"{this.watermark}: {GameStatus}, Vox is a kike", Color.cyan);

            if (GameScene.IsLoaded() && GameScene.InMatch() && Main.LocalPlayer != null && Main.MainCamera != null && Main.GamePlayers.Count > -1)
            {
                int playerCount = 0;
                foreach (GamePlayer gamePlayer in Main.GamePlayers)
                {
                    if (!gamePlayer.IsAI && gamePlayer.Player != Main.LocalPlayer && !GameUtils.IsInYourGroup(gamePlayer.Player))
                    {
                        playerCount++;
                    }
                }
                Render.DrawLabel(this._playerCount, $"Kikes: {playerCount}", Color.cyan);
            }

            if (!this._visible)
            {
                return;
            }
            this._mainWindow = GUILayout.Window(0, this._mainWindow, new GUI.WindowFunction(this.RenderUi), this.watermark, Array.Empty <GUILayoutOption>());
            if (this._playerEspVisualVisible)
            {
                this._playerVisualWindow = GUILayout.Window(1, this._playerVisualWindow, new GUI.WindowFunction(this.RenderUi), "Player Visual", Array.Empty <GUILayoutOption>());
            }
            if (this._miscVisualVisible)
            {
                this._miscVisualWindow = GUILayout.Window(2, this._miscVisualWindow, new GUI.WindowFunction(this.RenderUi), "Misc Visual", Array.Empty <GUILayoutOption>());
            }
            if (this._aimbotVisualVisible)
            {
                this._aimbotVisualWindow = GUILayout.Window(3, this._aimbotVisualWindow, new GUI.WindowFunction(this.RenderUi), "Aimbot", Array.Empty <GUILayoutOption>());
            }
            if (this._miscFeatureslVisible)
            {
                this._miscFeatureslVisualWindow = GUILayout.Window(4, this._miscFeatureslVisualWindow, new GUI.WindowFunction(this.RenderUi), "Misc", Array.Empty <GUILayoutOption>());
            }
        }
 public void WeatherChanger()
 {
     if (Main.LocalPlayer != null && GameScene.IsLoaded() && GameScene.InMatch() && Main.LocalPlayer != null && Main.MainCamera != null && Main.LocalPlayer.PointOfView == EPointOfView.FirstPerson && !MonoBehaviourSingleton <EFT.UI.PreloaderUI> .Instance.IsBackgroundBlackActive)
     {
         TOD_Sky.Instance.Components.Time.GameDateTime = null;
         TOD_Sky Sky_Obj = (TOD_Sky)FindObjectOfType(typeof(TOD_Sky));
         WeatherController.Instance.RainController.SetIntensity(0f);
         WeatherController.Instance.GlobalFogOvercast        = 0f;
         WeatherController.Instance.LightningSummonBandWidth = 0f;
         WeatherController.Instance.RainController.enabled   = false;
         Sky_Obj.Cycle.Hour = 12f;
     }
 }
示例#6
0
        public void OnGUI()
        {
            if (GameScene.IsLoaded() && GameScene.InMatch() && Main.LocalPlayer != null && Main.MainCamera != null && Main.LocalPlayer.HandsController != null && Main.LocalPlayer.HandsController.Item.GetItemComponent <KnifeComponent>() == null && !MonoBehaviourSingleton <EFT.UI.PreloaderUI> .Instance.IsBackgroundBlackActive)
            {
                if (Main.LocalPlayer.HandsController.Item is Weapon && Main.LocalPlayer.Weapon != null)
                {
                    color = Color.cyan;
                    int boneID = GameUtils.AimBoneTarget();
                    if (this._target != null && Settings.DrawAimbotPoint)
                    {
                        Vector3 Aimtarget = GameUtils.WorldPointToScreenPoint((GameUtils.GetBonePosByID(this._target.Player, boneID)));
                        color = CamisVisible(_target.Player, GameUtils.GetBonePosByID(this._target.Player, boneID)) ? Color.green : Color.red;
                        Render.DrawLine(new Vector2((float)(Screen.width / 2), (float)(Screen.height / 2)), new Vector2(Aimtarget.x, Aimtarget.y), 1f, color); //new Vector2(_target.HeadScreenPosition.x, _target.HeadScreenPosition.y)
                    }

                    Render.DrawSwastika(color);


                    if (Settings.Aimbot && this._target == null)
                    {
                        this._target = this.GetTarget();

                        if (this._target != null && Input.GetKey(Settings.AimbotKey))
                        {
                            Vector3 bonePosByID = GameUtils.GetBonePosByID(this._target.Player, Settings.AimBotBone);
                            float   bullettime  = this._target.Distance / Main.LocalPlayer.GetComponent <Player.FirearmController>().Item.CurrentAmmoTemplate.InitialSpeed; //Main.LocalPlayer.Weapon.CurrentAmmoTemplate.InitialSpeed;
                            bonePosByID    += this._target.Player.Velocity * bullettime;
                            bonePosByID    -= Main.LocalPlayer.Velocity * Time.deltaTime;
                            this._aimTarget = bonePosByID;


                            Vector3 eulerAngles = Quaternion.LookRotation((this._aimTarget - Main.MainCamera.transform.position).normalized).eulerAngles;
                            if (eulerAngles.x > 180f)
                            {
                                eulerAngles.x -= 360f;
                            }
                            Main.LocalPlayer.MovementContext.Rotation = new Vector2(eulerAngles.y, eulerAngles.x);
                        }
                    }
                    else
                    {
                        this._target = null;
                    }
                }
            }
        }
        public void OnGUI()
        {
            if (Settings.DrawWeaponInfo && GameScene.IsLoaded() && GameScene.InMatch() && Main.LocalPlayer != null && Main.MainCamera != null)
            {
                GUIStyle guistyle = new GUIStyle(GUI.skin.label)
                {
                    fontSize = 25,
                    font     = Main.Consolas
                };
                guistyle.normal.textColor = Color.cyan;
                GUI.Label(new Rect(400f, (float)(Screen.height - 48), 512f, 48f), this._hud, guistyle);
            }

            if ((Settings.Aimbot || Settings.SilentAim) && GameScene.IsLoaded() && GameScene.InMatch() && Main.LocalPlayer != null && Main.MainCamera != null)
            {
                Circle.DrawCircleMain(new Vector2((Screen.width) / 2, (Screen.height) / 2), Settings.AimbotFOV, FovRing, 1, true, 22); // * 21f
            }
        }
        public void RemoveSpeedDebuff()
        {
            if (Main.LocalPlayer != null && GameScene.IsLoaded() && GameScene.InMatch() && Main.LocalPlayer != null && Main.MainCamera != null && Main.LocalPlayer.PointOfView == EPointOfView.FirstPerson && !MonoBehaviourSingleton <EFT.UI.PreloaderUI> .Instance.IsBackgroundBlackActive)
            {
                //Main.LocalPlayer.RemoveStateSpeedLimit(Player.ESpeedLimit.Armor);
                //Main.LocalPlayer.RemoveMouseSensitivityModifier(Player.EMouseSensitivityModifier.Armor);

                if (Settings.FullSprint)
                {
                    Main.LocalPlayer.EnableSprint(true);
                    Main.LocalPlayer.MovementContext.EnableSprint(true);
                    Main.LocalPlayer.CurrentState.EnableSprint(true, false);
                    //Main.LocalPlayer.MovementContext.PlayerAnimatorEnableInert(true);

                    //Main.LocalPlayer.MovementContext.
                }
            }
        }