UltimateZoneBuilder/Help/gzdb/gldefs.html

45 lines
2.8 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>GZDoom Builder features</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="../default.css" media="screen" title="Default" />
<style type="text/css">
<!--
.style1 {color: #0000FF}
-->
</style>
</head>
<body>
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
<param name="keyword" value="Template">
</object>
<div id="gz_title">
<h1>GLDEFS and MODELDEF support</h1>
</div>
<div id="contents">
<p>GZDoom Builder will automatically load data from GLDEFS and MODELDEF lumps if they are present in map resources.
<p><strong>MODELDEF support:</strong> all relevant MODELDEF properties and flags are supported. Sprite translations are not supported.<br />
<strong>GLDEFS support:</strong>
only dynamic light definitions are currently supported. Brightmaps and glowing flats support may be added in the future. You can use &quot;<strong>//$GZDB_SKIP</strong>&quot; special comment to abort parsing of the current file.<br />
2014-03-07 12:37:47 +00:00
You can reload GLDEFS and MODELDEF by using &quot;<strong>Reload GLDEFS</strong>&quot; and &quot;<strong>Reload MODELDEF</strong>&quot; actions.<br />
To enable GZDoom's built-in GLDEFS dynamic light definitions, you need to add "<strong>lights.pk3</strong>" as a map resource. Don't forget to check "<strong>Exclude from testing parameters</strong>" chekbox while adding it, otherwise GZDoom won't load your map. "<strong>lights.pk3</strong>" can be found in GZDoom folder.
<p><b>If you are creating maps for Doom or Doom 2, you probably don't need to read this, since required information is already added for those games.</b><br />
<br />
<b>To load models or dynamic lights defined in GLDEFS for things defined in configuration files:</b><br />
To display a model instead of a thing sprite, or to attach a light defined in GLDEFS, GZDB needs to know a thing's class name (because that's how overrides are defined in MODELDEF and GLDEFS). Things defined in Doom Builder configuration files don't have this value. So, if you aren't using configs, which came with GZDoom Builder, or you are creating maps for games other than Doom and Doom 2, you'll need to add a new value named "class" to thing definition in game configuration:<br />
<pre>3001
{
title = "Imp";
sprite = "TROOA2A8";
<span class="blue">class = "DoomImp";</span> // <- you'll need to add this value
}</pre>
You can find all class names for things at <a href="http://www.zdoom.org/wiki/Classes">http://www.zdoom.org/wiki/Classes</a>.</p>
</div>
</body>