Garry’s Mod: Half-Life 2 Campaign

July 28th, 2007

HL2 Campaign is a gametype for Garry’s Mod that allows you to play the Half-Life 2 saga in cooperative mode on a LAN or over the Internet.

Rebels shooting antlions on the first coast map

Rebels shooting antlions on the first coast map

Requirements

Download
v1.26 [half-life_2_campaign.zip] [62.3 KB]

Installation
Extract the zip to the following directory on your hard-drive:

<Steam-directory>/steamapps/<Steam-username>/garrysmod/garrysmod/gamemodes/

Running a Listen Server
Browse to the below directory and edit the sh_config.lua file to your liking.

<Steam-directory>/steamapps/<Steam-username>/garrysmod/garrysmod/gamemodes/half-life_2_campaign/gamemode

Next, start up Garry’s Mod and click Create Multiplayer at the main menu. Select the HL2 map of your choice and then click the Options tab. Set the Default Gamemode option to “half-life-2-campaign”. Set any other options you’d like and then click Start Game.

Running a Dedicated Server

Note: Start with a fresh installation of SRCDS with just Garry’s Mod installed.

Browse to the below directory and edit the sh_config.lua file to your liking. It will be assumed for the rest of these instructions that PLAY_EPISODE_1 and PLAY_EPISODE_2 are both set to 0.

<Steam-directory>/steamapps/<Steam-username>/garrysmod/garrysmod/gamemodes/

Once your done, upload the entire half-life-2-campaign folder to the following location on your server.

<SRCDS directory>/orangebox/garrysmod/gamemodes/

Using GCF Scape extract the following folders to a temporary directory on your computer:

Next extract the following folders to the same directory on your computer overwriting the existing files.

Then move/upload all the extracted folders to the following directory on your server overwriting any existing files.

<SRCDS directory>/orangebox/hl2/

Your directory tree should now look something like this:

<SRCDS directory>

Lastly, you’ll need to set the default gamemode to run when your server starts up. Browse to the following directory and open up the game.cfg file with NotePad.

<SRCDS directory>/orangebox/garrysmod/cfg/

Add the following console command to the cfg file:

sv_defaultgamemode "half-life_2_campaign"

Alternatively, you can leave the default gamemode as sandbox and switch to HL2 Campaign on the fly with this console command:

rcon changegamemode [map] half-life_2_campaign

You can switch back to sandbox anytime with this command:

rcon changegamemode [map] sandbox

You’ll need to restart your server before the above commands/changes will work. Don’t forget to run “scriptenforce_createmanifest” and “sv_scriptenforcerenabled 1? to prevent against Lua cheats/hacks.

Keyboard Shortcuts
[F1] (Show Help) – Toggles the help bar at the top of your screen.
[F2] (Show Team) – Toggles the navigation marker on your HUD.
[F3] (Spare 1) – Spawns a vehicle if allowed.
[F4] (Spare 2) – Removes a vehicle if you have one.

Console Commands

FAQ
Can you add [some stupid feature from Sandbox]?

No. This isn’t sandbox, it’s HL2.

Do the citadel levels work in HL2?
For the most part, yes.

Does this work with Episode 1 and 2?
Sort of (see question below).

The episodic games are horribly broken! Why?
Most, if not all, of the problems with Episode 1 and 2 Garry has to fix.

Will you be adding a Lua version of the super gravity gun?
No.

Will you add a spectator mode to players that have completed the level?
No.

49 Comments on "Garry’s Mod: Half-Life 2 Campaign" Post a Comment »



Post a Comment