BahamutxD
Jack of all trades, master of none
Hello,
I was trying to increase the view limit from +- 2 levels while underground.
The changes I made were.
Server (tfs 1.3)
Under bool Creature::canSee(const Position& myPos, const Position& pos, int32_t viewRangeX, int32_t viewRangeY)
booth under protocolgame.cpp and creature.cpp
to
And in OTClient (latest)
In const.h
to
The thing works, can see +- floors (or so it seems) but the character movement bugs/desyncs just while being underground.
Any idea on what could be wrong or missing?
I was trying to increase the view limit from +- 2 levels while underground.
The changes I made were.
Server (tfs 1.3)
Under bool Creature::canSee(const Position& myPos, const Position& pos, int32_t viewRangeX, int32_t viewRangeY)
booth under protocolgame.cpp and creature.cpp
Code:
} else if (myPos.z >= 8) {
//we are underground (8 -> 15)
//view is +/- 2 from the floor we stand on
if (Position::getDistanceZ(myPos, pos) > 2) {
return false;
}
}
to
Code:
} else if (myPos.z >= 8) {
//we are underground (8 -> 15)
//view is +/- 2 from the floor we stand on
if (Position::getDistanceZ(myPos, pos) > 4) {
return false;
}
}
And in OTClient (latest)
In const.h
Code:
AWARE_UNDEGROUND_FLOOR_RANGE = 2,
to
Code:
AWARE_UNDEGROUND_FLOOR_RANGE = 4,
The thing works, can see +- floors (or so it seems) but the character movement bugs/desyncs just while being underground.
Any idea on what could be wrong or missing?
Last edited: