Mounting multiple games
Jump to navigation
Jump to search
This was originally posted on the Chatbear Source Coding forums, relating to one of my questions. I am posting it here and saying now that i am not the author of this post, but it is incredibly useful.
This code allows you to use Counter-Strike, HL2 or DOD:S content in your Source Mod.
cdll_client_int.cpp - Go to about line "622" and paste this. CLIENTSIDE
filesystem->AddSearchPath("hl2mp", "GAME"); filesystem->AddSearchPath("hl2", "GAME"); filesystem->AddSearchPath("episodic", "GAME"); filesystem->AddSearchPath("dod", "GAME"); filesystem->AddSearchPath("cstrike", "GAME"); filesystem->MountSteamContent(220); filesystem->MountSteamContent(320); filesystem->MountSteamContent(300); filesystem->MountSteamContent(240);
Now open GameInterface.cpp (SERVERSIDE)and about line 551 paste this.
filesystem->AddSearchPath("hl2mp", "GAME"); filesystem->AddSearchPath("hl2", "GAME"); filesystem->AddSearchPath("episodic", "GAME"); filesystem->AddSearchPath("dod", "GAME"); filesystem->AddSearchPath("cstrike", "GAME"); filesystem->MountSteamContent(220); filesystem->MountSteamContent(320); filesystem->MountSteamContent(300); filesystem->MountSteamContent(240);
Compile or rebuild and run your game.. All done all mounted :D