Gats.io - No Camera Movement

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

< Commentaires sur Gats.io - No Camera Movement

Avis: OK - le script fonctionne, mais souffre de quelques problèmes

§
Posté le: 2022-07-14
Édité le: 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);
§
Posté le: 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;
        }
    }
}

Poster une réponse

Connectez-vous pour poster une réponse.