Prefab
grand similac wait whisper s05 smallville illinois senator loma linda oxford hills realty word art what is my mac address xp catherine bell measurements wachovia car loan rates empire sports network folds jumpking trampoline emotional roots of disease west virginia golden gloves symptom of meningiomas nine black alps page visible laser module bambie alc 880 driver elephant man.com www casual corner com the force due to gravity asp encryption algorithm most important computer components advanced carp fishing free mature video india australia new hampshire airport pokemon emerald the spanish influenza pictures of hands johne equestriansingles.com manyways junction truck rims audio cars strathmore ecampus sitemap ecotourism wecam chats home search lotion for dry skin new mobile homes prescription medicine web hold em poker top old idlewild park catering supplies little prince boston opera ascii value for a raster logs luke air force base powers of the mind truth hurts addictive lyric staircases design www.optoutprescreen.com wager manchester fashion accessories t1 83 plus calculator free wallpaper downloads bbs pedo stacey keibler dogpile email brooke richards video, brooke richards evinrude spark plug china importer toy writing submissions watergate newspaper article plus size bridal bra zotob virus solitaire diamonds likely more interial comfort measures during labor gas power scooters rsd private jet tour pen drive benton county jail red bottoms israel phone directory huge jugs kittens ragdoll paint gun picture of colonial child canon 300d frat boy jock extractor health juice part waring webmap motorola v170 washington county jail trucos msn machiavelli timeline welcome home banners vegas video 5.0 review june summer photography asuka sawaguchi oppenheimer european american shoe size comparison american symbols premployment screening tig senior pastor jobs a kiss between the legs ag chemical prices pf speaker systems canada trust efax mariah carey german tv wedding day jewelers store seedtime and harvest flooding nine days underage lolita sex, lolita sex warlock cheap gas powered scooters amitriptyline speak links nature valley sweet salty nut granola bar iron supplement ohio state bird cute young boys gallery yves rocher westie scottie tamagotchi web sites bay area carpet cleaning service information on diet saisaki restaurant joe paterno desert sun national racing museum mediashopping unix support first time home mortgages california tapes industrial home loans refinance rode runner ungulate mammal electric sunglasses erotic first time sex story antique bulova watches flirting tips for girls effects of alcohol envelope sizes new zealand history the sun newspaper the doors riders on the storm pokoemon sarah fullerton waterproof nontoxic cosmetic foundations webmap miller lite promotions coolnavi.com foreign language vonage song home wholesale gift baskets sitemap ohio amish tia and tamera mowry 13 year old teen pics shop fox band saw el paso county restorative techniques rent an rv canada airline yield definition maybelline new york cosmetics home based business marketing long beach business travel steelers will win the super bowl amateur teen model sitemap aol broadband tax debt invoice factoring company web beyonce booty page janet jones url mini lathes married woman who cheat nevada cathouses rapala cheap flights uk streamwood restaurants police auction online home school beautiful cross dressers import cars wallpaper gerard way pictures 6 day 7 nights gold derek jeter maria callas A premade fabrication, or prefab, is a separately saved object, usually consisting of multiple parts - brushes, props, or entity elements. The prefab system allows you to easily store pieces from your levels that can be used repeatedly. Examples of useful prefabs include hallways, pillars, special entity setups, etc.
Prefabs are simply small map files (.VMF) that contain only your prefab. These files are stored in a particular prefab folder, generally \sourcesdk\bin\prefabs
, so that Hammer can find them and allow you to easily insert them into your levels.
Prefabs can be organized into their own hierarchy by simply adding sub-folders to the \prefabs
directory. This allows you to sort prefabs based on, amongst others, the intended map or mod they belong to, thus possibly easing their navigation.
Creating prefabs
Prefabs can be created in the Hammer editor with these steps:
- If this prefab is intended to interact with named objects inside itself, add the "_&i" token at the end of each object's name. See Prefab tokens below.
- Select the objects you wish to include in your prefab (using <Ctrl>-click).
- If you plan on inserting the prefab using the Entity Tool, the origin (0,0,0) of your map will be used as a reference point to where you insert the prefab, so it is advisable to drag the selected objects to this origin and centering the prefab on it.
- Either click the Create Prefab button in the New Objects toolbar, or select the Create Prefab command from the Tools menu. (Shortcut key: <Ctrl>-R)
- A Save As... dialog will open, displaying the Hammer prefabs directory. Type in the filename to save your prefab as and click the Save button.
Note:While the .vmf extension should be automatically added to the filename, some users have experienced this not being the case. To be on the safe side, add .vmf to the filename to ensure that the prefab will show up. You can also add it later by browsing to the prefabs folder.
- The new prefab will now be available for insertion in the New Objects toolbar.
Prefab tokens
A special token "&i" can be added to the name of entities in prefab objects so the entity will have a unique name when placed in the level. When the prefab is placed, the &i token will be replaced by a unique number. The token can be included in the targetname, inputs and outputs, etc. All tokens in the prefab will be replaced with the same number. This allows entities in the prefab to reference each other, but still have a unique name so multiple prefabs won't trigger each other.
For example, a func_door entity with the name "door_sliding_&i" in the prefab would become "door_sliding_1" when placed in a level. Consecutive placements of the prefab would be called "door_sliding_2", "door_sliding_3", ...
A trigger_multiple included in the same prefab, with the name "trigger_sliding_&i", would share the same token number and be renamed "trigger_sliding_1", "trigger_sliding_2", "trigger_sliding_3", ...
Inserting prefabs
Once you have prefab objects created, it is a simple task to insert a prefab into your level.
There are two ways of putting a prefab into your level: Using the Entity Tool, or using the Block Tool.
The process is basically the same for both tools: First select the tool you wish to use, then select the prefab from the New Objects toolbar, and then insert it through one of the views.
The Entity Tool should be used for most prefab placement, as it retains the exact size of the original prefab. Placement with the Block Tool allows for resizing of the prefab as it's placed, but is slightly more time-consuming to place correctly.

Using the Entity Tool
The Entity Tool is used to place a prefab object that should retain its original size.
- Select the Entity Tool from the toolbar or by pressing <Shift+E>.
- In the New Objects toolbar, select a prefab library in the Categories: selection box.
- Select a specific prefab to insert from the library in the Objects: selection box.
- Click in the 3D view where you want the prefab to be placed, or click in one of the 2D views and press <Enter> to insert the prefab.
Using the Block Tool
The Block Tool is used if you want to insert a prefab scaled to a certain size.
To place a prefab object, scaling it to an exact size:
- Select the Block Tool from the toolbar or by pressing <Shift+B>.
- In the New Objects toolbar, select a prefab library in the Categories: selection box. Then select a specific prefab to insert from the library in the Objects: selection box.
- Drag a selection box in one of the 2D views, making sure it is the size and in the position that you want the prefab to be in each of the views.
- Press <Enter>. The prefab will inserted, and scaled to fit the selection box.
Available prefabs
For a list of available prefabs in the Source SDK, see Category:Prefabs.
External links
The following sites host custom made prefabs and models: