Adding modding folder with a hacked build.

This commit is contained in:
ml
2026-09-26 08:53:08 +02:00
parent cdb960dc71
commit c91080aba7
755 changed files with 50424 additions and 0 deletions
@@ -0,0 +1,17 @@
package object
// Pivot returns the assumed height offset for placing objects.
func Pivot(prop CommonProperties) float32 {
const DefaultHeight = 1.0 / float32(0xbd00)
const PhysicsScale = 96.0
switch {
case (prop.RenderType == RenderTypeTextPoly) || (prop.RenderType == RenderTypeSpecial):
return 0.0
case prop.PhysicsZ != 0:
return float32(prop.PhysicsZ) / PhysicsScale
case prop.PhysicsXR != 0:
return float32(prop.PhysicsXR) / PhysicsScale
}
return DefaultHeight
}