Players able to teleport into foundationFixed
Hello there,

We have discovered a bug which allows any player to teleport into a foundation. To do this the player has to place two foundations, one with a tool cupboard on. They then need to set a home on the other foundation. Once set, they destroy that foundation and place a new one, which is 1 higher than the one previously placed - they can then upgrade that foundation to HQM. Then teleport to the home that was set on the foundation that was one below the new one and there inside it. They can shoot, build you name it without being seen. This bug needs to be addressed quickly before it is leaked and becomes a HUGE problem for modded servers that run your plugin. Thanks

Screenshot: http://prntscr.com/o72h9t
This has been an issue off and on for some time.  I have made a few attempts to fix it but I guess it persists in some form or another.
yeah this has been an issue with teleporting, same goes for inside rocks or under the world.

Only way to counter this is add in the rules that this is not allowed and do your job as an admin by checking peoples base (or using admin radar "/adminradar 1 5000 box stash" and so on

This bug still persists, has anyone fixed?

I've also tried numerous fixes and no one solution of mine works for any foundations yet

I stand corrected, 30 minutes later and I might've come up with a solution...

Did you post this into 1.50 Nivex? Thanks for coming up with a fix for this!

no, I figured it out after I updated. It will be in 1.5.1

Great work, thanks for the prompt fix!

nivex

no, I figured it out after I updated. It will be in 1.5.1

Could this fix be applied in old versions?

        private bool UnderneathFoundation(Vector3 position)
        {
            RaycastHit hit;
            if (Physics.Raycast(position + new Vector3(0f, 3f, 0f), Vector3.down, out hit, 5f, Layers.Mask.Construction, QueryTriggerInteraction.Ignore))
            {
                var block = hit.GetEntity() as BuildingBlock;

                if (block.IsValid() && (block.prefabID == 72949757 || block.prefabID == 3234260181))
                {
                    return hit.point.y > position.y;
                }
            }
            return false;
        }
Locked automatically