Base: The Forgotten Server 1.3 (Mark Samman/gustavo contreiras), Versão: 10.98. sources repository used -- > SRC (Gustavo Contreiras)
Hey friends,
I have a little problem with monsters' vision radius,
I'm trying to get the Monsters to be able to see the Players from a distance compatible with the number of tiles added to my server / client (x.15, y.9)
but monsters are only activated over short distances, like a Tibia original tiles range.
Currently the values of my map.h are like this:
And in creature.cpp like this:
That was to make the activity range of monsters x = 15 and y = 9 respectively from his position, right?
But monsters remain limited to standard distances...
already tried to replace the line :
for:
it didn't work for me,
I'm forgetting something?
Hey friends,
I have a little problem with monsters' vision radius,
I'm trying to get the Monsters to be able to see the Players from a distance compatible with the number of tiles added to my server / client (x.15, y.9)
but monsters are only activated over short distances, like a Tibia original tiles range.
Currently the values of my map.h are like this:
C++:
class Map
{
public:
static constexpr int32_t maxViewportX = 15; //min value: maxClientViewportX + 1
static constexpr int32_t maxViewportY = 9; //min value: maxClientViewportY + 1
static constexpr int32_t maxClientViewportX = 14;
static constexpr int32_t maxClientViewportY = 8;
And in creature.cpp like this:
C++:
bool Creature::canSee(const Position& pos) const
{
return canSee(getPosition(), pos, Map::maxViewportX, Map::maxViewportY);
}
That was to make the activity range of monsters x = 15 and y = 9 respectively from his position, right?
But monsters remain limited to standard distances...
already tried to replace the line :
C++:
return canSee(getPosition(), pos, Map::maxViewportX, Map::maxViewportY);
C++:
return canSee(getPosition(), pos, 15, 9);
it didn't work for me,
I'm forgetting something?