Mounting multiple games: Difference between revisions
Jump to navigation
Jump to search
Warning:This will not work in debug mode if you are using a version of the source code prior to the Orange Box version. If you are using the Orange Box source code, you can remove the "#ifndef DEBUG" and "#endif" statements.
Trleighton (talk | contribs) No edit summary |
m (tidy & category) |
||
Line 40: | Line 40: | ||
Compile or rebuild and run your game. | Compile or rebuild and run your game. | ||
{{warning|This | {{warning|This will '''not''' work in ''debug mode'' if you are using a version of the source code prior to the [[Orange Box]] version. If you ''are'' using the Orange Box source code, you can remove the "#ifndef DEBUG" and "#endif" statements.}} | ||
== Credits == | == Credits == | ||
* John Stuart | * John Stuart a.k.a. ''TommyGun'' | ||
== See also == | == See also == | ||
* [[IFileSystem]] | * [[IFileSystem]] | ||
* [[IFileSystem#Mount_Steam_Application_Content|Mount Steam Application Content]] | * [[IFileSystem#Mount_Steam_Application_Content|Mount Steam Application Content]] | ||
[[Category:Programming]] | [[Category:Programming]] | ||
[[Category:Tutorials]] |
Revision as of 09:27, 6 February 2008
The following short section of code allows you to mount additional files from the following games:
- Counter Strike Source,
- Hl2MP,
- Episode 1,
- Day of Defeat Source,
- Half Life 2 (fixes),
This code will now fix bugs which may be featured with a game, also this allows you use the CS:S and DOD:S etc maps.. Though the info_player_*** will not work, you'll have to bind that to the original info_player_start which isn't hard.
cdll_client_int.cpp - Go to about line "622" and paste this. CLIENTSIDE
#ifndef DEBUG 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); #endif // DEBUG
Now open GameInterface.cpp (SERVERSIDE)and about line 551 paste this.
#ifndef DEBUG 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); #endif // DEBUG
Compile or rebuild and run your game.

Credits
- John Stuart a.k.a. TommyGun