Limiting render distance

Discussion in 'Plugin Development' started by caseif, Nov 19, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    caseif

    I'm currently developing a Slender-inspired plugin, and one of the key elements is a lack of visibility. Unfortunately, I have no idea how to go about accomplishing this, other than giving players a BLINDNESS effect (which in addition to being way too powerful, could easily be overridden), or withholding chunks from the player past a certain distance and requesting they turn their render distance down so it doesn't look ugly. Is there a solution I'm overlooking, or will I have to settle for one of these?
     
  2. Offline

    ColonelHedgehog

    I don't think so. Render distance is a client-side option. :-/
     
  3. Offline

    caseif

    Hm, I was hoping for some sort of hacky fix using shaders or something. That's... disheartening.
     
  4. Offline

    ColonelHedgehog

    I hear you. When I was working on my WeepingWithers plugins I scoured the web for a way to detect all objects in your FOV, but alas, clients can differ. ;-;
     
  5. Offline

    thomasb454

    Why not try blindness with speed?
     
  6. Offline

    caseif

    Heh, you made that plugin? That's funny, someone actually suggested I talk to you in the thread I made about the plugin idea. I may want to keep in touch. .-.

    That doesn't appear to increase the view distance; it only impacts the FoV.
     
  7. Offline

    teej107

    You could turn down the render distance on the server.
     
  8. Offline

    caseif

    I can't seem to get that working properly, but even if I could, it would have the same effect as withholding packets.
     
  9. Offline

    ColonelHedgehog

    I'm faaaaaamous! :p :p

    But seriously, what I ended up doing was using block vectors to see who you were looking at directly.
     
  10. Offline

    caseif

    Hm, so you'd need to have a direct line of sight to the wither? That doesn't entirely work for my purposes, since you can't be able to see Slender at all for him to move. I guess I could just do a bit of vector comparison, though, and hope the player isn't using quake pro. :p
     
  11. Offline

    ColonelHedgehog

    I tried that too, but it was buggy as heck, and plus I found the player could just use F5 as well.
     
  12. Offline

    caseif

    Ugh, that throws a wrench into my entire plugin. If you'll excuse me, I'm going to go stress over how to counter this.
     
    ColonelHedgehog likes this.
  13. Offline

    ColonelHedgehog

    Yeah, really sucks when you hit these client-related walls. :-/
     
  14. Offline

    caseif

    Idea: Slender can only move while invisible. I think that should suffice for now. Still stuck on visibility though... I think I'll just force a cutoff and ask the players to turn down their client's render distance.
     
    ColonelHedgehog likes this.
  15. Offline

    thomasb454


    Your view is limited, but isn't that the effect you want?
     
  16. Offline

    dori99xd

    server.properties:[​IMG]

    I think that is, what you are searching for ;)
     
    ColonelHedgehog likes this.
  17. Offline

    ColonelHedgehog

    Well spotted.
     
  18. Offline

    Assist

    dori99xd ColonelHedgehog
    This was already suggested by teej107 , hence the post
     
  19. Offline

    ColonelHedgehog

    Oh. That post didn't show up for me. O_O

    Well spotted all around lol.
     
  20. Offline

    dori99xd

    Assist I don't see @teejey107's post :confused:
     
  21. Offline

    caseif

    I can make do with that, but I'd prefer an alternate solution, since it would effectively just induce a sudden dropoff in the world around the player.
     
    thomasb454 likes this.
  22. Offline

    teej107

    Because teejey107 never posted on this thread.

    ShadyPotato
    Don't know how efficient this would be but you could try sending block changes to the client that creates a wall to limit the view.
     
  23. Offline

    xTrollxDudex

    Which chunks to load and what is sent is determined by the server, the client must request it. You can decline this request.
     
  24. Offline

    caseif

    I know that, but the client decides whether to render fog where the worlds ends.
     
  25. Offline

    xTrollxDudex

    Is that undesirable?
     
  26. Offline

    caseif

    Yes, but if need be, I can take this approach anyway.
     
Thread Status:
Not open for further replies.

Share This Page