1. Has anyone found a solution/know of an existing plugin that prevents people from abusing teleports to build inside of rocks.

    I just watched a player put a foundation in a really tight corner of a rock, set a home on that foundation then place a block on top of it. Then when he teleports he's inside the rock and can then build.

    Any insight would be appreciated, cheers
     
  2. Request an anti glitch on the teleportation post
     
  3. I'm not talking about m-Teleportation, I just used it as an example of how people can abuse it.

    What would be a wise sanity check when using ANY teleport? Bit beyond my paygrade
     
  4. maybe checking if a player i in a rock and then teleporting him back.
     
  5. I'm not sure how to check that, are they registered with the server?
     
  6. You would require a plugin for that.
     
  7. I could code one if I knew how to detect the rocks
     
  8. I think working with Colliders or whatsoever. maybe check Build Blocker
     
  9. Look at LaddersAnywhere, I use RayCast in there (totally stolen from the Build plugin) to find what the user is looking at. I know rocks can come up in the list of hit objects. That said, I have no idea if it's possible to know if you are hitting the inside or outside of a rock, or even if the inside would trigger a raycast hit in this case. Seems like bullets are passing through so there's a chance they don't even trigger a hit when you are inside.

    Not sure we have access to size and shape of a rock either, so making location check vs rock position and size that's reliable might prove to be tricky. I don't know if we have access to the mesh of the rock... perhaps there's some unity function out there that could do a check to see if an entity is within another?

    I'd be interested in this if just to detect any player, sleeper or building block that is fully encased in a rock... and ban their lame asses.
     
  10. The shape of rocks is definitely going to be an issue, our sanity checks don't exist in that format
     
  11. I'll do some testing :)
    [DOUBLEPOST=1441975738][/DOUBLEPOST]Doesn't look like hitting the inside of a rock with raycast yields anything :(
     
  12. I have an anti glitch in legacy that prevented players from respawning inside a rock. Same idea could be done.
    Raycast down from the Sky to look at the player, it there is a rock: raycast up from the player: if there isnt a rock=> player is rock glitching
     
  13. That makes good sense! Didn't think of that one.
     
  14. Good concept, cheers