LOCINFO

From OdaWiki
Revision as of 02:50, 23 November 2012 by AlexMax (Talk | contribs) (Created page with "LOCINFO is a text lump designed to place names on areas of the map, similar to Quakeworld .loc files or the ZDaemon SECTINFO lump format. It is designed to be parsed with Hex...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LOCINFO is a text lump designed to place names on areas of the map, similar to Quakeworld .loc files or the ZDaemon SECTINFO lump format. It is designed to be parsed with Hexen 2's script parser and thus follows similar syntactic conventions to MAPINFO.

map <maplump>

This definition is considered a header for other definitions, which designates which map lump in the WAD they apply to.

point <x> <y> <z> <location>

This designates an x, y and z location on the map as a specific location.

rect <x1> <y1> <x2> <y2> <location>

This designates an area of the map as a specific location with one corner point at x1, y1 and the other corner point at x2, y2.

circle <x> <y> <radius> <location>

This designates an area of the map as a specific location with the center point at x, y and a radius. Note that this is a circular radius, not a square one.

Determining location

For a particular map definition, any location that has an area or volume to it is checked in order, and the first match 'wins'. If no area or volume-based locations match, then the distance from the given location is measured between all point locations. If there are no point locations, no location is returned.