branchrust_reboot/main/fix_foundation_clipping_rockscancel
6 Commits over 0 Days - ∞cph!
Enable on foundation & triangle foundation
Add ability for certain SocketMod_TerrainCheck to count as in-ground when clipped into rock (so we don't introduce bugs on other deployables)
Use Antihack.IsInsideMesh() to determine if a terrain corner is clipped into a rock, fixing foundations placed on top of tall rocks and clipped into it not being buildable
Bypass placing in rock check for square & triangle foundation
- allows the foundations to clip into the "ground" even if it's a rock, the same way they can clip into the terrain normally
- should be safe because placing foundations alone into rocks doesn't do anything useful & there should be additional checks if the foundation is completely in the rock
Add support for certain prefabs to bypass TestPlacingThroughRock()
Add a big cliff to CraggyIsland as all the old ones got nuked during the world update
- put below the power lines so it's not floating anymore & gives us a place to test the bug