Skip to content

Draft: MapObjectScale Port from Kart

NepDisk requested to merge NepDisk/srb-2:mapobjectscale into next

This is a simple port of mapobjectscale from SRB2Kart, this allows you to scale all objects in the map based on a value set inside its map header.This can allow for bigger maps to be made by mapping at a smaller scale and then adjusting the mapobjectscale to match.

To use put "MobjScale" in a map header and give it a value in fracunits. This will determine the base size of all objects in the map.

This needs more testing to ensure backwards compatibility is guaranteed while making sure things and other gameplay stuff scales accurately based on mapobjectscale as well.

TOL_ERZ3 is being kept for backwards compatibility and will disable mapobjectscale if that is active

Checklist:

  • Initial port
  • Ensure UDMF maps work with this
  • Ensure most preexisting things scale and function well based on mapobjectscale while not breaking backwards compat on non-scaled maps
Edited by NepDisk

Merge request reports

Loading