Cut 6: allow high-altitude roof-ridge deflection while keeping below-roof wall guard unconditional
This commit is contained in:
parent
bffa16e0c7
commit
79ac47d769
1 changed files with 6 additions and 3 deletions
|
|
@ -485,14 +485,17 @@ namespace RustToDust.Core
|
|||
|
||||
if (!sampleNow.IsInsideBuildingFootprint &&
|
||||
sampleNext.IsInsideBuildingFootprint &&
|
||||
(!sampleNext.IsBuildingRoof || !pod.AllowFlatRoofLanding))
|
||||
!sampleNext.IsBuildingRoof)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!pod.AllowFlatRoofLanding &&
|
||||
bool lowOverNextRoof = pod.Phase == OrbitalPodPhase.RetroBurn || pod.Y - sampleNext.SurfaceY < hStop + 6.0f;
|
||||
|
||||
if (lowOverNextRoof &&
|
||||
!pod.AllowFlatRoofLanding &&
|
||||
sampleNext.IsBuildingRoof &&
|
||||
(!sampleNow.IsBuildingRoof || sampleNext.SurfaceY > surfaceNow + 0.25f))
|
||||
!sampleNow.IsBuildingRoof)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue