Difference between revisions of "Mounting multiple games"

From Valve Developer Community
Jump to: navigation, search
m
Line 31: Line 31:
  
 
Compile or rebuild and run your game.. All done all mounted :D
 
Compile or rebuild and run your game.. All done all mounted :D
 +
 +
===See Also===
 +
* [[IFileSystem]]
 +
* [[IFileSystem#Mount_Steam_Application_Content|Mount Steam Application Content]]
 +
[[Category:Programming]]

Revision as of 04:31, 10 June 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

See Also