P_GetSlopeZAt() was broken with any equation slope outside of this circle :
P_GetSlopeZAt()
Test map (plus the script I used to debug this):
Test.wad
Test.lua