m-byte918 / MultiOgarII

A continued version of the original MultiOgar, an open source Ogar server implementation written with Node.js.
Apache License 2.0
126 stars 131 forks source link

Speed in config.js doesn't do anything #1530

Closed dragongoose closed 4 years ago

dragongoose commented 4 years ago

i cant get the speed config to work no matter what i set it to its always slow.

poposita commented 4 years ago

in playerCell.js change the getSpeed() function fot this

getSpeed(dist) {
        var speed = 2.2 * Math.pow(this._size, -0.439);
        speed *= 40 * this.server.config.playerSpeed;
        return Math.min(dist, speed) / dist;
    };
dragongoose commented 4 years ago

in playerCell.js change the getSpeed() function fot this

getSpeed(dist) {
        var speed = 2.2 * Math.pow(this._size, -0.439);
        speed *= 40 * this.server.config.playerSpeed;
        return Math.min(dist, speed) / dist;
    };

Thanks! this worked. someone should really fix it.