Create custom Garry's Mod maps with Hammer Editor. Learn basic brush creation, entity placement (player start, lights), and map compilation.
Creating your own custom maps in Garry's Mod opens up a universe of possibilities for unique gameplay experiences and showcases. The primary tool for this is Valve's Hammer Editor, a powerful level des application. This introduction will cover the basics of getting started with Hammer and creating your first simple map.
What is the Hammer Editor?
Hammer Editor is the official level des tool for games built on the Source engine, including Garry's Mod. It allows you to construct environments using brushes, place entities (like props, NPCs, and lights), and define game logic. While it has a learning curve, mastering its fundamentals is essential for custom map creation.
Getting Started with Hammer
1. Installation: Hammer Editor is part of the Source SDK, which can be found in your Steam Library under 'Tools'. Search for 'Source SDK' and install it. Once installed, launch 'Source SDK' and select 'Garry's Mod' from the dropdown menu, then click 'Launch Hammer Editor'.
2. The Interface: Hammer presents a multi-view interface:
- 3D Viewport: Shows a rendered view of your map.
- 2D Viewports (Top, Front, Side): Orthographic views for precise placement and manipulation.
- Object Properties: A window to edit the attributes of selected objects.
- Toolbars: Contains various tools for selection, manipulation, brush creation, and entity placement.
Basic Map Construction: Brushes and Geometry
Maps in Hammer are built using 'brushes'. A brush is a 3D shape (typically a cube, but can be extruded into other forms) that defines solid geometry. These brushes form the walls, floors, and ceilings of your map.
- Select the Block Tool: This is the primary tool for creating brushes.
- Draw a Brush: In one of the 2D viewports (e.g., Top view), click and drag to define the dimensions of your brush.
- Create the Brush: Press Enter to transform your 2D shape into a 3D brush.
- Apply Textures: With the brush selected, open the 'Texture Browser' (usually accessible via a button on the toolbar or by pressing Shift+A). Search for textures (e.g., 'concrete', 'metal', 'wood') and apply them to the faces of your brush.
- Build Basic Room: Create a floor brush, then four wall brushes around it. Ensure the brushes are aligned correctly.
Placing Entities
Entities are objects that have specific functions within the game. The most crucial entity for a playable map is the 'info_player_start'.
- Select the Entity Tool: This tool looks like a lightbulb or a person icon.
- Place 'info_player_start': In your 3D view or a 2D view, click where you want You to spawn. This entity tells Garry's Mod where to place You when they join the map.
- Add Lighting: Without lights, your map will be pitch black. Use the Entity Tool to place a 'light_environment' for outdoor lighting or a 'light' entity for indoor point lights. Adjust their properties (like brightness and color) in the Object Properties window.
Compiling and Testing
Once you have a basic structure, you need to compile your map to make it playable in Garry's Mod.
- Save Your Map: Go to File > Save As... and save your map file (e.g., `my_first_map.vmf`) in the `garrysmod/maps` directory.
- Compile: Go to File > Run Map.... For a quick test, you can usually leave the default compile settings. Click 'OK'.
- Test in Garry's Mod: Launch Garry's Mod. Open the console (`~`) and type `map my_first_map` (replacing `my_first_map` with your map's filename) and press Enter.
This is just the beginning. Hammer Editor offers immense depth for creating complex geometry, adding interactive elements, and designing intricate levels.
100% Human-Written. AI Fact-Checked. Community Verified. Learn how AntMag verifies content