xOBSE icon indicating copy to clipboard operation
xOBSE copied to clipboard

GetGroundSurfaceMaterial Oddities

Open qwertyasdfgh2 opened this issue 4 years ago • 3 comments

GetGroundSurfaceMaterial function only seems to return correct values when player is standing on an object with set material type. When standing on terrain it always returns 31 (Default/Unknown) regardless of material type set in land texture. Is this a bug or just a limitation?

Additionally, when waterwalking (using magic) it also returns 31 - one would expect it to return 8 (Water) in that situation.

qwertyasdfgh2 avatar Jul 05 '21 16:07 qwertyasdfgh2

IIRC (it's been nearly a decade since I implemented the command, so I could be wrong), it's a limitation as the engine doesn't assign the correct Havok material to the terrain. One could theoretically patch the physics engine to do this, though.

shadeMe avatar Jul 05 '21 17:07 shadeMe

Well, that's a shame. Anyway, if it can't be fixed from OBSE, feel free to close this.

qwertyasdfgh2 avatar Jul 07 '21 20:07 qwertyasdfgh2

I'm willing to have this fixed, but I have nothing about havok and terrains

llde avatar Jul 10 '21 12:07 llde