Garry's Mod

Garry's Mod

Not enough ratings
Adding game content paths to Hammer for your Map (Easy)
By FFox
So you want to map for GMOD and wish to have all of your Source games content available in Hammer? This is for you. No need to download anything!
   
Award
Favorite
Favorited
Unfavorite
Method:
Forget about using GCFScape and unpacking VPKs, manually having to extract/copy/paste/ content directly to your root GMOD folder increasing your storage capacity.

What you need:

-Garry's Mod (of course)
-Installed Source game you desire to add its content into Hammer to use in your GMOD Map.

In this case I am going to give you an example of my current configuration and games I want to read content from which are: CSS, TF2 and L4D2 (with all of its DLCs)

You dont really need any Source SDK 2007/08/2013 to map for GMOD. You can find Hammer editor already configured and fully functional in:

Steamapps/Common/GarrysMod/Bin/Hammer.exe

Knowing that and assuming you already know the basics of hammer lets get straight to the point.

All of your other Source games content in Hammer for your GMOD Map

Step 1: Locating mount.cfg

This is the file which tells Garry's Mod and Hammer to read assets from.

Head To:
Steam/steamapps/common/GarrysMod/garrysmod/cfg



Open "mount.cfg" with either Notepad or Notepad++ if you want to do things the tidy way. Im my case I am going with regular Notepad for simplicity.

Step 2: Editing mount.cfg

We are now going to add the game paths of the content you wish to use in Hammer. For better results it is recommended to have all the installed games in the same drive.

So,
Lets say I want my GMOD Hammer to read content from CSS TF2 and L4D2 (which is my current config by the way...)

These are the paths you are going to add to "mount.cfg" (make sure to respect them like in the screenshot, otherwise it wont work)

"CSS" "D:\Steam\steamapps\common\Counter-Strike Source\cstrike"
"TF2" "D:\Steam\steamapps\common\Team Fortress 2\tf"
"L4D2_BASE" "D:\Steam\steamapps\common\Left 4 Dead 2\left4dead2"
"L4D2_DLC1" "D:\Steam\steamapps\common\Left 4 Dead 2\left4dead2_dlc1"
"L4D2_DLC2" "D:\Steam\steamapps\common\Left 4 Dead 2\left4dead2_dlc2"
"L4D2_DLC3" "D:\Steam\steamapps\common\Left 4 Dead 2\left4dead2_dlc3"
"L4D2_UPDATE" "D:\Steam\steamapps\common\Left 4 Dead 2\update"

WARNING!: "D" is the drive where I keep my Steam Library, yours MAY BE DIFFERENT. Make sure to use the correct drive!

How it looks in mount.cfg



Step 3: Save and see the results

Open up Hammer from: Steamapps/Common/GarrysMod/Bin/Hammer.exe
*It is normal that Hammer takes a bit longer to load*

If done correctly, all the content of your desired games will be there ready for use. See the screenshots.

Info window when you first boot up Hammer:



The new textures successfully imported. See L4D2 & TF2 examples:



The asset browser:



Another example of the new imported models. In this case a boat from L4D2:



IMPORTANT NOTES - PLEASE READ

Since this is a LOCAL method you MUST HAVE ENABLED THE GAME CONTENTS IN GARRY'S MOD ASWELL. See image:



And SO the players who are going to play your map MUST HAVE the respective games you used installed and mounted aswell.

If not then yep, you must manually extract each texture, prop, model etc you used with GCFScape and pack them in the .GMA which contains your Map you are uploading or updating to the official Workshop.

I hope you enjoyed and found this little guide useful. I am a newcomer to Hammer. The map featured in the screenshots is my first one and it is available for everyone in the Workshop, you can visit it here:

https://steamcommunity.com/sharedfiles/filedetails/?id=2318454933

That's all folks!
9 Comments
Linkup Mar 22 @ 3:25am 
Can you do one for EP2 singleplayer using Hammer++? I want CS:S and DoD:S content and can't get it to fully work.
FFox  [author] Mar 4 @ 1:41am 
This guide is to mount content for Hammer editor... to make maps with custom content, packing would come after that. For mappers. Not players.
Linkup Mar 4 @ 1:08am 
Can't you just use CompilePal and pack any used mounted content into the bsp? This way you don't have to worry about if they have the game and if they have it mounted the same way.
FFox  [author] Nov 13, 2024 @ 7:20am 
Ur must be doing somethinging wrongkin
Dingus :P Aug 21, 2024 @ 6:52pm 
I did exactly as instructed and it still didnt work :(
tonio2bcool Oct 24, 2023 @ 7:47pm 
Is it the same for SFM?
Grease Monkey Mar 5, 2023 @ 5:18pm 
I'm use to crashes a lot, stinky ol' SFM.
Thanks for the help though!
FFox  [author] Mar 5, 2023 @ 5:15pm 
my pro tip is to first learn default hammer then switch to hammer++ remeber it is unfinished and very unsable with lots of crashes
Grease Monkey Mar 5, 2023 @ 5:13pm 
Good lord thank you, I've been having trouble finding how to do this.
Do you also know a way to do this in Hammer++?
I'm still pretty new with map making I find Hammer++ to be more user friendly.