Exemplo n.º 1
0
        bool DoFovZoom(float deltaPrecise)
        {
            if (!game.IsKeyDown(KeyBind.ZoomScrolling))
            {
                return(false);
            }
            LocalPlayer p = game.LocalPlayer;

            if (!p.Hacks.Enabled || !p.Hacks.CanAnyHacks || !p.Hacks.CanUseThirdPersonCamera)
            {
                return(false);
            }

            if (fovIndex == -1)
            {
                fovIndex = game.ZoomFov;
            }
            fovIndex -= deltaPrecise * 5;

            Utils.Clamp(ref fovIndex, 1, game.DefaultFov);
            return(SetFOV((int)fovIndex, true));
        }