m-byte918 / MultiOgarII

A continued version of the original MultiOgar, an open source Ogar server implementation written with Node.js.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Speed in config.js doesn't do anything

dragongoose opened this issue · comments

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

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;
    };

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.