Mounting multiple games

From Valve Developer Community
Revision as of 04:22, 2 May 2007 by Trleighton (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Mounting Other Games Content

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

VERY MANY THANKS TO Tommy.Gun9mm from the Chatbear Forums: http://www.chatbear.com/users/Tommy.Gun9mm