ekzarh wrote:Granger wrote:viewtopic.php?f=48&t=57609 - somewhere in that topic. Would need resources (and most likely a server that can be distributed), but doable.
And would be extremely cool.
The thing is - it does not.
Right now server has a LoS implemented. It is about 50-60 tiles radius.
So yes - server already has:
for(every object in 4 surrounding grids){
if(player.distance(object) < 60 tiles){
renderlist.add(object)
}}
If we pass any number instead of constant '60' we can achieve any pitch-darkness. With modifications I've listed before - seeing player behind a wall and having houses in same dimension.
The NOX game style is way more complicated because it is based on direction player looks. So we either have '360-degree los mod' possiblity or overload server CPU with player direction vs visibility checks.
Render range (as implemented) and Line Of Sight are vastly different mechanics, with the latter you can't look through walls.