http://ufoai.org/w/index.php?title=Mapping/Prefabs&feed=atom&action=historyMapping/Prefabs - Revision history2024-03-28T19:51:16ZRevision history for this page on the wikiMediaWiki 1.35.4http://ufoai.org/w/index.php?title=Mapping/Prefabs&diff=40759&oldid=prevShipIt: /* Creating new prefabs */ formatting2012-10-20T10:58:03Z<p><span dir="auto"><span class="autocomment">Creating new prefabs: </span> formatting</span></p>
<p><b>New page</b></p><div>==Creating new prefabs==<br />
To integrate new prefabs into the prefabs sidebar of UFORadiant you need two things - the [[Mapping/map file file format|map]] file and a screenshot. The screenshot must be in the format 128x100px. Using in-game screenshots here is prefered. The map is a normal *.map file that you can create with the map editor. The only thing you should keep in mind is that you should align the prefab to the world origin. As an example see all the other existing prefabs.<br />
<br />
<br />
===Prefabs for models===<br />
The models that can be used in a map are usually located in {{path|models/objects/}}.<br />
<br />
A prefab of a [[Mapping/Entities/misc_model|misc_model]] should also contain all the clips that are needed.<br />
*One layer of nodraw brushes. It is important that those clips have no levelflags set, else they will cause black holes in the world geometry when touching other brushes. This layer is used to break both the Line of Sight and the Line of Fire.<br />
*One layer of lightclip brushes for the shadows. It is recommended to set proper levelflags here. This is not needed for the the mapcompiler, but it prevents the clips from getting invisible when using the levelselector in UFORadiant.<br />
*Actorclips, to prevent actors from walking into the model. Placing those clips should follow the guidlines proposed [[Mapping/Checklist#Brush_alignment|here]]. It is recommended to set proper levelflags here. This is not needed for the the mapcompiler, but it prevents the clips from getting invisible when using the levelselector in UFORadiant.<br />
<br />
<br />
[[Category:Mapping]]<br />
[[Category:Contribute]]</div>ShipIt