Gats.io - No Camera Movement

helps if you're used to other io games' fixed view

< 脚本Gats.io - No Camera Movement的反馈

评价:一般 - 脚本能用,但还有一些问题

§
发表于:2022-07-14
编辑于:2022-07-14

This script cripples the effectiveness of aimbot scripts that might be used in combination with this script. (makes aimbot look directly at enemies instead of where they will be by the time the bullets get to them)

Please do this instead of changing RD.prototype.applyPrimaryUpdate:

setInterval(()=>{

//don't do anything if the camera does not exist
if (!c2) return;

//static camera hack
c2.update = function () {
    var player = RD.pool[c2.trackingId];
    if (c2.trackingId) {
        c2.x = player.x - j40.x;
        c2.y = player.y - j40.y;
    }
}

//required to do constantly because the game resets c2 in some cases
//I could find out when it does that and hook the function that inits c2 but this works well enough
}, 100);
§
发表于:2022-07-15

So here is the version without the setInterval that uses a hook instead that I made at 3 in the morning.

//inject some code into the message parser that checks if the camera needs to get its hacked method (re)added
let old_b18 = b18;
b18 = function(wsMsgEvent) {
    //let the game parse the websocket message like nothing suspicious is happening at all :))))))
    old_b18(wsMsgEvent);
    //very light message parsing to check if that message made b18() c2 (re)set
    if (!('|' + a67(wsMsgEvent.data)).includes('|a')) return;
    //static camera
    c2.update = function () {
        var player = RD.pool[c2.trackingId];
        if (c2.trackingId) {
            c2.x = player.x - j40.x;
            c2.y = player.y - j40.y;
        }
    }
}

发表回复

登录(不可用)以发表回复。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址