Mounting multiple games: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
Line 1: Line 1:
== 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 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.
Line 8: Line 5:
This code allows you to use Counter-Strike, HL2 or DOD:S content in your Source Mod.
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.
cdll_client_int.cpp - Go to about line "622" and paste this. CLIENTSIDE
CLIENTSIDE


filesystem->AddSearchPath("hl2mp", "GAME");
filesystem->AddSearchPath("hl2mp", "GAME");

Revision as of 04:22, 2 May 2007

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