SourceMod Logo


    SourceMod is a Half-Life 2 modification which focuses on server modification, server administration, and plugin writing. Plugins are scripted in the SourcePawn language, and they allow you to script actions on your server and access the Half-Life 2 (Source) engine with ease.

    SourceMod is highly optimized and ideal for getting the most performance out of your Source servers, without the complexity of writing C++ code.

Scripting Features (Developers)
  • Administration - Comprehensive API for developing administration systems.
  • Clients - Working with in-game client information and callbacks.
  • Commands - Creation, hooking, and overridding of client and server console commands.
  • ConVars - Creation, hooking, and retrieval of console variables.
  • Database - Abstracted database access.
  • Engine - Access to many Half-Life 2 engine features, with more constantly being added.
  • Entities - Changing and retrieving entity properties, both named and numbered.
  • Events - Creating, firing, and hooking of Half-Life 2 GameEvents.
  • Files - Access to the filesystem.
  • IPC - Advanced inter-plugin communication, similar to AMX Mod X.
  • Menus - Abstracted menu API for creating uniform menus across mods
  • Messages - Sending and hooking UserMessages.
  • Parsing - Advanced, highly optimized text parsing.
  • Timers - Creation of timed events.
  • Translation - Multi-Lingual phrase file lookup.

What makes SourceMod different? (Developers)
  • Speed - SourceMod is lightning fast, and this is not an idle boast. Every plugin is loaded into memory and converted to raw CPU code, hand optimized to assembly. Unlike other scripting solutions for Source, this means plugins are actually native, rather than processed manually. The speed difference is incomparable.
  • Optimization - Okay, this is the same as speed. But we had to list it twice. Optimization is one of the key parts of SourceMod development. Every sub-system is designed to be as fast as possible. This is easily visible after reading our Developer Blog.
  • API - The majority of work in SourceMod occurs in developing perfect API. When adding any interface or function, we ask the following questions:
    • Does it represent an optimized solution?
    • Would anyone use it?
    • How confusing is it?
    • Does its structure match the most probable common usage?
    • Will it be possible to extend it in the future?
    • Does its name represent what it does?
    • Does its name conform to other similar functions?
  • Extensibility - SourceMod is completely extensible. Rather than piggyback on something inefficient and utterly improper design-wise, like console commands, SourceMod provides a complete C++ API for extending both SourceMod and the Plugin event/native API. You can also write C++ plugins.
  • Open-Source - SourceMod, its extensions, and its plugins, are all open source under the GNU General Public License!
© Copyright 2004-2008 by the SourceMod Dev Team
XML-RSS http://www.sourcemod.net/rss2.php