forgottenserver icon indicating copy to clipboard operation
forgottenserver copied to clipboard

maxViewportY and maxViewportX wrong value?

Open conde2 opened this issue 2 years ago • 4 comments

What should be the value for maxViewport? According to the comments it should be maxViewportX = 9 maxViewportY = 7

But they are both 11

image

Anyone can clarify why?

conde2 avatar Dec 10 '23 00:12 conde2

AFAIK maxViewportX, maxViewportY are used for creature's sight range, and maxClientViewportX, maxClientViewportY for client viewport, so creatures can "see" players outside the client viewport and so

reyaleman avatar Dec 13 '23 04:12 reyaleman

AFAIK maxViewportX, maxViewportY are used for creature's sight range, and maxClientViewportX, maxClientViewportY for client viewport, so creatures can "see" players outside the client viewport and so

I think he means why is the value 11/11 and not 9/7 😅

I don't know either

EPuncker avatar Dec 13 '23 15:12 EPuncker

I think it's basically so the monsters don't look so robotic. Otherwise we would see monsters that stay sleeping without doing anything on the edges of the client's screen, generally when you are on a higher or lower floor.

MillhioreBT avatar Dec 13 '23 16:12 MillhioreBT

@MillhioreBT

That's make sense, probably that's the case, we can see creatures up to 2 floors what gives some extra tiles. But is strange that they are both the same value and the viewport is smaller in the Y axis

conde2 avatar Dec 13 '23 16:12 conde2