Fps

idk

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

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

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==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}`);
    };

});