From 0ca28a477b4e3216662d6089e84f1eefaf61d774 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 6 Oct 2007 17:01:35 +0000 Subject: [PATCH] added "meta game" message about the engine build --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40462 --- sourcemm/metamod_console.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sourcemm/metamod_console.cpp b/sourcemm/metamod_console.cpp index d84b8fa..a9c2742 100644 --- a/sourcemm/metamod_console.cpp +++ b/sourcemm/metamod_console.cpp @@ -86,6 +86,20 @@ bool Command_Meta(IMetamodSourceCommandInfo *info) CONMSG(" DLL Path: %s\n", g_Metamod.GetGameBinaryPath()); CONMSG(" Interface: ServerGameDLL%03d\n", g_Metamod.GetGameDLLVersion()); + int engine = g_Metamod.GetSourceEngineBuild(); + if (engine == SOURCE_ENGINE_ORIGINAL) + { + CONMSG(" Engine: Original (pre-Episode 1)\n"); + } + else if (engine == SOURCE_ENGINE_EPISODEONE) + { + CONMSG(" Engine: Episode 1 (2004)\n"); + } + else if (engine == SOURCE_ENGINE_ORANGEBOX) + { + CONMSG(" Engine: Episode 2 (Orange Box, 2007)\n"); + } + // Display user messages int messages = g_Metamod.GetUserMessageCount(); if (messages != -1)