• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Why does that happen?

cabrera2608

New Member
Joined
Dec 21, 2018
Messages
110
Solutions
1
Reaction score
4
Well, players use Magebot and when they use diagonal keys in closed places and make the cross movement, the players freeze for a few seconds.
I think the problem lies in the creature.cpp
try editing the lines (lastStepCost) (stepDuration)
but that only accelerates the diagonals but the problem continues

I'm using the latest Otx update I don't know if anyone could fix it.

Creature.cpp
freezing on diagonals
 
can someone help me, I don't know if I don't explain myself well
but if the players want to walk diagonally in a space of 2 sqm and if they continue continuing, the server freezes them, I just want to modify that, I don't have that much exhaustion
 
Check Creature::eek:nCreatureMove()

There is a section like:

Lua:
if (oldPos.z != newPos.z) {
                //floor change extra cost
                lastStepCost = 2;
            } else if (Position::getDistanceX(newPos, oldPos) >= 1 && Position::getDistanceY(newPos, oldPos) >= 1) {
                //diagonal extra cost
                lastStepCost = 3;
            }

Change diagonal step cost to 1, or remove that line.
 
Back
Top