Greasy Fork

Greasy Fork is available in English.

Xbox Cloud Fortnite Aimbot with FOV

Draw boxes around detected players, aim assist, and auto fire for Fortnite

当前为 2024-12-10 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Xbox Cloud Fortnite Aimbot with FOV
// @namespace    http://tampermonkey.net/
// @version      0.4
// @description  Draw boxes around detected players, aim assist, and auto fire for Fortnite
// @author       You
// @match        https://www.xbox.com/en-US/play/launch/fortnite/BT5P2X999VH2
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    let aimAssistEnabled = false;
    let fov = 90; // Default FOV value
    let canvas;

    function initialize() {
        canvas = document.querySelector('canvas');
        if (!canvas) {
            console.error("Canvas not found. Please ensure the game is loaded.");
            return;
        }
        console.log("Canvas found. Aim assist is ready.");
    }

    function toggleAimAssist() {
        aimAssistEnabled = !aimAssistEnabled;
        console.log(`Aim assist ${aimAssistEnabled ? 'enabled' : 'disabled'}`);
    }

    function isTargetInFOV(targetX, targetY) {
        const crosshairX = canvas.width / 2;
        const crosshairY = canvas.height / 2;
        const angleToTarget = Math.atan2(targetY - crosshairY, targetX - crosshairX) * (180 / Math.PI);
        const fovHalf = fov / 2;

        return Math.abs(angleToTarget) <= fovHalf;
    }

    function applyAimAssist() {
        if (!aimAssistEnabled || !canvas) return;

        const crosshairX = canvas.width / 2;
        const crosshairY = canvas.height / 2;

        // Logic to find target and adjust aim
        const target = { x: Math.random() * canvas.width, y: Math.random() * canvas.height }; // Replace with actual target detection

        if (isTargetInFOV(target.x, target.y)) {
            const aimAssistDirectionX = target.x - crosshairX;
            const aimAssistDirectionY = target.y - crosshairY;
            const aimAssistDistance = Math.sqrt(aimAssistDirectionX ** 2 + aimAssistDirectionY ** 2);
            const aimAssistSpeedX = (aimAssistDirectionX / aimAssistDistance) * 5; // Adjust speed as needed
            const aimAssistSpeedY = (aimAssistDirectionY / aimAssistDistance) * 5;

            const aimAssistX = crosshairX + aimAssistSpeedX;
            const aimAssistY = crosshairY + aimAssistSpeedY;

            canvas.dispatchEvent(new MouseEvent('mousemove', { clientX: aimAssistX, clientY: aimAssistY }));
        }
    }

    document.addEventListener('keydown', (event) => {
        if (event.key === 'F1') {
            toggleAimAssist();
        }
    });

    // Initialize the script after the DOM is fully loaded
    window.addEventListener('load', () => {
        initialize();
        setInterval(applyAimAssist, 16); // 60fps
    });

    console.log("Tampermonkey script with FOV loaded!");
})();