Map Extensions
A Map Extension lets you add map content to an existing compiled map. For example, add new geometry to a map that ships with the game.
Limitations
Map Extensions have the following limitations:
- It cannot modify anything in the parent map (Particularly: they cannot remove entities or affect baked lighting.)
- Static objects in the extension map won't cast shadows from static lights in the parent map.
- It can reference entities in the parent map via I/O, but must use the "final" fixed-up name rather than the Hammer name of the entity (use ent_text to find it).
Construction
First, create a new map in Hammer with File → New.
To have a good frame of reference, add a prefab that references an existing shipping map (find them in content/hlvr/maps/release/*)
IMPORTANT STEP: Select the prefab, expand the Transform group and check Editor Only and Transform Locked.
Editor Only
- Allows you to see the parent map in Hammer without compiling it into your map. If compiling your map takes a long time, you may have forgotten this!
- Bug:Prefabs flagged as
editor only
are still pre-processed by the compiler before they are discarded. This adds time to some very fast compiles (entities only, etc). [todo tested in?]
Transform Locked
- Improves editor performance and prevents you from accidentally offsetting your guide (and the rest of your map) from the parent map.
Save and compile your map.
Restart the Workshop Tools and goto "edit addon info..." on the addon selection screen.
Link your parent/extension maps together.
- (Ignore the Playable Maps section. It is for new, full featured maps only.)
Re-run the game, and load the parent map using the 'addon_tools_map' command in the console:
addon_tools_map a2_pistol
You should see your extension map loaded and overlaid on top of the original map: