You are here

Part 9 - Installing Metamod:Source

What is Metamod:Source? I'll let their website ( handle this:

Metamod:Source is a C++ plugin environment for Half-Life 2. It acts as a "metamod" which sits in between the Game and the Engine, and allows plug-ins to intercept calls that flow between. It provides a mechanism called SourceHook, a very powerful library for intercepting, overriding, and superseding virtual function calls.

Didn't we just learn how to install Valve server plug-ins? Why would a developer use Metamod when they can just code right to the engine?

Although Valve provides their own C++ plug-in environment, we found two major reasons to develop Metamod:Source:

1. If separate plug-ins use their own hooking mechanisms, conflicts will arise. The centralized SourceHook environment solves that by providing a unified gateway.
2. Valve's layer has idiosyncrasies, such as not fully unloading from memory and poor console and programmatic control. Metamod:Source is explicit, flexible, and open source.

Metamod:Source is mandatory if you plan on using SoureMod and is the recommended option if you plan on running Mani Admin Mod.

* Installing Metamod:Source *

Obtain the latest release from the Metamod:Source website and extract the contents to your cstrike directory. You should now see a new directory underneath addons called metamod.

Metamod:Source is loaded into the game engine via a .vdf file that is placed in the addons folder. metamod.vdf should already exist as part of extraction.

* Verifying Metamod:Source operation *

Launch your server. Type meta version in the server's console. You should see output similar to the following:

Metamod:Source version 1.10.0
Build ID: 860:a58a1912f602
Loaded As: Valve Server Plugin
Compiled on: Aug 25 2013
Plugin interface version: 15:14
SourceHook version: 5:5