Fps

idk

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Fps
// @namespace    ok
// @version      3.4
// @description  idk
// @author       Umeyr
// @match        zombs.io
// @license      umeyr
// @icon         https://i.pinimg.com/736x/15/16/ce/1516cef68f1e859003a73508d3dcd899.jpg
// @grant        none
// ==/UserScript==
let dimension = 1;
const onWindowResize = () => {
    const renderer = Game.currentGame.renderer;
    let canvasWidth = window.innerWidth * window.devicePixelRatio;
    let canvasHeight = window.innerHeight * window.devicePixelRatio;
    let ratio = Math.max(canvasWidth / (1920 * dimension), canvasHeight / (1080 * dimension));
    renderer.scale = ratio;
    renderer.entities.setScale(ratio);
    renderer.ui.setScale(ratio);
    renderer.renderer.resize(canvasWidth, canvasHeight);
    renderer.viewport.width = renderer.renderer.width / renderer.scale + 2 * renderer.viewportPadding;
    renderer.viewport.height = renderer.renderer.height / renderer.scale + 2 * renderer.viewportPadding;
}
onWindowResize();
window.onresize = onWindowResize;
window.onwheel = e => {
    if (e.deltaY > 0) {
        dimension = Math.min(dimension + 0.01);
        onWindowResize();
    } else if (e.deltaY < 0) {
        dimension = Math.max(0.1, dimension - 0.01);
        onWindowResize();
    }
}
// rendering code
window.SRG = () => {
    window.sub = !window.sub;
    if (window.sub) {
        game.renderer.ground.setVisible(false)

    } else {
        game.renderer.ground.setVisible(true)


    }
}
game.network.addRpcHandler("ReceiveChatMessage", e => {
    if(e.message == "!ground") {
        window.a = ! window.a;
        window.SRG();
        game.ui.components.PopupOverlay.showHint(`Ground Toggle is Now ${window.a}`);
    };
    if(e.message == "!npc") {
        window.b = ! window.b;
        window.SRN();
        game.ui.components.PopupOverlay.showHint(`NPC's toggle is Now ${window.b}`);
    };
    if(e.message == "!env") {
        window.c = ! window.c;
        window.SRE();
        game.ui.components.PopupOverlay.showHint(`Enviroment Toggle is Now ${window.c}`);
    };
    if(e.message == "!proj") {
        window.d = ! window.d;
        window.SRP();
    };

    if(e.message == "!everything") {
        window.e = ! window.e;
        window.SREV();
        game.ui.components.PopupOverlay.showHint(`Everything Toggle is Now ${window.e}`);
    };

});