Updated stub_mm, sample_mm, and project templates for changes from 1.8 (bug 4107, r=dvander).
authorScott Ehlert <ds@alliedmods.net>
Fri Nov 13 18:25:56 2009 -0600 (2009-11-13)
changeset 678c676a9ce0320
parent 677 3ec9092c5dc8
child 679 f843897b4bb3
Updated stub_mm, sample_mm, and project templates for changes from 1.8 (bug 4107, r=dvander).

- Added build configurations for Left 4 Dead 2 and Orange Box Valve.
- Now uses MMSOURCE18 as environment variable.
- Removed deprecated callclass usage.
- Now uses GetVSPInfo() API on old engine build.
sample_mm/Makefile
sample_mm/engine_wrappers.h
sample_mm/msvc8/sample_mm.sln
sample_mm/msvc8/sample_mm.vcproj
sample_mm/msvc9/sample_mm.sln
sample_mm/msvc9/sample_mm.vcproj
sample_mm/sample_mm.cpp
sample_mm/sample_mm.h
stub_mm/Makefile
stub_mm/msvc8/stub_mm.sln
stub_mm/msvc8/stub_mm.vcproj
stub_mm/msvc9/stub_mm.sln
stub_mm/msvc9/stub_mm.vcproj
stub_mm/stub_mm.cpp
stub_mm/stub_mm.h
support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Scripts/1033/default.js
support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin.vcproj
support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin.vdf
support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin_engine.h
support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin_hooks.cpp
support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin_mm.cpp
support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin_mm.h
     1.1 --- a/sample_mm/Makefile	Mon Nov 02 11:08:56 2009 -0600
     1.2 +++ b/sample_mm/Makefile	Fri Nov 13 18:25:56 2009 -0600
     1.3 @@ -1,4 +1,4 @@
     1.4 -# (C)2004-2008 Metamod:Source Development Team
     1.5 +# (C)2004-2009 Metamod:Source Development Team
     1.6  # Makefile written by David "BAILOPAN" Anderson
     1.7  
     1.8  ###########################################
     1.9 @@ -7,8 +7,10 @@
    1.10  
    1.11  HL2SDK_ORIG = ../../hl2sdk
    1.12  HL2SDK_OB = ../../hl2sdk-ob
    1.13 +HL2SDK_OB_VALVE = ../../hl2sdk-ob-valve
    1.14  HL2SDK_L4D = ../../hl2sdk-l4d
    1.15 -MMSOURCE17 = ../mmsource-1.7
    1.16 +HL2SDK_L4D2 = ../../hl2sdk-l4d2
    1.17 +MMSOURCE18 = ..
    1.18  SRCDS_BASE = ~/srcds
    1.19  
    1.20  #####################################
    1.21 @@ -33,9 +35,10 @@
    1.22  	HL2PUB = $(HL2SDK)/public
    1.23  	HL2LIB = $(HL2SDK)/linux_sdk
    1.24  	CFLAGS += -DSOURCE_ENGINE=1
    1.25 -	METAMOD = $(MMSOURCE17)/core-legacy
    1.26 +	METAMOD = $(MMSOURCE18)/core-legacy
    1.27  	INCLUDE += -I$(HL2SDK)/public/dlls
    1.28  	SRCDS = $(SRCDS_BASE)
    1.29 +	LIB_SUFFIX = i486
    1.30  	override ENGSET = true
    1.31  endif
    1.32  ifeq "$(ENGINE)" "orangebox"
    1.33 @@ -43,25 +46,50 @@
    1.34  	HL2PUB = $(HL2SDK)/public
    1.35  	HL2LIB = $(HL2SDK)/lib/linux
    1.36  	CFLAGS += -DSOURCE_ENGINE=3
    1.37 -	METAMOD = $(MMSOURCE17)/core
    1.38 +	METAMOD = $(MMSOURCE18)/core
    1.39  	INCLUDE += -I$(HL2SDK)/public/game/server
    1.40  	SRCDS = $(SRCDS_BASE)/orangebox
    1.41 +	LIB_SUFFIX = i486
    1.42 +	override ENGSET = true
    1.43 +endif
    1.44 +ifeq "$(ENGINE)" "orangeboxvalve"
    1.45 +	HL2SDK = $(HL2SDK_OB_VALVE)
    1.46 +	HL2PUB = $(HL2SDK)/public
    1.47 +	HL2LIB = $(HL2SDK)/lib/linux
    1.48 +	CFLAGS += -DSOURCE_ENGINE=4
    1.49 +	METAMOD = $(MMSOURCE18)/core
    1.50 +	INCLUDE += -I$(HL2SDK)/public/game/server
    1.51 +	SRCDS = $(SRCDS_BASE)/orangebox
    1.52 +	LIB_SUFFIX = i486
    1.53  	override ENGSET = true
    1.54  endif
    1.55  ifeq "$(ENGINE)" "left4dead"
    1.56  	HL2SDK = $(HL2SDK_L4D)
    1.57  	HL2PUB = $(HL2SDK)/public
    1.58  	HL2LIB = $(HL2SDK)/lib/linux
    1.59 -	CFLAGS += -DSOURCE_ENGINE=4
    1.60 -	METAMOD = $(MMSOURCE17)/core
    1.61 +	CFLAGS += -DSOURCE_ENGINE=5
    1.62 +	METAMOD = $(MMSOURCE18)/core
    1.63  	INCLUDE += -I$(HL2SDK)/public/game/server
    1.64  	SRCDS = $(SRCDS_BASE)/l4d
    1.65 +	LIB_SUFFIX = i486
    1.66 +	override ENGSET = true
    1.67 +endif
    1.68 +ifeq "$(ENGINE)" "left4dead2"
    1.69 +	HL2SDK = $(HL2SDK_L4D2)
    1.70 +	HL2PUB = $(HL2SDK)/public
    1.71 +	HL2LIB = $(HL2SDK)/lib/linux
    1.72 +	CFLAGS += -DSOURCE_ENGINE=5
    1.73 +	METAMOD = $(MMSOURCE18)/core
    1.74 +	INCLUDE += -I$(HL2SDK)/public/game/server
    1.75 +	SRCDS = $(SRCDS_BASE)/left4dead2_demo
    1.76 +	LIB_SUFFIX = linux
    1.77  	override ENGSET = true
    1.78  endif
    1.79  
    1.80 -CFLAGS += -DSE_EPISODEONE=1 -DSE_DARKMESSIAH=2 -DSE_ORANGEBOX=3 -DSE_LEFT4DEAD=4
    1.81 +CFLAGS += -DSE_EPISODEONE=1 -DSE_DARKMESSIAH=2 -DSE_ORANGEBOX=3 -DSE_ORANGEBOXVALVE=4 \
    1.82 +	-DSE_LEFT4DEAD=5 -DSE_LEFT4DEAD2=6
    1.83  
    1.84 -LINK += $(HL2LIB)/tier1_i486.a vstdlib_i486.so tier0_i486.so -static-libgcc
    1.85 +LINK += $(HL2LIB)/tier1_i486.a vstdlib_$(LIB_SUFFIX).so tier0_$(LIB_SUFFIX).so -static-libgcc
    1.86  
    1.87  INCLUDE += -I. -I.. -I$(HL2PUB) -I$(HL2PUB)/engine -I$(HL2PUB)/mathlib -I$(HL2PUB)/vstdlib \
    1.88  	-I$(HL2PUB)/tier0 -I$(HL2PUB)/tier1 -I. -I$(METAMOD) -I$(METAMOD)/sourcehook
    1.89 @@ -96,15 +124,14 @@
    1.90  
    1.91  all: check
    1.92  	mkdir -p $(BIN_DIR)
    1.93 -	rm -f vstdlib_i486.so
    1.94 -	rm -f tier0_i486.so
    1.95 -	ln -sf $(SRCDS)/bin/vstdlib_i486.so vstdlib_i486.so
    1.96 -	ln -sf $(SRCDS)/bin/tier0_i486.so tier0_i486.so
    1.97 +	ln -sf $(HL2LIB)/vstdlib_$(LIB_SUFFIX).so
    1.98 +	ln -sf $(HL2LIB)/tier0_$(LIB_SUFFIX).so
    1.99  	$(MAKE) -f Makefile sample_mm
   1.100  	
   1.101  check:
   1.102  	if [ "$(ENGSET)" = "false" ]; then \
   1.103 -		echo "You must supply ENGINE=left4dead or ENGINE=orangebox or ENGINE=original"; \
   1.104 +		echo "You must supply one of the following values for ENGINE:"; \
   1.105 +		echo "left4dead2, left4dead, orangeboxvalve or orangebox"; \
   1.106  		exit 1; \
   1.107  	fi
   1.108  
     2.1 --- a/sample_mm/engine_wrappers.h	Mon Nov 02 11:08:56 2009 -0600
     2.2 +++ b/sample_mm/engine_wrappers.h	Fri Nov 13 18:25:56 2009 -0600
     2.3 @@ -1,5 +1,5 @@
     2.4  /**
     2.5 - * vim: set ts=4 :
     2.6 + * vim: set ts=4 sw=4 tw=99 noet :
     2.7   * ======================================================
     2.8   * Metamod:Source Sample Plugin
     2.9   * Written by AlliedModders LLC.
    2.10 @@ -10,8 +10,6 @@
    2.11   * the use of this software.
    2.12   *
    2.13   * This sample plugin is public domain.
    2.14 - *
    2.15 - * Version: $Id$
    2.16   */
    2.17  
    2.18  #ifndef _INCLUDE_SOURCE_ENGINE_WRAPPERS_
    2.19 @@ -26,17 +24,17 @@
    2.20  #error "Metamod:Source 1.6 API is not supported on the old engine."
    2.21  #endif
    2.22  
    2.23 +#define ENGINE_CALL(func) SH_CALL(engine, &IVEngineServer::func)
    2.24 +
    2.25  /**
    2.26 - * MM:S 1.4.x needs older API calls.
    2.27 + * Wrap some API calls for legacy MM:S.
    2.28   */
    2.29  #if !defined METAMOD_PLAPI_VERSION
    2.30  #define GetEngineFactory engineFactory
    2.31  #define GetServerFactory serverFactory
    2.32  #define MM_Format snprintf
    2.33  #define	GetCGlobals	pGlobals
    2.34 -#define ENGINE_CALL(func) SH_CALL(m_EngineCC, func)
    2.35  #else
    2.36 -#define ENGINE_CALL(func) SH_CALL(engine, func)
    2.37  #define MM_Format g_SMAPI->Format
    2.38  #endif
    2.39  
     3.1 --- a/sample_mm/msvc8/sample_mm.sln	Mon Nov 02 11:08:56 2009 -0600
     3.2 +++ b/sample_mm/msvc8/sample_mm.sln	Fri Nov 13 18:25:56 2009 -0600
     3.3 @@ -6,27 +6,39 @@
     3.4  Global
     3.5  	GlobalSection(SolutionConfigurationPlatforms) = preSolution
     3.6  		Debug - Dark Messiah|Win32 = Debug - Dark Messiah|Win32
     3.7 +		Debug - Left 4 Dead 2|Win32 = Debug - Left 4 Dead 2|Win32
     3.8  		Debug - Left 4 Dead|Win32 = Debug - Left 4 Dead|Win32
     3.9 +		Debug - Orange Box Valve|Win32 = Debug - Orange Box Valve|Win32
    3.10  		Debug - Orange Box|Win32 = Debug - Orange Box|Win32
    3.11  		Debug - Original|Win32 = Debug - Original|Win32
    3.12  		Release - Dark Messiah|Win32 = Release - Dark Messiah|Win32
    3.13 +		Release - Left 4 Dead 2|Win32 = Release - Left 4 Dead 2|Win32
    3.14  		Release - Left 4 Dead|Win32 = Release - Left 4 Dead|Win32
    3.15 +		Release - Orange Box Valve|Win32 = Release - Orange Box Valve|Win32
    3.16  		Release - Orange Box|Win32 = Release - Orange Box|Win32
    3.17  		Release - Original|Win32 = Release - Original|Win32
    3.18  	EndGlobalSection
    3.19  	GlobalSection(ProjectConfigurationPlatforms) = postSolution
    3.20  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Dark Messiah|Win32.ActiveCfg = Debug - Dark Messiah|Win32
    3.21  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Dark Messiah|Win32.Build.0 = Debug - Dark Messiah|Win32
    3.22 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead 2|Win32.ActiveCfg = Debug - Left 4 Dead 2|Win32
    3.23 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead 2|Win32.Build.0 = Debug - Left 4 Dead 2|Win32
    3.24  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead|Win32.ActiveCfg = Debug - Left 4 Dead|Win32
    3.25  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead|Win32.Build.0 = Debug - Left 4 Dead|Win32
    3.26 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box Valve|Win32.ActiveCfg = Debug - Orange Box Valve|Win32
    3.27 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box Valve|Win32.Build.0 = Debug - Orange Box Valve|Win32
    3.28  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box|Win32.ActiveCfg = Debug - Orange Box|Win32
    3.29  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box|Win32.Build.0 = Debug - Orange Box|Win32
    3.30  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Original|Win32.ActiveCfg = Debug - Original|Win32
    3.31  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Original|Win32.Build.0 = Debug - Original|Win32
    3.32  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Dark Messiah|Win32.ActiveCfg = Release - Dark Messiah|Win32
    3.33  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Dark Messiah|Win32.Build.0 = Release - Dark Messiah|Win32
    3.34 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead 2|Win32.ActiveCfg = Release - Left 4 Dead 2|Win32
    3.35 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead 2|Win32.Build.0 = Release - Left 4 Dead 2|Win32
    3.36  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead|Win32.ActiveCfg = Release - Left 4 Dead|Win32
    3.37  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead|Win32.Build.0 = Release - Left 4 Dead|Win32
    3.38 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box Valve|Win32.ActiveCfg = Release - Orange Box Valve|Win32
    3.39 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box Valve|Win32.Build.0 = Release - Orange Box Valve|Win32
    3.40  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box|Win32.ActiveCfg = Release - Orange Box|Win32
    3.41  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box|Win32.Build.0 = Release - Orange Box|Win32
    3.42  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Original|Win32.ActiveCfg = Release - Original|Win32
     4.1 --- a/sample_mm/msvc8/sample_mm.vcproj	Mon Nov 02 11:08:56 2009 -0600
     4.2 +++ b/sample_mm/msvc8/sample_mm.vcproj	Fri Nov 13 18:25:56 2009 -0600
     4.3 @@ -39,9 +39,9 @@
     4.4  			/>
     4.5  			<Tool
     4.6  				Name="VCCLCompilerTool"
     4.7 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
     4.8 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
     4.9  				Optimization="0"
    4.10 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core-legacy&quot;;&quot;$(MMSOURCE17)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
    4.11 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core-legacy&quot;;&quot;$(MMSOURCE18)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
    4.12  				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=1"
    4.13  				MinimalRebuild="true"
    4.14  				BasicRuntimeChecks="3"
    4.15 @@ -120,8 +120,8 @@
    4.16  			/>
    4.17  			<Tool
    4.18  				Name="VCCLCompilerTool"
    4.19 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
    4.20 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core-legacy&quot;;&quot;$(MMSOURCE17)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
    4.21 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
    4.22 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core-legacy&quot;;&quot;$(MMSOURCE18)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
    4.23  				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=1"
    4.24  				RuntimeLibrary="0"
    4.25  				UsePrecompiledHeader="0"
    4.26 @@ -199,9 +199,9 @@
    4.27  			/>
    4.28  			<Tool
    4.29  				Name="VCCLCompilerTool"
    4.30 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
    4.31 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
    4.32  				Optimization="0"
    4.33 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
    4.34 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
    4.35  				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=2"
    4.36  				MinimalRebuild="true"
    4.37  				BasicRuntimeChecks="3"
    4.38 @@ -280,8 +280,8 @@
    4.39  			/>
    4.40  			<Tool
    4.41  				Name="VCCLCompilerTool"
    4.42 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
    4.43 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
    4.44 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
    4.45 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
    4.46  				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=2"
    4.47  				RuntimeLibrary="0"
    4.48  				UsePrecompiledHeader="0"
    4.49 @@ -359,9 +359,9 @@
    4.50  			/>
    4.51  			<Tool
    4.52  				Name="VCCLCompilerTool"
    4.53 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
    4.54 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
    4.55  				Optimization="0"
    4.56 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
    4.57 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
    4.58  				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=3"
    4.59  				MinimalRebuild="true"
    4.60  				BasicRuntimeChecks="3"
    4.61 @@ -440,8 +440,8 @@
    4.62  			/>
    4.63  			<Tool
    4.64  				Name="VCCLCompilerTool"
    4.65 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
    4.66 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
    4.67 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
    4.68 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
    4.69  				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=3"
    4.70  				RuntimeLibrary="0"
    4.71  				UsePrecompiledHeader="0"
    4.72 @@ -496,6 +496,166 @@
    4.73  			/>
    4.74  		</Configuration>
    4.75  		<Configuration
    4.76 +			Name="Debug - Orange Box Valve|Win32"
    4.77 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
    4.78 +			IntermediateDirectory="$(ConfigurationName)"
    4.79 +			ConfigurationType="2"
    4.80 +			CharacterSet="2"
    4.81 +			>
    4.82 +			<Tool
    4.83 +				Name="VCPreBuildEventTool"
    4.84 +			/>
    4.85 +			<Tool
    4.86 +				Name="VCCustomBuildTool"
    4.87 +			/>
    4.88 +			<Tool
    4.89 +				Name="VCXMLDataGeneratorTool"
    4.90 +			/>
    4.91 +			<Tool
    4.92 +				Name="VCWebServiceProxyGeneratorTool"
    4.93 +			/>
    4.94 +			<Tool
    4.95 +				Name="VCMIDLTool"
    4.96 +			/>
    4.97 +			<Tool
    4.98 +				Name="VCCLCompilerTool"
    4.99 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   4.100 +				Optimization="0"
   4.101 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOBVALVE)\public&quot;;&quot;$(HL2SDKOBVALVE)\public\engine&quot;;&quot;$(HL2SDKOBVALVE)\public\game\server&quot;;&quot;$(HL2SDKOBVALVE)\public\tier0&quot;;&quot;$(HL2SDKOBVALVE)\public\tier1&quot;;&quot;$(HL2SDKOBVALVE)\public\vstdlib&quot;"
   4.102 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=4"
   4.103 +				MinimalRebuild="true"
   4.104 +				BasicRuntimeChecks="3"
   4.105 +				RuntimeLibrary="1"
   4.106 +				UsePrecompiledHeader="0"
   4.107 +				WarningLevel="3"
   4.108 +				Detect64BitPortabilityProblems="false"
   4.109 +				DebugInformationFormat="4"
   4.110 +			/>
   4.111 +			<Tool
   4.112 +				Name="VCManagedResourceCompilerTool"
   4.113 +			/>
   4.114 +			<Tool
   4.115 +				Name="VCResourceCompilerTool"
   4.116 +			/>
   4.117 +			<Tool
   4.118 +				Name="VCPreLinkEventTool"
   4.119 +			/>
   4.120 +			<Tool
   4.121 +				Name="VCLinkerTool"
   4.122 +				AdditionalDependencies="&quot;$(HL2SDKOBVALVE)\lib\public\tier0.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\tier1.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\vstdlib.lib&quot;"
   4.123 +				OutputFile="$(OutDir)\sample_mm.dll"
   4.124 +				LinkIncremental="2"
   4.125 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMT"
   4.126 +				GenerateDebugInformation="true"
   4.127 +				SubSystem="2"
   4.128 +				TargetMachine="1"
   4.129 +			/>
   4.130 +			<Tool
   4.131 +				Name="VCALinkTool"
   4.132 +			/>
   4.133 +			<Tool
   4.134 +				Name="VCManifestTool"
   4.135 +			/>
   4.136 +			<Tool
   4.137 +				Name="VCXDCMakeTool"
   4.138 +			/>
   4.139 +			<Tool
   4.140 +				Name="VCBscMakeTool"
   4.141 +			/>
   4.142 +			<Tool
   4.143 +				Name="VCFxCopTool"
   4.144 +			/>
   4.145 +			<Tool
   4.146 +				Name="VCAppVerifierTool"
   4.147 +			/>
   4.148 +			<Tool
   4.149 +				Name="VCWebDeploymentTool"
   4.150 +			/>
   4.151 +			<Tool
   4.152 +				Name="VCPostBuildEventTool"
   4.153 +			/>
   4.154 +		</Configuration>
   4.155 +		<Configuration
   4.156 +			Name="Release - Orange Box Valve|Win32"
   4.157 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
   4.158 +			IntermediateDirectory="$(ConfigurationName)"
   4.159 +			ConfigurationType="2"
   4.160 +			CharacterSet="2"
   4.161 +			WholeProgramOptimization="1"
   4.162 +			>
   4.163 +			<Tool
   4.164 +				Name="VCPreBuildEventTool"
   4.165 +			/>
   4.166 +			<Tool
   4.167 +				Name="VCCustomBuildTool"
   4.168 +			/>
   4.169 +			<Tool
   4.170 +				Name="VCXMLDataGeneratorTool"
   4.171 +			/>
   4.172 +			<Tool
   4.173 +				Name="VCWebServiceProxyGeneratorTool"
   4.174 +			/>
   4.175 +			<Tool
   4.176 +				Name="VCMIDLTool"
   4.177 +			/>
   4.178 +			<Tool
   4.179 +				Name="VCCLCompilerTool"
   4.180 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   4.181 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOBVALVE)\public&quot;;&quot;$(HL2SDKOBVALVE)\public\engine&quot;;&quot;$(HL2SDKOBVALVE)\public\game\server&quot;;&quot;$(HL2SDKOBVALVE)\public\tier0&quot;;&quot;$(HL2SDKOBVALVE)\public\tier1&quot;;&quot;$(HL2SDKOBVALVE)\public\vstdlib&quot;"
   4.182 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=4"
   4.183 +				RuntimeLibrary="0"
   4.184 +				UsePrecompiledHeader="0"
   4.185 +				WarningLevel="3"
   4.186 +				Detect64BitPortabilityProblems="false"
   4.187 +				DebugInformationFormat="3"
   4.188 +			/>
   4.189 +			<Tool
   4.190 +				Name="VCManagedResourceCompilerTool"
   4.191 +			/>
   4.192 +			<Tool
   4.193 +				Name="VCResourceCompilerTool"
   4.194 +			/>
   4.195 +			<Tool
   4.196 +				Name="VCPreLinkEventTool"
   4.197 +			/>
   4.198 +			<Tool
   4.199 +				Name="VCLinkerTool"
   4.200 +				AdditionalDependencies="&quot;$(HL2SDKOBVALVE)\lib\public\tier0.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\tier1.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\vstdlib.lib&quot;"
   4.201 +				OutputFile="$(OutDir)\sample_mm.dll"
   4.202 +				LinkIncremental="1"
   4.203 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMTD"
   4.204 +				GenerateDebugInformation="true"
   4.205 +				SubSystem="2"
   4.206 +				OptimizeReferences="2"
   4.207 +				EnableCOMDATFolding="2"
   4.208 +				TargetMachine="1"
   4.209 +			/>
   4.210 +			<Tool
   4.211 +				Name="VCALinkTool"
   4.212 +			/>
   4.213 +			<Tool
   4.214 +				Name="VCManifestTool"
   4.215 +			/>
   4.216 +			<Tool
   4.217 +				Name="VCXDCMakeTool"
   4.218 +			/>
   4.219 +			<Tool
   4.220 +				Name="VCBscMakeTool"
   4.221 +			/>
   4.222 +			<Tool
   4.223 +				Name="VCFxCopTool"
   4.224 +			/>
   4.225 +			<Tool
   4.226 +				Name="VCAppVerifierTool"
   4.227 +			/>
   4.228 +			<Tool
   4.229 +				Name="VCWebDeploymentTool"
   4.230 +			/>
   4.231 +			<Tool
   4.232 +				Name="VCPostBuildEventTool"
   4.233 +			/>
   4.234 +		</Configuration>
   4.235 +		<Configuration
   4.236  			Name="Debug - Left 4 Dead|Win32"
   4.237  			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
   4.238  			IntermediateDirectory="$(ConfigurationName)"
   4.239 @@ -519,10 +679,10 @@
   4.240  			/>
   4.241  			<Tool
   4.242  				Name="VCCLCompilerTool"
   4.243 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
   4.244 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   4.245  				Optimization="0"
   4.246 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
   4.247 -				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=4"
   4.248 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
   4.249 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=5"
   4.250  				MinimalRebuild="true"
   4.251  				BasicRuntimeChecks="3"
   4.252  				RuntimeLibrary="1"
   4.253 @@ -600,9 +760,9 @@
   4.254  			/>
   4.255  			<Tool
   4.256  				Name="VCCLCompilerTool"
   4.257 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
   4.258 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
   4.259 -				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=4"
   4.260 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   4.261 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
   4.262 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=5"
   4.263  				RuntimeLibrary="0"
   4.264  				UsePrecompiledHeader="0"
   4.265  				WarningLevel="3"
   4.266 @@ -655,6 +815,166 @@
   4.267  				Name="VCPostBuildEventTool"
   4.268  			/>
   4.269  		</Configuration>
   4.270 +		<Configuration
   4.271 +			Name="Debug - Left 4 Dead 2|Win32"
   4.272 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
   4.273 +			IntermediateDirectory="$(ConfigurationName)"
   4.274 +			ConfigurationType="2"
   4.275 +			CharacterSet="2"
   4.276 +			>
   4.277 +			<Tool
   4.278 +				Name="VCPreBuildEventTool"
   4.279 +			/>
   4.280 +			<Tool
   4.281 +				Name="VCCustomBuildTool"
   4.282 +			/>
   4.283 +			<Tool
   4.284 +				Name="VCXMLDataGeneratorTool"
   4.285 +			/>
   4.286 +			<Tool
   4.287 +				Name="VCWebServiceProxyGeneratorTool"
   4.288 +			/>
   4.289 +			<Tool
   4.290 +				Name="VCMIDLTool"
   4.291 +			/>
   4.292 +			<Tool
   4.293 +				Name="VCCLCompilerTool"
   4.294 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   4.295 +				Optimization="0"
   4.296 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D2)\public&quot;;&quot;$(HL2SDKL4D2)\public\engine&quot;;&quot;$(HL2SDKL4D2)\public\game\server&quot;;&quot;$(HL2SDKL4D2)\public\tier0&quot;;&quot;$(HL2SDKL4D2)\public\tier1&quot;;&quot;$(HL2SDKL4D2)\public\vstdlib&quot;"
   4.297 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=6"
   4.298 +				MinimalRebuild="true"
   4.299 +				BasicRuntimeChecks="3"
   4.300 +				RuntimeLibrary="1"
   4.301 +				UsePrecompiledHeader="0"
   4.302 +				WarningLevel="3"
   4.303 +				Detect64BitPortabilityProblems="false"
   4.304 +				DebugInformationFormat="4"
   4.305 +			/>
   4.306 +			<Tool
   4.307 +				Name="VCManagedResourceCompilerTool"
   4.308 +			/>
   4.309 +			<Tool
   4.310 +				Name="VCResourceCompilerTool"
   4.311 +			/>
   4.312 +			<Tool
   4.313 +				Name="VCPreLinkEventTool"
   4.314 +			/>
   4.315 +			<Tool
   4.316 +				Name="VCLinkerTool"
   4.317 +				AdditionalDependencies="&quot;$(HL2SDKL4D2)\lib\public\tier0.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\tier1.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\vstdlib.lib&quot;"
   4.318 +				OutputFile="$(OutDir)\sample_mm.dll"
   4.319 +				LinkIncremental="2"
   4.320 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMT"
   4.321 +				GenerateDebugInformation="true"
   4.322 +				SubSystem="2"
   4.323 +				TargetMachine="1"
   4.324 +			/>
   4.325 +			<Tool
   4.326 +				Name="VCALinkTool"
   4.327 +			/>
   4.328 +			<Tool
   4.329 +				Name="VCManifestTool"
   4.330 +			/>
   4.331 +			<Tool
   4.332 +				Name="VCXDCMakeTool"
   4.333 +			/>
   4.334 +			<Tool
   4.335 +				Name="VCBscMakeTool"
   4.336 +			/>
   4.337 +			<Tool
   4.338 +				Name="VCFxCopTool"
   4.339 +			/>
   4.340 +			<Tool
   4.341 +				Name="VCAppVerifierTool"
   4.342 +			/>
   4.343 +			<Tool
   4.344 +				Name="VCWebDeploymentTool"
   4.345 +			/>
   4.346 +			<Tool
   4.347 +				Name="VCPostBuildEventTool"
   4.348 +			/>
   4.349 +		</Configuration>
   4.350 +		<Configuration
   4.351 +			Name="Release - Left 4 Dead 2|Win32"
   4.352 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
   4.353 +			IntermediateDirectory="$(ConfigurationName)"
   4.354 +			ConfigurationType="2"
   4.355 +			CharacterSet="2"
   4.356 +			WholeProgramOptimization="1"
   4.357 +			>
   4.358 +			<Tool
   4.359 +				Name="VCPreBuildEventTool"
   4.360 +			/>
   4.361 +			<Tool
   4.362 +				Name="VCCustomBuildTool"
   4.363 +			/>
   4.364 +			<Tool
   4.365 +				Name="VCXMLDataGeneratorTool"
   4.366 +			/>
   4.367 +			<Tool
   4.368 +				Name="VCWebServiceProxyGeneratorTool"
   4.369 +			/>
   4.370 +			<Tool
   4.371 +				Name="VCMIDLTool"
   4.372 +			/>
   4.373 +			<Tool
   4.374 +				Name="VCCLCompilerTool"
   4.375 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   4.376 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D2)\public&quot;;&quot;$(HL2SDKL4D2)\public\engine&quot;;&quot;$(HL2SDKL4D2)\public\game\server&quot;;&quot;$(HL2SDKL4D2)\public\tier0&quot;;&quot;$(HL2SDKL4D2)\public\tier1&quot;;&quot;$(HL2SDKL4D2)\public\vstdlib&quot;"
   4.377 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=6"
   4.378 +				RuntimeLibrary="0"
   4.379 +				UsePrecompiledHeader="0"
   4.380 +				WarningLevel="3"
   4.381 +				Detect64BitPortabilityProblems="false"
   4.382 +				DebugInformationFormat="3"
   4.383 +			/>
   4.384 +			<Tool
   4.385 +				Name="VCManagedResourceCompilerTool"
   4.386 +			/>
   4.387 +			<Tool
   4.388 +				Name="VCResourceCompilerTool"
   4.389 +			/>
   4.390 +			<Tool
   4.391 +				Name="VCPreLinkEventTool"
   4.392 +			/>
   4.393 +			<Tool
   4.394 +				Name="VCLinkerTool"
   4.395 +				AdditionalDependencies="&quot;$(HL2SDKL4D2)\lib\public\tier0.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\tier1.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\vstdlib.lib&quot;"
   4.396 +				OutputFile="$(OutDir)\sample_mm.dll"
   4.397 +				LinkIncremental="1"
   4.398 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMTD"
   4.399 +				GenerateDebugInformation="true"
   4.400 +				SubSystem="2"
   4.401 +				OptimizeReferences="2"
   4.402 +				EnableCOMDATFolding="2"
   4.403 +				TargetMachine="1"
   4.404 +			/>
   4.405 +			<Tool
   4.406 +				Name="VCALinkTool"
   4.407 +			/>
   4.408 +			<Tool
   4.409 +				Name="VCManifestTool"
   4.410 +			/>
   4.411 +			<Tool
   4.412 +				Name="VCXDCMakeTool"
   4.413 +			/>
   4.414 +			<Tool
   4.415 +				Name="VCBscMakeTool"
   4.416 +			/>
   4.417 +			<Tool
   4.418 +				Name="VCFxCopTool"
   4.419 +			/>
   4.420 +			<Tool
   4.421 +				Name="VCAppVerifierTool"
   4.422 +			/>
   4.423 +			<Tool
   4.424 +				Name="VCWebDeploymentTool"
   4.425 +			/>
   4.426 +			<Tool
   4.427 +				Name="VCPostBuildEventTool"
   4.428 +			/>
   4.429 +		</Configuration>
   4.430  	</Configurations>
   4.431  	<References>
   4.432  	</References>
     5.1 --- a/sample_mm/msvc9/sample_mm.sln	Mon Nov 02 11:08:56 2009 -0600
     5.2 +++ b/sample_mm/msvc9/sample_mm.sln	Fri Nov 13 18:25:56 2009 -0600
     5.3 @@ -6,27 +6,39 @@
     5.4  Global
     5.5  	GlobalSection(SolutionConfigurationPlatforms) = preSolution
     5.6  		Debug - Dark Messiah|Win32 = Debug - Dark Messiah|Win32
     5.7 +		Debug - Left 4 Dead 2|Win32 = Debug - Left 4 Dead 2|Win32
     5.8  		Debug - Left 4 Dead|Win32 = Debug - Left 4 Dead|Win32
     5.9 +		Debug - Orange Box Valve|Win32 = Debug - Orange Box Valve|Win32
    5.10  		Debug - Orange Box|Win32 = Debug - Orange Box|Win32
    5.11  		Debug - Original|Win32 = Debug - Original|Win32
    5.12  		Release - Dark Messiah|Win32 = Release - Dark Messiah|Win32
    5.13 +		Release - Left 4 Dead 2|Win32 = Release - Left 4 Dead 2|Win32
    5.14  		Release - Left 4 Dead|Win32 = Release - Left 4 Dead|Win32
    5.15 +		Release - Orange Box Valve|Win32 = Release - Orange Box Valve|Win32
    5.16  		Release - Orange Box|Win32 = Release - Orange Box|Win32
    5.17  		Release - Original|Win32 = Release - Original|Win32
    5.18  	EndGlobalSection
    5.19  	GlobalSection(ProjectConfigurationPlatforms) = postSolution
    5.20  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Dark Messiah|Win32.ActiveCfg = Debug - Dark Messiah|Win32
    5.21  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Dark Messiah|Win32.Build.0 = Debug - Dark Messiah|Win32
    5.22 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead 2|Win32.ActiveCfg = Debug - Left 4 Dead 2|Win32
    5.23 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead 2|Win32.Build.0 = Debug - Left 4 Dead 2|Win32
    5.24  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead|Win32.ActiveCfg = Debug - Left 4 Dead|Win32
    5.25  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead|Win32.Build.0 = Debug - Left 4 Dead|Win32
    5.26 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box Valve|Win32.ActiveCfg = Debug - Orange Box Valve|Win32
    5.27 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box Valve|Win32.Build.0 = Debug - Orange Box Valve|Win32
    5.28  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box|Win32.ActiveCfg = Debug - Orange Box|Win32
    5.29  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box|Win32.Build.0 = Debug - Orange Box|Win32
    5.30  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Original|Win32.ActiveCfg = Debug - Original|Win32
    5.31  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Original|Win32.Build.0 = Debug - Original|Win32
    5.32  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Dark Messiah|Win32.ActiveCfg = Release - Dark Messiah|Win32
    5.33  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Dark Messiah|Win32.Build.0 = Release - Dark Messiah|Win32
    5.34 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead 2|Win32.ActiveCfg = Release - Left 4 Dead 2|Win32
    5.35 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead 2|Win32.Build.0 = Release - Left 4 Dead 2|Win32
    5.36  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead|Win32.ActiveCfg = Release - Left 4 Dead|Win32
    5.37  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead|Win32.Build.0 = Release - Left 4 Dead|Win32
    5.38 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box Valve|Win32.ActiveCfg = Release - Orange Box Valve|Win32
    5.39 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box Valve|Win32.Build.0 = Release - Orange Box Valve|Win32
    5.40  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box|Win32.ActiveCfg = Release - Orange Box|Win32
    5.41  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box|Win32.Build.0 = Release - Orange Box|Win32
    5.42  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Original|Win32.ActiveCfg = Release - Original|Win32
     6.1 --- a/sample_mm/msvc9/sample_mm.vcproj	Mon Nov 02 11:08:56 2009 -0600
     6.2 +++ b/sample_mm/msvc9/sample_mm.vcproj	Fri Nov 13 18:25:56 2009 -0600
     6.3 @@ -40,9 +40,9 @@
     6.4  			/>
     6.5  			<Tool
     6.6  				Name="VCCLCompilerTool"
     6.7 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
     6.8 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
     6.9  				Optimization="0"
    6.10 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core-legacy&quot;;&quot;$(MMSOURCE17)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
    6.11 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core-legacy&quot;;&quot;$(MMSOURCE18)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
    6.12  				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=1"
    6.13  				MinimalRebuild="true"
    6.14  				BasicRuntimeChecks="3"
    6.15 @@ -120,8 +120,8 @@
    6.16  			/>
    6.17  			<Tool
    6.18  				Name="VCCLCompilerTool"
    6.19 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
    6.20 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core-legacy&quot;;&quot;$(MMSOURCE17)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
    6.21 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
    6.22 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core-legacy&quot;;&quot;$(MMSOURCE18)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
    6.23  				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=1"
    6.24  				RuntimeLibrary="0"
    6.25  				UsePrecompiledHeader="0"
    6.26 @@ -198,9 +198,9 @@
    6.27  			/>
    6.28  			<Tool
    6.29  				Name="VCCLCompilerTool"
    6.30 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
    6.31 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
    6.32  				Optimization="0"
    6.33 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
    6.34 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
    6.35  				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=2"
    6.36  				MinimalRebuild="true"
    6.37  				BasicRuntimeChecks="3"
    6.38 @@ -278,8 +278,8 @@
    6.39  			/>
    6.40  			<Tool
    6.41  				Name="VCCLCompilerTool"
    6.42 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
    6.43 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
    6.44 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
    6.45 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
    6.46  				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=2"
    6.47  				RuntimeLibrary="0"
    6.48  				UsePrecompiledHeader="0"
    6.49 @@ -356,9 +356,9 @@
    6.50  			/>
    6.51  			<Tool
    6.52  				Name="VCCLCompilerTool"
    6.53 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
    6.54 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
    6.55  				Optimization="0"
    6.56 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
    6.57 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
    6.58  				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=3"
    6.59  				MinimalRebuild="true"
    6.60  				BasicRuntimeChecks="3"
    6.61 @@ -436,8 +436,8 @@
    6.62  			/>
    6.63  			<Tool
    6.64  				Name="VCCLCompilerTool"
    6.65 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
    6.66 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
    6.67 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
    6.68 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
    6.69  				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=3"
    6.70  				RuntimeLibrary="0"
    6.71  				UsePrecompiledHeader="0"
    6.72 @@ -491,6 +491,164 @@
    6.73  			/>
    6.74  		</Configuration>
    6.75  		<Configuration
    6.76 +			Name="Debug - Orange Box Valve|Win32"
    6.77 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
    6.78 +			IntermediateDirectory="$(ConfigurationName)"
    6.79 +			ConfigurationType="2"
    6.80 +			CharacterSet="2"
    6.81 +			>
    6.82 +			<Tool
    6.83 +				Name="VCPreBuildEventTool"
    6.84 +			/>
    6.85 +			<Tool
    6.86 +				Name="VCCustomBuildTool"
    6.87 +			/>
    6.88 +			<Tool
    6.89 +				Name="VCXMLDataGeneratorTool"
    6.90 +			/>
    6.91 +			<Tool
    6.92 +				Name="VCWebServiceProxyGeneratorTool"
    6.93 +			/>
    6.94 +			<Tool
    6.95 +				Name="VCMIDLTool"
    6.96 +			/>
    6.97 +			<Tool
    6.98 +				Name="VCCLCompilerTool"
    6.99 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   6.100 +				Optimization="0"
   6.101 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOBVALVE)\public&quot;;&quot;$(HL2SDKOBVALVE)\public\engine&quot;;&quot;$(HL2SDKOBVALVE)\public\game\server&quot;;&quot;$(HL2SDKOBVALVE)\public\tier0&quot;;&quot;$(HL2SDKOBVALVE)\public\tier1&quot;;&quot;$(HL2SDKOBVALVE)\public\vstdlib&quot;"
   6.102 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=4"
   6.103 +				MinimalRebuild="true"
   6.104 +				BasicRuntimeChecks="3"
   6.105 +				RuntimeLibrary="1"
   6.106 +				UsePrecompiledHeader="0"
   6.107 +				WarningLevel="3"
   6.108 +				Detect64BitPortabilityProblems="false"
   6.109 +				DebugInformationFormat="4"
   6.110 +			/>
   6.111 +			<Tool
   6.112 +				Name="VCManagedResourceCompilerTool"
   6.113 +			/>
   6.114 +			<Tool
   6.115 +				Name="VCResourceCompilerTool"
   6.116 +			/>
   6.117 +			<Tool
   6.118 +				Name="VCPreLinkEventTool"
   6.119 +			/>
   6.120 +			<Tool
   6.121 +				Name="VCLinkerTool"
   6.122 +				AdditionalDependencies="&quot;$(HL2SDKOBVALVE)\lib\public\tier0.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\tier1.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\vstdlib.lib&quot;"
   6.123 +				OutputFile="$(OutDir)\sample_mm.dll"
   6.124 +				LinkIncremental="2"
   6.125 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMT"
   6.126 +				GenerateDebugInformation="true"
   6.127 +				SubSystem="2"
   6.128 +				RandomizedBaseAddress="1"
   6.129 +				DataExecutionPrevention="0"
   6.130 +				TargetMachine="1"
   6.131 +			/>
   6.132 +			<Tool
   6.133 +				Name="VCALinkTool"
   6.134 +			/>
   6.135 +			<Tool
   6.136 +				Name="VCManifestTool"
   6.137 +			/>
   6.138 +			<Tool
   6.139 +				Name="VCXDCMakeTool"
   6.140 +			/>
   6.141 +			<Tool
   6.142 +				Name="VCBscMakeTool"
   6.143 +			/>
   6.144 +			<Tool
   6.145 +				Name="VCFxCopTool"
   6.146 +			/>
   6.147 +			<Tool
   6.148 +				Name="VCAppVerifierTool"
   6.149 +			/>
   6.150 +			<Tool
   6.151 +				Name="VCPostBuildEventTool"
   6.152 +			/>
   6.153 +		</Configuration>
   6.154 +		<Configuration
   6.155 +			Name="Release - Orange Box Valve|Win32"
   6.156 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
   6.157 +			IntermediateDirectory="$(ConfigurationName)"
   6.158 +			ConfigurationType="2"
   6.159 +			CharacterSet="2"
   6.160 +			WholeProgramOptimization="1"
   6.161 +			>
   6.162 +			<Tool
   6.163 +				Name="VCPreBuildEventTool"
   6.164 +			/>
   6.165 +			<Tool
   6.166 +				Name="VCCustomBuildTool"
   6.167 +			/>
   6.168 +			<Tool
   6.169 +				Name="VCXMLDataGeneratorTool"
   6.170 +			/>
   6.171 +			<Tool
   6.172 +				Name="VCWebServiceProxyGeneratorTool"
   6.173 +			/>
   6.174 +			<Tool
   6.175 +				Name="VCMIDLTool"
   6.176 +			/>
   6.177 +			<Tool
   6.178 +				Name="VCCLCompilerTool"
   6.179 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   6.180 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOBVALVE)\public&quot;;&quot;$(HL2SDKOBVALVE)\public\engine&quot;;&quot;$(HL2SDKOBVALVE)\public\game\server&quot;;&quot;$(HL2SDKOBVALVE)\public\tier0&quot;;&quot;$(HL2SDKOBVALVE)\public\tier1&quot;;&quot;$(HL2SDKOBVALVE)\public\vstdlib&quot;"
   6.181 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=4"
   6.182 +				RuntimeLibrary="0"
   6.183 +				UsePrecompiledHeader="0"
   6.184 +				WarningLevel="3"
   6.185 +				Detect64BitPortabilityProblems="false"
   6.186 +				DebugInformationFormat="3"
   6.187 +			/>
   6.188 +			<Tool
   6.189 +				Name="VCManagedResourceCompilerTool"
   6.190 +			/>
   6.191 +			<Tool
   6.192 +				Name="VCResourceCompilerTool"
   6.193 +			/>
   6.194 +			<Tool
   6.195 +				Name="VCPreLinkEventTool"
   6.196 +			/>
   6.197 +			<Tool
   6.198 +				Name="VCLinkerTool"
   6.199 +				AdditionalDependencies="&quot;$(HL2SDKOBVALVE)\lib\public\tier0.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\tier1.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\vstdlib.lib&quot;"
   6.200 +				OutputFile="$(OutDir)\sample_mm.dll"
   6.201 +				LinkIncremental="1"
   6.202 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMTD"
   6.203 +				GenerateDebugInformation="true"
   6.204 +				SubSystem="2"
   6.205 +				OptimizeReferences="2"
   6.206 +				EnableCOMDATFolding="2"
   6.207 +				RandomizedBaseAddress="1"
   6.208 +				DataExecutionPrevention="0"
   6.209 +				TargetMachine="1"
   6.210 +			/>
   6.211 +			<Tool
   6.212 +				Name="VCALinkTool"
   6.213 +			/>
   6.214 +			<Tool
   6.215 +				Name="VCManifestTool"
   6.216 +			/>
   6.217 +			<Tool
   6.218 +				Name="VCXDCMakeTool"
   6.219 +			/>
   6.220 +			<Tool
   6.221 +				Name="VCBscMakeTool"
   6.222 +			/>
   6.223 +			<Tool
   6.224 +				Name="VCFxCopTool"
   6.225 +			/>
   6.226 +			<Tool
   6.227 +				Name="VCAppVerifierTool"
   6.228 +			/>
   6.229 +			<Tool
   6.230 +				Name="VCPostBuildEventTool"
   6.231 +			/>
   6.232 +		</Configuration>
   6.233 +		<Configuration
   6.234  			Name="Debug - Left 4 Dead|Win32"
   6.235  			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
   6.236  			IntermediateDirectory="$(ConfigurationName)"
   6.237 @@ -514,10 +672,10 @@
   6.238  			/>
   6.239  			<Tool
   6.240  				Name="VCCLCompilerTool"
   6.241 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
   6.242 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   6.243  				Optimization="0"
   6.244 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
   6.245 -				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=4"
   6.246 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
   6.247 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=5"
   6.248  				MinimalRebuild="true"
   6.249  				BasicRuntimeChecks="3"
   6.250  				RuntimeLibrary="1"
   6.251 @@ -594,9 +752,9 @@
   6.252  			/>
   6.253  			<Tool
   6.254  				Name="VCCLCompilerTool"
   6.255 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
   6.256 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
   6.257 -				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=4"
   6.258 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   6.259 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
   6.260 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=5"
   6.261  				RuntimeLibrary="0"
   6.262  				UsePrecompiledHeader="0"
   6.263  				WarningLevel="3"
   6.264 @@ -648,6 +806,164 @@
   6.265  				Name="VCPostBuildEventTool"
   6.266  			/>
   6.267  		</Configuration>
   6.268 +		<Configuration
   6.269 +			Name="Debug - Left 4 Dead 2|Win32"
   6.270 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
   6.271 +			IntermediateDirectory="$(ConfigurationName)"
   6.272 +			ConfigurationType="2"
   6.273 +			CharacterSet="2"
   6.274 +			>
   6.275 +			<Tool
   6.276 +				Name="VCPreBuildEventTool"
   6.277 +			/>
   6.278 +			<Tool
   6.279 +				Name="VCCustomBuildTool"
   6.280 +			/>
   6.281 +			<Tool
   6.282 +				Name="VCXMLDataGeneratorTool"
   6.283 +			/>
   6.284 +			<Tool
   6.285 +				Name="VCWebServiceProxyGeneratorTool"
   6.286 +			/>
   6.287 +			<Tool
   6.288 +				Name="VCMIDLTool"
   6.289 +			/>
   6.290 +			<Tool
   6.291 +				Name="VCCLCompilerTool"
   6.292 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   6.293 +				Optimization="0"
   6.294 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D2)\public&quot;;&quot;$(HL2SDKL4D2)\public\engine&quot;;&quot;$(HL2SDKL4D2)\public\game\server&quot;;&quot;$(HL2SDKL4D2)\public\tier0&quot;;&quot;$(HL2SDKL4D2)\public\tier1&quot;;&quot;$(HL2SDKL4D2)\public\vstdlib&quot;"
   6.295 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=6"
   6.296 +				MinimalRebuild="true"
   6.297 +				BasicRuntimeChecks="3"
   6.298 +				RuntimeLibrary="1"
   6.299 +				UsePrecompiledHeader="0"
   6.300 +				WarningLevel="3"
   6.301 +				Detect64BitPortabilityProblems="false"
   6.302 +				DebugInformationFormat="4"
   6.303 +			/>
   6.304 +			<Tool
   6.305 +				Name="VCManagedResourceCompilerTool"
   6.306 +			/>
   6.307 +			<Tool
   6.308 +				Name="VCResourceCompilerTool"
   6.309 +			/>
   6.310 +			<Tool
   6.311 +				Name="VCPreLinkEventTool"
   6.312 +			/>
   6.313 +			<Tool
   6.314 +				Name="VCLinkerTool"
   6.315 +				AdditionalDependencies="&quot;$(HL2SDKL4D2)\lib\public\tier0.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\tier1.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\vstdlib.lib&quot;"
   6.316 +				OutputFile="$(OutDir)\sample_mm.dll"
   6.317 +				LinkIncremental="2"
   6.318 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMT"
   6.319 +				GenerateDebugInformation="true"
   6.320 +				SubSystem="2"
   6.321 +				RandomizedBaseAddress="1"
   6.322 +				DataExecutionPrevention="0"
   6.323 +				TargetMachine="1"
   6.324 +			/>
   6.325 +			<Tool
   6.326 +				Name="VCALinkTool"
   6.327 +			/>
   6.328 +			<Tool
   6.329 +				Name="VCManifestTool"
   6.330 +			/>
   6.331 +			<Tool
   6.332 +				Name="VCXDCMakeTool"
   6.333 +			/>
   6.334 +			<Tool
   6.335 +				Name="VCBscMakeTool"
   6.336 +			/>
   6.337 +			<Tool
   6.338 +				Name="VCFxCopTool"
   6.339 +			/>
   6.340 +			<Tool
   6.341 +				Name="VCAppVerifierTool"
   6.342 +			/>
   6.343 +			<Tool
   6.344 +				Name="VCPostBuildEventTool"
   6.345 +			/>
   6.346 +		</Configuration>
   6.347 +		<Configuration
   6.348 +			Name="Release - Left 4 Dead 2|Win32"
   6.349 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
   6.350 +			IntermediateDirectory="$(ConfigurationName)"
   6.351 +			ConfigurationType="2"
   6.352 +			CharacterSet="2"
   6.353 +			WholeProgramOptimization="1"
   6.354 +			>
   6.355 +			<Tool
   6.356 +				Name="VCPreBuildEventTool"
   6.357 +			/>
   6.358 +			<Tool
   6.359 +				Name="VCCustomBuildTool"
   6.360 +			/>
   6.361 +			<Tool
   6.362 +				Name="VCXMLDataGeneratorTool"
   6.363 +			/>
   6.364 +			<Tool
   6.365 +				Name="VCWebServiceProxyGeneratorTool"
   6.366 +			/>
   6.367 +			<Tool
   6.368 +				Name="VCMIDLTool"
   6.369 +			/>
   6.370 +			<Tool
   6.371 +				Name="VCCLCompilerTool"
   6.372 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   6.373 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D2)\public&quot;;&quot;$(HL2SDKL4D2)\public\engine&quot;;&quot;$(HL2SDKL4D2)\public\game\server&quot;;&quot;$(HL2SDKL4D2)\public\tier0&quot;;&quot;$(HL2SDKL4D2)\public\tier1&quot;;&quot;$(HL2SDKL4D2)\public\vstdlib&quot;"
   6.374 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SAMPLE_MM_EXPORTS;SOURCE_ENGINE=6"
   6.375 +				RuntimeLibrary="0"
   6.376 +				UsePrecompiledHeader="0"
   6.377 +				WarningLevel="3"
   6.378 +				Detect64BitPortabilityProblems="false"
   6.379 +				DebugInformationFormat="3"
   6.380 +			/>
   6.381 +			<Tool
   6.382 +				Name="VCManagedResourceCompilerTool"
   6.383 +			/>
   6.384 +			<Tool
   6.385 +				Name="VCResourceCompilerTool"
   6.386 +			/>
   6.387 +			<Tool
   6.388 +				Name="VCPreLinkEventTool"
   6.389 +			/>
   6.390 +			<Tool
   6.391 +				Name="VCLinkerTool"
   6.392 +				AdditionalDependencies="&quot;$(HL2SDKL4D2)\lib\public\tier0.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\tier1.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\vstdlib.lib&quot;"
   6.393 +				OutputFile="$(OutDir)\sample_mm.dll"
   6.394 +				LinkIncremental="1"
   6.395 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMTD"
   6.396 +				GenerateDebugInformation="true"
   6.397 +				SubSystem="2"
   6.398 +				OptimizeReferences="2"
   6.399 +				EnableCOMDATFolding="2"
   6.400 +				RandomizedBaseAddress="1"
   6.401 +				DataExecutionPrevention="0"
   6.402 +				TargetMachine="1"
   6.403 +			/>
   6.404 +			<Tool
   6.405 +				Name="VCALinkTool"
   6.406 +			/>
   6.407 +			<Tool
   6.408 +				Name="VCManifestTool"
   6.409 +			/>
   6.410 +			<Tool
   6.411 +				Name="VCXDCMakeTool"
   6.412 +			/>
   6.413 +			<Tool
   6.414 +				Name="VCBscMakeTool"
   6.415 +			/>
   6.416 +			<Tool
   6.417 +				Name="VCFxCopTool"
   6.418 +			/>
   6.419 +			<Tool
   6.420 +				Name="VCAppVerifierTool"
   6.421 +			/>
   6.422 +			<Tool
   6.423 +				Name="VCPostBuildEventTool"
   6.424 +			/>
   6.425 +		</Configuration>
   6.426  	</Configurations>
   6.427  	<References>
   6.428  	</References>
     7.1 --- a/sample_mm/sample_mm.cpp	Mon Nov 02 11:08:56 2009 -0600
     7.2 +++ b/sample_mm/sample_mm.cpp	Fri Nov 13 18:25:56 2009 -0600
     7.3 @@ -1,5 +1,5 @@
     7.4  /**
     7.5 - * vim: set ts=4 :
     7.6 + * vim: set ts=4 sw=4 tw=99 noet :
     7.7   * ======================================================
     7.8   * Metamod:Source Sample Plugin
     7.9   * Written by AlliedModders LLC.
    7.10 @@ -10,8 +10,6 @@
    7.11   * the use of this software.
    7.12   *
    7.13   * This sample plugin is public domain.
    7.14 - *
    7.15 - * Version: $Id$
    7.16   */
    7.17  
    7.18  #include <stdio.h>
    7.19 @@ -80,9 +78,7 @@
    7.20  	META_LOG(g_PLAPI, "Starting plugin.");
    7.21  
    7.22  	/* Load the VSP listener.  This is usually needed for IServerPluginHelpers. */
    7.23 -#if defined METAMOD_PLAPI_VERSION
    7.24  	if ((vsp_callbacks = ismm->GetVSPInfo(NULL)) == NULL)
    7.25 -#endif
    7.26  	{
    7.27  		ismm->AddListener(this, this);
    7.28  		ismm->EnableVSPListener();
    7.29 @@ -100,11 +96,7 @@
    7.30  	SH_ADD_HOOK_MEMFUNC(IServerGameClients, ClientConnect, gameclients, this, &SamplePlugin::Hook_ClientConnect, false);
    7.31  	SH_ADD_HOOK_MEMFUNC(IServerGameClients, ClientCommand, gameclients, this, &SamplePlugin::Hook_ClientCommand, false);
    7.32  
    7.33 -#if !defined METAMOD_PLAPI_VERSION
    7.34 -	m_EngineCC = SH_GET_CALLCLASS(engine);
    7.35 -#endif
    7.36 -
    7.37 -	ENGINE_CALL(&IVEngineServer::LogPrint)("All hooks started!\n");
    7.38 +	ENGINE_CALL(LogPrint)("All hooks started!\n");
    7.39  
    7.40  #if SOURCE_ENGINE >= SE_ORANGEBOX
    7.41  	g_pCVar = icvar;
    7.42 @@ -130,10 +122,6 @@
    7.43  	SH_REMOVE_HOOK_MEMFUNC(IServerGameClients, ClientConnect, gameclients, this, &SamplePlugin::Hook_ClientConnect, false);
    7.44  	SH_REMOVE_HOOK_MEMFUNC(IServerGameClients, ClientCommand, gameclients, this, &SamplePlugin::Hook_ClientCommand, false);
    7.45  
    7.46 -#if !defined METAMOD_PLAPI_VERSION
    7.47 -	SH_RELEASE_CALLCLASS(m_EngineCC);
    7.48 -#endif
    7.49 -
    7.50  	return true;
    7.51  }
    7.52  
     8.1 --- a/sample_mm/sample_mm.h	Mon Nov 02 11:08:56 2009 -0600
     8.2 +++ b/sample_mm/sample_mm.h	Fri Nov 13 18:25:56 2009 -0600
     8.3 @@ -1,5 +1,5 @@
     8.4  /**
     8.5 - * vim: set ts=4 :
     8.6 + * vim: set ts=4 sw=4 tw=99 noet :
     8.7   * ======================================================
     8.8   * Metamod:Source Sample Plugin
     8.9   * Written by AlliedModders LLC.
    8.10 @@ -10,8 +10,6 @@
    8.11   * the use of this software.
    8.12   *
    8.13   * This sample plugin is public domain.
    8.14 - *
    8.15 - * Version: $Id$
    8.16   */
    8.17  
    8.18  #ifndef _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
    8.19 @@ -71,10 +69,6 @@
    8.20  	const char *GetVersion();
    8.21  	const char *GetDate();
    8.22  	const char *GetLogTag();
    8.23 -private:
    8.24 -#if !defined METAMOD_PLAPI_VERSION
    8.25 -	SourceHook::CallClass<IVEngineServer> *m_EngineCC;
    8.26 -#endif
    8.27  };
    8.28  
    8.29  extern SamplePlugin g_SamplePlugin;
     9.1 --- a/stub_mm/Makefile	Mon Nov 02 11:08:56 2009 -0600
     9.2 +++ b/stub_mm/Makefile	Fri Nov 13 18:25:56 2009 -0600
     9.3 @@ -1,4 +1,4 @@
     9.4 -# (C)2004-2008 Metamod:Source Development Team
     9.5 +# (C)2004-2009 Metamod:Source Development Team
     9.6  # Makefile written by David "BAILOPAN" Anderson
     9.7  
     9.8  ###########################################
     9.9 @@ -7,8 +7,10 @@
    9.10  
    9.11  HL2SDK_ORIG = ../../hl2sdk
    9.12  HL2SDK_OB = ../../hl2sdk-ob
    9.13 +HL2SDK_OB_VALVE = ../../hl2sdk-ob-valve
    9.14  HL2SDK_L4D = ../../hl2sdk-l4d
    9.15 -MMSOURCE17 = ../mmsource-1.7
    9.16 +HL2SDK_L4D2 = ../../hl2sdk-l4d2
    9.17 +MMSOURCE18 = ..
    9.18  SRCDS_BASE = ~/srcds
    9.19  
    9.20  #####################################
    9.21 @@ -33,9 +35,10 @@
    9.22  	HL2PUB = $(HL2SDK)/public
    9.23  	HL2LIB = $(HL2SDK)/linux_sdk
    9.24  	CFLAGS += -DSOURCE_ENGINE=1
    9.25 -	METAMOD = $(MMSOURCE17)/core-legacy
    9.26 +	METAMOD = $(MMSOURCE18)/core-legacy
    9.27  	INCLUDE += -I$(HL2SDK)/public/dlls
    9.28  	SRCDS = $(SRCDS_BASE)
    9.29 +	LIB_SUFFIX = i486
    9.30  	override ENGSET = true
    9.31  endif
    9.32  ifeq "$(ENGINE)" "orangebox"
    9.33 @@ -43,29 +46,54 @@
    9.34  	HL2PUB = $(HL2SDK)/public
    9.35  	HL2LIB = $(HL2SDK)/lib/linux
    9.36  	CFLAGS += -DSOURCE_ENGINE=3
    9.37 -	METAMOD = $(MMSOURCE17)/core
    9.38 +	METAMOD = $(MMSOURCE18)/core
    9.39  	INCLUDE += -I$(HL2SDK)/public/game/server
    9.40  	SRCDS = $(SRCDS_BASE)/orangebox
    9.41 +	LIB_SUFFIX = i486
    9.42 +	override ENGSET = true
    9.43 +endif
    9.44 +ifeq "$(ENGINE)" "orangeboxvalve"
    9.45 +	HL2SDK = $(HL2SDK_OB_VALVE)
    9.46 +	HL2PUB = $(HL2SDK)/public
    9.47 +	HL2LIB = $(HL2SDK)/lib/linux
    9.48 +	CFLAGS += -DSOURCE_ENGINE=4
    9.49 +	METAMOD = $(MMSOURCE18)/core
    9.50 +	INCLUDE += -I$(HL2SDK)/public/game/server
    9.51 +	SRCDS = $(SRCDS_BASE)/orangebox
    9.52 +	LIB_SUFFIX = i486
    9.53  	override ENGSET = true
    9.54  endif
    9.55  ifeq "$(ENGINE)" "left4dead"
    9.56  	HL2SDK = $(HL2SDK_L4D)
    9.57  	HL2PUB = $(HL2SDK)/public
    9.58  	HL2LIB = $(HL2SDK)/lib/linux
    9.59 -	CFLAGS += -DSOURCE_ENGINE=4
    9.60 -	METAMOD = $(MMSOURCE17)/core
    9.61 +	CFLAGS += -DSOURCE_ENGINE=5
    9.62 +	METAMOD = $(MMSOURCE18)/core
    9.63  	INCLUDE += -I$(HL2SDK)/public/game/server
    9.64  	SRCDS = $(SRCDS_BASE)/l4d
    9.65 +	LIB_SUFFIX = i486
    9.66 +	override ENGSET = true
    9.67 +endif
    9.68 +ifeq "$(ENGINE)" "left4dead2"
    9.69 +	HL2SDK = $(HL2SDK_L4D2)
    9.70 +	HL2PUB = $(HL2SDK)/public
    9.71 +	HL2LIB = $(HL2SDK)/lib/linux
    9.72 +	CFLAGS += -DSOURCE_ENGINE=6
    9.73 +	METAMOD = $(MMSOURCE18)/core
    9.74 +	INCLUDE += -I$(HL2SDK)/public/game/server
    9.75 +	SRCDS = $(SRCDS_BASE)/left4dead2_demo
    9.76 +	LIB_SUFFIX = linux
    9.77  	override ENGSET = true
    9.78  endif
    9.79  
    9.80 -CFLAGS += -DSE_EPISODEONE=1 -DSE_DARKMESSIAH=2 -DSE_ORANGEBOX=3 -DSE_LEFT4DEAD=4
    9.81 +CFLAGS += -DSE_EPISODEONE=1 -DSE_DARKMESSIAH=2 -DSE_ORANGEBOX=3 -DSE_ORANGEBOXVALVE=4 \
    9.82 +	-DSE_LEFT4DEAD=5 -DSE_LEFT4DEAD2=6
    9.83  
    9.84 -LINK += $(HL2LIB)/tier1_i486.a vstdlib_i486.so tier0_i486.so -static-libgcc
    9.85 +LINK += $(HL2LIB)/tier1_i486.a vstdlib_$(LIB_SUFFIX).so tier0_$(LIB_SUFFIX).so -static-libgcc
    9.86  
    9.87  INCLUDE += -I. -I.. -I$(HL2PUB) -I$(HL2PUB)/engine -I$(HL2PUB)/mathlib -I$(HL2PUB)/vstdlib \
    9.88  	-I$(HL2PUB)/tier0 -I$(HL2PUB)/tier1 -I. -I$(METAMOD) -I$(METAMOD)/sourcehook
    9.89 -	
    9.90 +
    9.91  ################################################
    9.92  ### DO NOT EDIT BELOW HERE FOR MOST PROJECTS ###
    9.93  ################################################
    9.94 @@ -96,15 +124,14 @@
    9.95  
    9.96  all: check
    9.97  	mkdir -p $(BIN_DIR)
    9.98 -	rm -f vstdlib_i486.so
    9.99 -	rm -f tier0_i486.so
   9.100 -	ln -sf $(SRCDS)/bin/vstdlib_i486.so vstdlib_i486.so
   9.101 -	ln -sf $(SRCDS)/bin/tier0_i486.so tier0_i486.so
   9.102 +	ln -sf $(HL2LIB)/vstdlib_$(LIB_SUFFIX).so
   9.103 +	ln -sf $(HL2LIB)/tier0_$(LIB_SUFFIX).so
   9.104  	$(MAKE) -f Makefile stub_mm
   9.105  	
   9.106  check:
   9.107  	if [ "$(ENGSET)" = "false" ]; then \
   9.108 -		echo "You must supply ENGINE=left4dead or ENGINE=orangebox or ENGINE=original"; \
   9.109 +		echo "You must supply one of the following values for ENGINE:"; \
   9.110 +		echo "left4dead2, left4dead, orangeboxvalve or orangebox"; \
   9.111  		exit 1; \
   9.112  	fi
   9.113  
    10.1 --- a/stub_mm/msvc8/stub_mm.sln	Mon Nov 02 11:08:56 2009 -0600
    10.2 +++ b/stub_mm/msvc8/stub_mm.sln	Fri Nov 13 18:25:56 2009 -0600
    10.3 @@ -6,27 +6,39 @@
    10.4  Global
    10.5  	GlobalSection(SolutionConfigurationPlatforms) = preSolution
    10.6  		Debug - Dark Messiah|Win32 = Debug - Dark Messiah|Win32
    10.7 +		Debug - Left 4 Dead 2|Win32 = Debug - Left 4 Dead 2|Win32
    10.8  		Debug - Left 4 Dead|Win32 = Debug - Left 4 Dead|Win32
    10.9 +		Debug - Orange Box Valve|Win32 = Debug - Orange Box Valve|Win32
   10.10  		Debug - Orange Box|Win32 = Debug - Orange Box|Win32
   10.11  		Debug - Original|Win32 = Debug - Original|Win32
   10.12  		Release - Dark Messiah|Win32 = Release - Dark Messiah|Win32
   10.13 +		Release - Left 4 Dead 2|Win32 = Release - Left 4 Dead 2|Win32
   10.14  		Release - Left 4 Dead|Win32 = Release - Left 4 Dead|Win32
   10.15 +		Release - Orange Box Valve|Win32 = Release - Orange Box Valve|Win32
   10.16  		Release - Orange Box|Win32 = Release - Orange Box|Win32
   10.17  		Release - Original|Win32 = Release - Original|Win32
   10.18  	EndGlobalSection
   10.19  	GlobalSection(ProjectConfigurationPlatforms) = postSolution
   10.20  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Dark Messiah|Win32.ActiveCfg = Debug - Dark Messiah|Win32
   10.21  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Dark Messiah|Win32.Build.0 = Debug - Dark Messiah|Win32
   10.22 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead 2|Win32.ActiveCfg = Debug - Left 4 Dead 2|Win32
   10.23 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead 2|Win32.Build.0 = Debug - Left 4 Dead 2|Win32
   10.24  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead|Win32.ActiveCfg = Debug - Left 4 Dead|Win32
   10.25  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead|Win32.Build.0 = Debug - Left 4 Dead|Win32
   10.26 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box Valve|Win32.ActiveCfg = Debug - Orange Box Valve|Win32
   10.27 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box Valve|Win32.Build.0 = Debug - Orange Box Valve|Win32
   10.28  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box|Win32.ActiveCfg = Debug - Orange Box|Win32
   10.29  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box|Win32.Build.0 = Debug - Orange Box|Win32
   10.30  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Original|Win32.ActiveCfg = Debug - Original|Win32
   10.31  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Original|Win32.Build.0 = Debug - Original|Win32
   10.32  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Dark Messiah|Win32.ActiveCfg = Release - Dark Messiah|Win32
   10.33  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Dark Messiah|Win32.Build.0 = Release - Dark Messiah|Win32
   10.34 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead 2|Win32.ActiveCfg = Release - Left 4 Dead 2|Win32
   10.35 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead 2|Win32.Build.0 = Release - Left 4 Dead 2|Win32
   10.36  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead|Win32.ActiveCfg = Release - Left 4 Dead|Win32
   10.37  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead|Win32.Build.0 = Release - Left 4 Dead|Win32
   10.38 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box Valve|Win32.ActiveCfg = Release - Orange Box Valve|Win32
   10.39 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box Valve|Win32.Build.0 = Release - Orange Box Valve|Win32
   10.40  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box|Win32.ActiveCfg = Release - Orange Box|Win32
   10.41  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box|Win32.Build.0 = Release - Orange Box|Win32
   10.42  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Original|Win32.ActiveCfg = Release - Original|Win32
    11.1 --- a/stub_mm/msvc8/stub_mm.vcproj	Mon Nov 02 11:08:56 2009 -0600
    11.2 +++ b/stub_mm/msvc8/stub_mm.vcproj	Fri Nov 13 18:25:56 2009 -0600
    11.3 @@ -39,10 +39,10 @@
    11.4  			/>
    11.5  			<Tool
    11.6  				Name="VCCLCompilerTool"
    11.7 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
    11.8 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
    11.9  				Optimization="0"
   11.10 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core-legacy&quot;;&quot;$(MMSOURCE17)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
   11.11 -				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=2"
   11.12 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core-legacy&quot;;&quot;$(MMSOURCE18)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
   11.13 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=1"
   11.14  				MinimalRebuild="true"
   11.15  				BasicRuntimeChecks="3"
   11.16  				RuntimeLibrary="1"
   11.17 @@ -120,9 +120,9 @@
   11.18  			/>
   11.19  			<Tool
   11.20  				Name="VCCLCompilerTool"
   11.21 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
   11.22 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core-legacy&quot;;&quot;$(MMSOURCE17)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
   11.23 -				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=2"
   11.24 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   11.25 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core-legacy&quot;;&quot;$(MMSOURCE18)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
   11.26 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=1"
   11.27  				RuntimeLibrary="0"
   11.28  				UsePrecompiledHeader="0"
   11.29  				WarningLevel="3"
   11.30 @@ -199,10 +199,10 @@
   11.31  			/>
   11.32  			<Tool
   11.33  				Name="VCCLCompilerTool"
   11.34 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
   11.35 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   11.36  				Optimization="0"
   11.37 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
   11.38 -				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=3"
   11.39 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
   11.40 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=2"
   11.41  				MinimalRebuild="true"
   11.42  				BasicRuntimeChecks="3"
   11.43  				RuntimeLibrary="1"
   11.44 @@ -280,9 +280,9 @@
   11.45  			/>
   11.46  			<Tool
   11.47  				Name="VCCLCompilerTool"
   11.48 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
   11.49 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
   11.50 -				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=3"
   11.51 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   11.52 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
   11.53 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=2"
   11.54  				RuntimeLibrary="0"
   11.55  				UsePrecompiledHeader="0"
   11.56  				WarningLevel="3"
   11.57 @@ -359,9 +359,9 @@
   11.58  			/>
   11.59  			<Tool
   11.60  				Name="VCCLCompilerTool"
   11.61 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
   11.62 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   11.63  				Optimization="0"
   11.64 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
   11.65 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
   11.66  				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=3"
   11.67  				MinimalRebuild="true"
   11.68  				BasicRuntimeChecks="3"
   11.69 @@ -440,8 +440,8 @@
   11.70  			/>
   11.71  			<Tool
   11.72  				Name="VCCLCompilerTool"
   11.73 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
   11.74 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
   11.75 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   11.76 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
   11.77  				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=3"
   11.78  				RuntimeLibrary="0"
   11.79  				UsePrecompiledHeader="0"
   11.80 @@ -496,6 +496,166 @@
   11.81  			/>
   11.82  		</Configuration>
   11.83  		<Configuration
   11.84 +			Name="Debug - Orange Box Valve|Win32"
   11.85 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
   11.86 +			IntermediateDirectory="$(ConfigurationName)"
   11.87 +			ConfigurationType="2"
   11.88 +			CharacterSet="2"
   11.89 +			>
   11.90 +			<Tool
   11.91 +				Name="VCPreBuildEventTool"
   11.92 +			/>
   11.93 +			<Tool
   11.94 +				Name="VCCustomBuildTool"
   11.95 +			/>
   11.96 +			<Tool
   11.97 +				Name="VCXMLDataGeneratorTool"
   11.98 +			/>
   11.99 +			<Tool
  11.100 +				Name="VCWebServiceProxyGeneratorTool"
  11.101 +			/>
  11.102 +			<Tool
  11.103 +				Name="VCMIDLTool"
  11.104 +			/>
  11.105 +			<Tool
  11.106 +				Name="VCCLCompilerTool"
  11.107 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  11.108 +				Optimization="0"
  11.109 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOBVALVE)\public&quot;;&quot;$(HL2SDKOBVALVE)\public\engine&quot;;&quot;$(HL2SDKOBVALVE)\public\game\server&quot;;&quot;$(HL2SDKOBVALVE)\public\tier0&quot;;&quot;$(HL2SDKOBVALVE)\public\tier1&quot;;&quot;$(HL2SDKOBVALVE)\public\vstdlib&quot;"
  11.110 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=4"
  11.111 +				MinimalRebuild="true"
  11.112 +				BasicRuntimeChecks="3"
  11.113 +				RuntimeLibrary="1"
  11.114 +				UsePrecompiledHeader="0"
  11.115 +				WarningLevel="3"
  11.116 +				Detect64BitPortabilityProblems="false"
  11.117 +				DebugInformationFormat="4"
  11.118 +			/>
  11.119 +			<Tool
  11.120 +				Name="VCManagedResourceCompilerTool"
  11.121 +			/>
  11.122 +			<Tool
  11.123 +				Name="VCResourceCompilerTool"
  11.124 +			/>
  11.125 +			<Tool
  11.126 +				Name="VCPreLinkEventTool"
  11.127 +			/>
  11.128 +			<Tool
  11.129 +				Name="VCLinkerTool"
  11.130 +				AdditionalDependencies="&quot;$(HL2SDKOBVALVE)\lib\public\tier0.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\tier1.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\vstdlib.lib&quot;"
  11.131 +				OutputFile="$(OutDir)\stub_mm.dll"
  11.132 +				LinkIncremental="2"
  11.133 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMT"
  11.134 +				GenerateDebugInformation="true"
  11.135 +				SubSystem="2"
  11.136 +				TargetMachine="1"
  11.137 +			/>
  11.138 +			<Tool
  11.139 +				Name="VCALinkTool"
  11.140 +			/>
  11.141 +			<Tool
  11.142 +				Name="VCManifestTool"
  11.143 +			/>
  11.144 +			<Tool
  11.145 +				Name="VCXDCMakeTool"
  11.146 +			/>
  11.147 +			<Tool
  11.148 +				Name="VCBscMakeTool"
  11.149 +			/>
  11.150 +			<Tool
  11.151 +				Name="VCFxCopTool"
  11.152 +			/>
  11.153 +			<Tool
  11.154 +				Name="VCAppVerifierTool"
  11.155 +			/>
  11.156 +			<Tool
  11.157 +				Name="VCWebDeploymentTool"
  11.158 +			/>
  11.159 +			<Tool
  11.160 +				Name="VCPostBuildEventTool"
  11.161 +			/>
  11.162 +		</Configuration>
  11.163 +		<Configuration
  11.164 +			Name="Release - Orange Box Valve|Win32"
  11.165 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
  11.166 +			IntermediateDirectory="$(ConfigurationName)"
  11.167 +			ConfigurationType="2"
  11.168 +			CharacterSet="2"
  11.169 +			WholeProgramOptimization="1"
  11.170 +			>
  11.171 +			<Tool
  11.172 +				Name="VCPreBuildEventTool"
  11.173 +			/>
  11.174 +			<Tool
  11.175 +				Name="VCCustomBuildTool"
  11.176 +			/>
  11.177 +			<Tool
  11.178 +				Name="VCXMLDataGeneratorTool"
  11.179 +			/>
  11.180 +			<Tool
  11.181 +				Name="VCWebServiceProxyGeneratorTool"
  11.182 +			/>
  11.183 +			<Tool
  11.184 +				Name="VCMIDLTool"
  11.185 +			/>
  11.186 +			<Tool
  11.187 +				Name="VCCLCompilerTool"
  11.188 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  11.189 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOBVALVE)\public&quot;;&quot;$(HL2SDKOBVALVE)\public\engine&quot;;&quot;$(HL2SDKOBVALVE)\public\game\server&quot;;&quot;$(HL2SDKOBVALVE)\public\tier0&quot;;&quot;$(HL2SDKOBVALVE)\public\tier1&quot;;&quot;$(HL2SDKOBVALVE)\public\vstdlib&quot;"
  11.190 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=4"
  11.191 +				RuntimeLibrary="0"
  11.192 +				UsePrecompiledHeader="0"
  11.193 +				WarningLevel="3"
  11.194 +				Detect64BitPortabilityProblems="false"
  11.195 +				DebugInformationFormat="3"
  11.196 +			/>
  11.197 +			<Tool
  11.198 +				Name="VCManagedResourceCompilerTool"
  11.199 +			/>
  11.200 +			<Tool
  11.201 +				Name="VCResourceCompilerTool"
  11.202 +			/>
  11.203 +			<Tool
  11.204 +				Name="VCPreLinkEventTool"
  11.205 +			/>
  11.206 +			<Tool
  11.207 +				Name="VCLinkerTool"
  11.208 +				AdditionalDependencies="&quot;$(HL2SDKOBVALVE)\lib\public\tier0.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\tier1.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\vstdlib.lib&quot;"
  11.209 +				OutputFile="$(OutDir)\stub_mm.dll"
  11.210 +				LinkIncremental="1"
  11.211 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMTD"
  11.212 +				GenerateDebugInformation="true"
  11.213 +				SubSystem="2"
  11.214 +				OptimizeReferences="2"
  11.215 +				EnableCOMDATFolding="2"
  11.216 +				TargetMachine="1"
  11.217 +			/>
  11.218 +			<Tool
  11.219 +				Name="VCALinkTool"
  11.220 +			/>
  11.221 +			<Tool
  11.222 +				Name="VCManifestTool"
  11.223 +			/>
  11.224 +			<Tool
  11.225 +				Name="VCXDCMakeTool"
  11.226 +			/>
  11.227 +			<Tool
  11.228 +				Name="VCBscMakeTool"
  11.229 +			/>
  11.230 +			<Tool
  11.231 +				Name="VCFxCopTool"
  11.232 +			/>
  11.233 +			<Tool
  11.234 +				Name="VCAppVerifierTool"
  11.235 +			/>
  11.236 +			<Tool
  11.237 +				Name="VCWebDeploymentTool"
  11.238 +			/>
  11.239 +			<Tool
  11.240 +				Name="VCPostBuildEventTool"
  11.241 +			/>
  11.242 +		</Configuration>
  11.243 +		<Configuration
  11.244  			Name="Debug - Left 4 Dead|Win32"
  11.245  			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
  11.246  			IntermediateDirectory="$(ConfigurationName)"
  11.247 @@ -519,10 +679,10 @@
  11.248  			/>
  11.249  			<Tool
  11.250  				Name="VCCLCompilerTool"
  11.251 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
  11.252 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  11.253  				Optimization="0"
  11.254 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
  11.255 -				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=4"
  11.256 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
  11.257 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=5"
  11.258  				MinimalRebuild="true"
  11.259  				BasicRuntimeChecks="3"
  11.260  				RuntimeLibrary="1"
  11.261 @@ -600,9 +760,9 @@
  11.262  			/>
  11.263  			<Tool
  11.264  				Name="VCCLCompilerTool"
  11.265 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
  11.266 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
  11.267 -				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=4"
  11.268 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  11.269 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
  11.270 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=5"
  11.271  				RuntimeLibrary="0"
  11.272  				UsePrecompiledHeader="0"
  11.273  				WarningLevel="3"
  11.274 @@ -655,6 +815,166 @@
  11.275  				Name="VCPostBuildEventTool"
  11.276  			/>
  11.277  		</Configuration>
  11.278 +		<Configuration
  11.279 +			Name="Debug - Left 4 Dead 2|Win32"
  11.280 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
  11.281 +			IntermediateDirectory="$(ConfigurationName)"
  11.282 +			ConfigurationType="2"
  11.283 +			CharacterSet="2"
  11.284 +			>
  11.285 +			<Tool
  11.286 +				Name="VCPreBuildEventTool"
  11.287 +			/>
  11.288 +			<Tool
  11.289 +				Name="VCCustomBuildTool"
  11.290 +			/>
  11.291 +			<Tool
  11.292 +				Name="VCXMLDataGeneratorTool"
  11.293 +			/>
  11.294 +			<Tool
  11.295 +				Name="VCWebServiceProxyGeneratorTool"
  11.296 +			/>
  11.297 +			<Tool
  11.298 +				Name="VCMIDLTool"
  11.299 +			/>
  11.300 +			<Tool
  11.301 +				Name="VCCLCompilerTool"
  11.302 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  11.303 +				Optimization="0"
  11.304 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D2)\public&quot;;&quot;$(HL2SDKL4D2)\public\engine&quot;;&quot;$(HL2SDKL4D2)\public\game\server&quot;;&quot;$(HL2SDKL4D2)\public\tier0&quot;;&quot;$(HL2SDKL4D2)\public\tier1&quot;;&quot;$(HL2SDKL4D2)\public\vstdlib&quot;"
  11.305 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=6"
  11.306 +				MinimalRebuild="true"
  11.307 +				BasicRuntimeChecks="3"
  11.308 +				RuntimeLibrary="1"
  11.309 +				UsePrecompiledHeader="0"
  11.310 +				WarningLevel="3"
  11.311 +				Detect64BitPortabilityProblems="false"
  11.312 +				DebugInformationFormat="4"
  11.313 +			/>
  11.314 +			<Tool
  11.315 +				Name="VCManagedResourceCompilerTool"
  11.316 +			/>
  11.317 +			<Tool
  11.318 +				Name="VCResourceCompilerTool"
  11.319 +			/>
  11.320 +			<Tool
  11.321 +				Name="VCPreLinkEventTool"
  11.322 +			/>
  11.323 +			<Tool
  11.324 +				Name="VCLinkerTool"
  11.325 +				AdditionalDependencies="&quot;$(HL2SDKL4D2)\lib\public\tier0.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\tier1.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\vstdlib.lib&quot;"
  11.326 +				OutputFile="$(OutDir)\stub_mm.dll"
  11.327 +				LinkIncremental="2"
  11.328 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMT"
  11.329 +				GenerateDebugInformation="true"
  11.330 +				SubSystem="2"
  11.331 +				TargetMachine="1"
  11.332 +			/>
  11.333 +			<Tool
  11.334 +				Name="VCALinkTool"
  11.335 +			/>
  11.336 +			<Tool
  11.337 +				Name="VCManifestTool"
  11.338 +			/>
  11.339 +			<Tool
  11.340 +				Name="VCXDCMakeTool"
  11.341 +			/>
  11.342 +			<Tool
  11.343 +				Name="VCBscMakeTool"
  11.344 +			/>
  11.345 +			<Tool
  11.346 +				Name="VCFxCopTool"
  11.347 +			/>
  11.348 +			<Tool
  11.349 +				Name="VCAppVerifierTool"
  11.350 +			/>
  11.351 +			<Tool
  11.352 +				Name="VCWebDeploymentTool"
  11.353 +			/>
  11.354 +			<Tool
  11.355 +				Name="VCPostBuildEventTool"
  11.356 +			/>
  11.357 +		</Configuration>
  11.358 +		<Configuration
  11.359 +			Name="Release - Left 4 Dead 2|Win32"
  11.360 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
  11.361 +			IntermediateDirectory="$(ConfigurationName)"
  11.362 +			ConfigurationType="2"
  11.363 +			CharacterSet="2"
  11.364 +			WholeProgramOptimization="1"
  11.365 +			>
  11.366 +			<Tool
  11.367 +				Name="VCPreBuildEventTool"
  11.368 +			/>
  11.369 +			<Tool
  11.370 +				Name="VCCustomBuildTool"
  11.371 +			/>
  11.372 +			<Tool
  11.373 +				Name="VCXMLDataGeneratorTool"
  11.374 +			/>
  11.375 +			<Tool
  11.376 +				Name="VCWebServiceProxyGeneratorTool"
  11.377 +			/>
  11.378 +			<Tool
  11.379 +				Name="VCMIDLTool"
  11.380 +			/>
  11.381 +			<Tool
  11.382 +				Name="VCCLCompilerTool"
  11.383 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  11.384 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D2)\public&quot;;&quot;$(HL2SDKL4D2)\public\engine&quot;;&quot;$(HL2SDKL4D2)\public\game\server&quot;;&quot;$(HL2SDKL4D2)\public\tier0&quot;;&quot;$(HL2SDKL4D2)\public\tier1&quot;;&quot;$(HL2SDKL4D2)\public\vstdlib&quot;"
  11.385 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=6"
  11.386 +				RuntimeLibrary="0"
  11.387 +				UsePrecompiledHeader="0"
  11.388 +				WarningLevel="3"
  11.389 +				Detect64BitPortabilityProblems="false"
  11.390 +				DebugInformationFormat="3"
  11.391 +			/>
  11.392 +			<Tool
  11.393 +				Name="VCManagedResourceCompilerTool"
  11.394 +			/>
  11.395 +			<Tool
  11.396 +				Name="VCResourceCompilerTool"
  11.397 +			/>
  11.398 +			<Tool
  11.399 +				Name="VCPreLinkEventTool"
  11.400 +			/>
  11.401 +			<Tool
  11.402 +				Name="VCLinkerTool"
  11.403 +				AdditionalDependencies="&quot;$(HL2SDKL4D2)\lib\public\tier0.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\tier1.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\vstdlib.lib&quot;"
  11.404 +				OutputFile="$(OutDir)\stub_mm.dll"
  11.405 +				LinkIncremental="1"
  11.406 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMTD"
  11.407 +				GenerateDebugInformation="true"
  11.408 +				SubSystem="2"
  11.409 +				OptimizeReferences="2"
  11.410 +				EnableCOMDATFolding="2"
  11.411 +				TargetMachine="1"
  11.412 +			/>
  11.413 +			<Tool
  11.414 +				Name="VCALinkTool"
  11.415 +			/>
  11.416 +			<Tool
  11.417 +				Name="VCManifestTool"
  11.418 +			/>
  11.419 +			<Tool
  11.420 +				Name="VCXDCMakeTool"
  11.421 +			/>
  11.422 +			<Tool
  11.423 +				Name="VCBscMakeTool"
  11.424 +			/>
  11.425 +			<Tool
  11.426 +				Name="VCFxCopTool"
  11.427 +			/>
  11.428 +			<Tool
  11.429 +				Name="VCAppVerifierTool"
  11.430 +			/>
  11.431 +			<Tool
  11.432 +				Name="VCWebDeploymentTool"
  11.433 +			/>
  11.434 +			<Tool
  11.435 +				Name="VCPostBuildEventTool"
  11.436 +			/>
  11.437 +		</Configuration>
  11.438  	</Configurations>
  11.439  	<References>
  11.440  	</References>
    12.1 --- a/stub_mm/msvc9/stub_mm.sln	Mon Nov 02 11:08:56 2009 -0600
    12.2 +++ b/stub_mm/msvc9/stub_mm.sln	Fri Nov 13 18:25:56 2009 -0600
    12.3 @@ -6,27 +6,39 @@
    12.4  Global
    12.5  	GlobalSection(SolutionConfigurationPlatforms) = preSolution
    12.6  		Debug - Dark Messiah|Win32 = Debug - Dark Messiah|Win32
    12.7 +		Debug - Left 4 Dead 2|Win32 = Debug - Left 4 Dead 2|Win32
    12.8  		Debug - Left 4 Dead|Win32 = Debug - Left 4 Dead|Win32
    12.9 +		Debug - Orange Box Valve|Win32 = Debug - Orange Box Valve|Win32
   12.10  		Debug - Orange Box|Win32 = Debug - Orange Box|Win32
   12.11  		Debug - Original|Win32 = Debug - Original|Win32
   12.12  		Release - Dark Messiah|Win32 = Release - Dark Messiah|Win32
   12.13 +		Release - Left 4 Dead 2|Win32 = Release - Left 4 Dead 2|Win32
   12.14  		Release - Left 4 Dead|Win32 = Release - Left 4 Dead|Win32
   12.15 +		Release - Orange Box Valve|Win32 = Release - Orange Box Valve|Win32
   12.16  		Release - Orange Box|Win32 = Release - Orange Box|Win32
   12.17  		Release - Original|Win32 = Release - Original|Win32
   12.18  	EndGlobalSection
   12.19  	GlobalSection(ProjectConfigurationPlatforms) = postSolution
   12.20  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Dark Messiah|Win32.ActiveCfg = Debug - Dark Messiah|Win32
   12.21  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Dark Messiah|Win32.Build.0 = Debug - Dark Messiah|Win32
   12.22 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead 2|Win32.ActiveCfg = Debug - Left 4 Dead 2|Win32
   12.23 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead 2|Win32.Build.0 = Debug - Left 4 Dead 2|Win32
   12.24  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead|Win32.ActiveCfg = Debug - Left 4 Dead|Win32
   12.25  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Left 4 Dead|Win32.Build.0 = Debug - Left 4 Dead|Win32
   12.26 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box Valve|Win32.ActiveCfg = Debug - Orange Box Valve|Win32
   12.27 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box Valve|Win32.Build.0 = Debug - Orange Box Valve|Win32
   12.28  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box|Win32.ActiveCfg = Debug - Orange Box|Win32
   12.29  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Orange Box|Win32.Build.0 = Debug - Orange Box|Win32
   12.30  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Original|Win32.ActiveCfg = Debug - Original|Win32
   12.31  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Debug - Original|Win32.Build.0 = Debug - Original|Win32
   12.32  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Dark Messiah|Win32.ActiveCfg = Release - Dark Messiah|Win32
   12.33  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Dark Messiah|Win32.Build.0 = Release - Dark Messiah|Win32
   12.34 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead 2|Win32.ActiveCfg = Release - Left 4 Dead 2|Win32
   12.35 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead 2|Win32.Build.0 = Release - Left 4 Dead 2|Win32
   12.36  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead|Win32.ActiveCfg = Release - Left 4 Dead|Win32
   12.37  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Left 4 Dead|Win32.Build.0 = Release - Left 4 Dead|Win32
   12.38 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box Valve|Win32.ActiveCfg = Release - Orange Box Valve|Win32
   12.39 +		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box Valve|Win32.Build.0 = Release - Orange Box Valve|Win32
   12.40  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box|Win32.ActiveCfg = Release - Orange Box|Win32
   12.41  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Orange Box|Win32.Build.0 = Release - Orange Box|Win32
   12.42  		{E62E5876-E1E2-41A0-85CA-1B41B9DA55F9}.Release - Original|Win32.ActiveCfg = Release - Original|Win32
    13.1 --- a/stub_mm/msvc9/stub_mm.vcproj	Mon Nov 02 11:08:56 2009 -0600
    13.2 +++ b/stub_mm/msvc9/stub_mm.vcproj	Fri Nov 13 18:25:56 2009 -0600
    13.3 @@ -40,10 +40,10 @@
    13.4  			/>
    13.5  			<Tool
    13.6  				Name="VCCLCompilerTool"
    13.7 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
    13.8 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
    13.9  				Optimization="0"
   13.10 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core-legacy&quot;;&quot;$(MMSOURCE17)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
   13.11 -				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=2"
   13.12 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core-legacy&quot;;&quot;$(MMSOURCE18)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
   13.13 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=1"
   13.14  				MinimalRebuild="true"
   13.15  				BasicRuntimeChecks="3"
   13.16  				RuntimeLibrary="1"
   13.17 @@ -120,9 +120,9 @@
   13.18  			/>
   13.19  			<Tool
   13.20  				Name="VCCLCompilerTool"
   13.21 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
   13.22 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core-legacy&quot;;&quot;$(MMSOURCE17)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
   13.23 -				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=2"
   13.24 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   13.25 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core-legacy&quot;;&quot;$(MMSOURCE18)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
   13.26 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=1"
   13.27  				RuntimeLibrary="0"
   13.28  				UsePrecompiledHeader="0"
   13.29  				WarningLevel="3"
   13.30 @@ -198,10 +198,10 @@
   13.31  			/>
   13.32  			<Tool
   13.33  				Name="VCCLCompilerTool"
   13.34 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
   13.35 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   13.36  				Optimization="0"
   13.37 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
   13.38 -				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=3"
   13.39 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
   13.40 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=2"
   13.41  				MinimalRebuild="true"
   13.42  				BasicRuntimeChecks="3"
   13.43  				RuntimeLibrary="1"
   13.44 @@ -278,9 +278,9 @@
   13.45  			/>
   13.46  			<Tool
   13.47  				Name="VCCLCompilerTool"
   13.48 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
   13.49 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
   13.50 -				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=3"
   13.51 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   13.52 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
   13.53 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=2"
   13.54  				RuntimeLibrary="0"
   13.55  				UsePrecompiledHeader="0"
   13.56  				WarningLevel="3"
   13.57 @@ -356,9 +356,9 @@
   13.58  			/>
   13.59  			<Tool
   13.60  				Name="VCCLCompilerTool"
   13.61 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
   13.62 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   13.63  				Optimization="0"
   13.64 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
   13.65 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
   13.66  				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=3"
   13.67  				MinimalRebuild="true"
   13.68  				BasicRuntimeChecks="3"
   13.69 @@ -436,8 +436,8 @@
   13.70  			/>
   13.71  			<Tool
   13.72  				Name="VCCLCompilerTool"
   13.73 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
   13.74 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
   13.75 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   13.76 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
   13.77  				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=3"
   13.78  				RuntimeLibrary="0"
   13.79  				UsePrecompiledHeader="0"
   13.80 @@ -491,6 +491,164 @@
   13.81  			/>
   13.82  		</Configuration>
   13.83  		<Configuration
   13.84 +			Name="Debug - Orange Box Valve|Win32"
   13.85 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
   13.86 +			IntermediateDirectory="$(ConfigurationName)"
   13.87 +			ConfigurationType="2"
   13.88 +			CharacterSet="2"
   13.89 +			>
   13.90 +			<Tool
   13.91 +				Name="VCPreBuildEventTool"
   13.92 +			/>
   13.93 +			<Tool
   13.94 +				Name="VCCustomBuildTool"
   13.95 +			/>
   13.96 +			<Tool
   13.97 +				Name="VCXMLDataGeneratorTool"
   13.98 +			/>
   13.99 +			<Tool
  13.100 +				Name="VCWebServiceProxyGeneratorTool"
  13.101 +			/>
  13.102 +			<Tool
  13.103 +				Name="VCMIDLTool"
  13.104 +			/>
  13.105 +			<Tool
  13.106 +				Name="VCCLCompilerTool"
  13.107 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  13.108 +				Optimization="0"
  13.109 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOBVALVE)\public&quot;;&quot;$(HL2SDKOBVALVE)\public\engine&quot;;&quot;$(HL2SDKOBVALVE)\public\game\server&quot;;&quot;$(HL2SDKOBVALVE)\public\tier0&quot;;&quot;$(HL2SDKOBVALVE)\public\tier1&quot;;&quot;$(HL2SDKOBVALVE)\public\vstdlib&quot;"
  13.110 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=4"
  13.111 +				MinimalRebuild="true"
  13.112 +				BasicRuntimeChecks="3"
  13.113 +				RuntimeLibrary="1"
  13.114 +				UsePrecompiledHeader="0"
  13.115 +				WarningLevel="3"
  13.116 +				Detect64BitPortabilityProblems="false"
  13.117 +				DebugInformationFormat="4"
  13.118 +			/>
  13.119 +			<Tool
  13.120 +				Name="VCManagedResourceCompilerTool"
  13.121 +			/>
  13.122 +			<Tool
  13.123 +				Name="VCResourceCompilerTool"
  13.124 +			/>
  13.125 +			<Tool
  13.126 +				Name="VCPreLinkEventTool"
  13.127 +			/>
  13.128 +			<Tool
  13.129 +				Name="VCLinkerTool"
  13.130 +				AdditionalDependencies="&quot;$(HL2SDKOBVALVE)\lib\public\tier0.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\tier1.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\vstdlib.lib&quot;"
  13.131 +				OutputFile="$(OutDir)\stub_mm.dll"
  13.132 +				LinkIncremental="2"
  13.133 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMT"
  13.134 +				GenerateDebugInformation="true"
  13.135 +				SubSystem="2"
  13.136 +				RandomizedBaseAddress="1"
  13.137 +				DataExecutionPrevention="0"
  13.138 +				TargetMachine="1"
  13.139 +			/>
  13.140 +			<Tool
  13.141 +				Name="VCALinkTool"
  13.142 +			/>
  13.143 +			<Tool
  13.144 +				Name="VCManifestTool"
  13.145 +			/>
  13.146 +			<Tool
  13.147 +				Name="VCXDCMakeTool"
  13.148 +			/>
  13.149 +			<Tool
  13.150 +				Name="VCBscMakeTool"
  13.151 +			/>
  13.152 +			<Tool
  13.153 +				Name="VCFxCopTool"
  13.154 +			/>
  13.155 +			<Tool
  13.156 +				Name="VCAppVerifierTool"
  13.157 +			/>
  13.158 +			<Tool
  13.159 +				Name="VCPostBuildEventTool"
  13.160 +			/>
  13.161 +		</Configuration>
  13.162 +		<Configuration
  13.163 +			Name="Release - Orange Box Valve|Win32"
  13.164 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
  13.165 +			IntermediateDirectory="$(ConfigurationName)"
  13.166 +			ConfigurationType="2"
  13.167 +			CharacterSet="2"
  13.168 +			WholeProgramOptimization="1"
  13.169 +			>
  13.170 +			<Tool
  13.171 +				Name="VCPreBuildEventTool"
  13.172 +			/>
  13.173 +			<Tool
  13.174 +				Name="VCCustomBuildTool"
  13.175 +			/>
  13.176 +			<Tool
  13.177 +				Name="VCXMLDataGeneratorTool"
  13.178 +			/>
  13.179 +			<Tool
  13.180 +				Name="VCWebServiceProxyGeneratorTool"
  13.181 +			/>
  13.182 +			<Tool
  13.183 +				Name="VCMIDLTool"
  13.184 +			/>
  13.185 +			<Tool
  13.186 +				Name="VCCLCompilerTool"
  13.187 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  13.188 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOBVALVE)\public&quot;;&quot;$(HL2SDKOBVALVE)\public\engine&quot;;&quot;$(HL2SDKOBVALVE)\public\game\server&quot;;&quot;$(HL2SDKOBVALVE)\public\tier0&quot;;&quot;$(HL2SDKOBVALVE)\public\tier1&quot;;&quot;$(HL2SDKOBVALVE)\public\vstdlib&quot;"
  13.189 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=4"
  13.190 +				RuntimeLibrary="0"
  13.191 +				UsePrecompiledHeader="0"
  13.192 +				WarningLevel="3"
  13.193 +				Detect64BitPortabilityProblems="false"
  13.194 +				DebugInformationFormat="3"
  13.195 +			/>
  13.196 +			<Tool
  13.197 +				Name="VCManagedResourceCompilerTool"
  13.198 +			/>
  13.199 +			<Tool
  13.200 +				Name="VCResourceCompilerTool"
  13.201 +			/>
  13.202 +			<Tool
  13.203 +				Name="VCPreLinkEventTool"
  13.204 +			/>
  13.205 +			<Tool
  13.206 +				Name="VCLinkerTool"
  13.207 +				AdditionalDependencies="&quot;$(HL2SDKOBVALVE)\lib\public\tier0.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\tier1.lib&quot; &quot;$(HL2SDKOBVALVE)\lib\public\vstdlib.lib&quot;"
  13.208 +				OutputFile="$(OutDir)\stub_mm.dll"
  13.209 +				LinkIncremental="1"
  13.210 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMTD"
  13.211 +				GenerateDebugInformation="true"
  13.212 +				SubSystem="2"
  13.213 +				OptimizeReferences="2"
  13.214 +				EnableCOMDATFolding="2"
  13.215 +				RandomizedBaseAddress="1"
  13.216 +				DataExecutionPrevention="0"
  13.217 +				TargetMachine="1"
  13.218 +			/>
  13.219 +			<Tool
  13.220 +				Name="VCALinkTool"
  13.221 +			/>
  13.222 +			<Tool
  13.223 +				Name="VCManifestTool"
  13.224 +			/>
  13.225 +			<Tool
  13.226 +				Name="VCXDCMakeTool"
  13.227 +			/>
  13.228 +			<Tool
  13.229 +				Name="VCBscMakeTool"
  13.230 +			/>
  13.231 +			<Tool
  13.232 +				Name="VCFxCopTool"
  13.233 +			/>
  13.234 +			<Tool
  13.235 +				Name="VCAppVerifierTool"
  13.236 +			/>
  13.237 +			<Tool
  13.238 +				Name="VCPostBuildEventTool"
  13.239 +			/>
  13.240 +		</Configuration>
  13.241 +		<Configuration
  13.242  			Name="Debug - Left 4 Dead|Win32"
  13.243  			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
  13.244  			IntermediateDirectory="$(ConfigurationName)"
  13.245 @@ -514,10 +672,10 @@
  13.246  			/>
  13.247  			<Tool
  13.248  				Name="VCCLCompilerTool"
  13.249 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
  13.250 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  13.251  				Optimization="0"
  13.252 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
  13.253 -				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=4"
  13.254 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
  13.255 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=5"
  13.256  				MinimalRebuild="true"
  13.257  				BasicRuntimeChecks="3"
  13.258  				RuntimeLibrary="1"
  13.259 @@ -594,9 +752,9 @@
  13.260  			/>
  13.261  			<Tool
  13.262  				Name="VCCLCompilerTool"
  13.263 -				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
  13.264 -				AdditionalIncludeDirectories="&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
  13.265 -				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=4"
  13.266 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  13.267 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
  13.268 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=5"
  13.269  				RuntimeLibrary="0"
  13.270  				UsePrecompiledHeader="0"
  13.271  				WarningLevel="3"
  13.272 @@ -648,6 +806,164 @@
  13.273  				Name="VCPostBuildEventTool"
  13.274  			/>
  13.275  		</Configuration>
  13.276 +		<Configuration
  13.277 +			Name="Debug - Left 4 Dead 2|Win32"
  13.278 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
  13.279 +			IntermediateDirectory="$(ConfigurationName)"
  13.280 +			ConfigurationType="2"
  13.281 +			CharacterSet="2"
  13.282 +			>
  13.283 +			<Tool
  13.284 +				Name="VCPreBuildEventTool"
  13.285 +			/>
  13.286 +			<Tool
  13.287 +				Name="VCCustomBuildTool"
  13.288 +			/>
  13.289 +			<Tool
  13.290 +				Name="VCXMLDataGeneratorTool"
  13.291 +			/>
  13.292 +			<Tool
  13.293 +				Name="VCWebServiceProxyGeneratorTool"
  13.294 +			/>
  13.295 +			<Tool
  13.296 +				Name="VCMIDLTool"
  13.297 +			/>
  13.298 +			<Tool
  13.299 +				Name="VCCLCompilerTool"
  13.300 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  13.301 +				Optimization="0"
  13.302 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D2)\public&quot;;&quot;$(HL2SDKL4D2)\public\engine&quot;;&quot;$(HL2SDKL4D2)\public\game\server&quot;;&quot;$(HL2SDKL4D2)\public\tier0&quot;;&quot;$(HL2SDKL4D2)\public\tier1&quot;;&quot;$(HL2SDKL4D2)\public\vstdlib&quot;"
  13.303 +				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=6"
  13.304 +				MinimalRebuild="true"
  13.305 +				BasicRuntimeChecks="3"
  13.306 +				RuntimeLibrary="1"
  13.307 +				UsePrecompiledHeader="0"
  13.308 +				WarningLevel="3"
  13.309 +				Detect64BitPortabilityProblems="false"
  13.310 +				DebugInformationFormat="4"
  13.311 +			/>
  13.312 +			<Tool
  13.313 +				Name="VCManagedResourceCompilerTool"
  13.314 +			/>
  13.315 +			<Tool
  13.316 +				Name="VCResourceCompilerTool"
  13.317 +			/>
  13.318 +			<Tool
  13.319 +				Name="VCPreLinkEventTool"
  13.320 +			/>
  13.321 +			<Tool
  13.322 +				Name="VCLinkerTool"
  13.323 +				AdditionalDependencies="&quot;$(HL2SDKL4D2)\lib\public\tier0.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\tier1.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\vstdlib.lib&quot;"
  13.324 +				OutputFile="$(OutDir)\stub_mm.dll"
  13.325 +				LinkIncremental="2"
  13.326 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMT"
  13.327 +				GenerateDebugInformation="true"
  13.328 +				SubSystem="2"
  13.329 +				RandomizedBaseAddress="1"
  13.330 +				DataExecutionPrevention="0"
  13.331 +				TargetMachine="1"
  13.332 +			/>
  13.333 +			<Tool
  13.334 +				Name="VCALinkTool"
  13.335 +			/>
  13.336 +			<Tool
  13.337 +				Name="VCManifestTool"
  13.338 +			/>
  13.339 +			<Tool
  13.340 +				Name="VCXDCMakeTool"
  13.341 +			/>
  13.342 +			<Tool
  13.343 +				Name="VCBscMakeTool"
  13.344 +			/>
  13.345 +			<Tool
  13.346 +				Name="VCFxCopTool"
  13.347 +			/>
  13.348 +			<Tool
  13.349 +				Name="VCAppVerifierTool"
  13.350 +			/>
  13.351 +			<Tool
  13.352 +				Name="VCPostBuildEventTool"
  13.353 +			/>
  13.354 +		</Configuration>
  13.355 +		<Configuration
  13.356 +			Name="Release - Left 4 Dead 2|Win32"
  13.357 +			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
  13.358 +			IntermediateDirectory="$(ConfigurationName)"
  13.359 +			ConfigurationType="2"
  13.360 +			CharacterSet="2"
  13.361 +			WholeProgramOptimization="1"
  13.362 +			>
  13.363 +			<Tool
  13.364 +				Name="VCPreBuildEventTool"
  13.365 +			/>
  13.366 +			<Tool
  13.367 +				Name="VCCustomBuildTool"
  13.368 +			/>
  13.369 +			<Tool
  13.370 +				Name="VCXMLDataGeneratorTool"
  13.371 +			/>
  13.372 +			<Tool
  13.373 +				Name="VCWebServiceProxyGeneratorTool"
  13.374 +			/>
  13.375 +			<Tool
  13.376 +				Name="VCMIDLTool"
  13.377 +			/>
  13.378 +			<Tool
  13.379 +				Name="VCCLCompilerTool"
  13.380 +				AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  13.381 +				AdditionalIncludeDirectories="&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D2)\public&quot;;&quot;$(HL2SDKL4D2)\public\engine&quot;;&quot;$(HL2SDKL4D2)\public\game\server&quot;;&quot;$(HL2SDKL4D2)\public\tier0&quot;;&quot;$(HL2SDKL4D2)\public\tier1&quot;;&quot;$(HL2SDKL4D2)\public\vstdlib&quot;"
  13.382 +				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;STUB_MM_EXPORTS;SOURCE_ENGINE=6"
  13.383 +				RuntimeLibrary="0"
  13.384 +				UsePrecompiledHeader="0"
  13.385 +				WarningLevel="3"
  13.386 +				Detect64BitPortabilityProblems="false"
  13.387 +				DebugInformationFormat="3"
  13.388 +			/>
  13.389 +			<Tool
  13.390 +				Name="VCManagedResourceCompilerTool"
  13.391 +			/>
  13.392 +			<Tool
  13.393 +				Name="VCResourceCompilerTool"
  13.394 +			/>
  13.395 +			<Tool
  13.396 +				Name="VCPreLinkEventTool"
  13.397 +			/>
  13.398 +			<Tool
  13.399 +				Name="VCLinkerTool"
  13.400 +				AdditionalDependencies="&quot;$(HL2SDKL4D2)\lib\public\tier0.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\tier1.lib&quot; &quot;$(HL2SDKL4D2)\lib\public\vstdlib.lib&quot;"
  13.401 +				OutputFile="$(OutDir)\stub_mm.dll"
  13.402 +				LinkIncremental="1"
  13.403 +				IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMTD"
  13.404 +				GenerateDebugInformation="true"
  13.405 +				SubSystem="2"
  13.406 +				OptimizeReferences="2"
  13.407 +				EnableCOMDATFolding="2"
  13.408 +				RandomizedBaseAddress="1"
  13.409 +				DataExecutionPrevention="0"
  13.410 +				TargetMachine="1"
  13.411 +			/>
  13.412 +			<Tool
  13.413 +				Name="VCALinkTool"
  13.414 +			/>
  13.415 +			<Tool
  13.416 +				Name="VCManifestTool"
  13.417 +			/>
  13.418 +			<Tool
  13.419 +				Name="VCXDCMakeTool"
  13.420 +			/>
  13.421 +			<Tool
  13.422 +				Name="VCBscMakeTool"
  13.423 +			/>
  13.424 +			<Tool
  13.425 +				Name="VCFxCopTool"
  13.426 +			/>
  13.427 +			<Tool
  13.428 +				Name="VCAppVerifierTool"
  13.429 +			/>
  13.430 +			<Tool
  13.431 +				Name="VCPostBuildEventTool"
  13.432 +			/>
  13.433 +		</Configuration>
  13.434  	</Configurations>
  13.435  	<References>
  13.436  	</References>
    14.1 --- a/stub_mm/stub_mm.cpp	Mon Nov 02 11:08:56 2009 -0600
    14.2 +++ b/stub_mm/stub_mm.cpp	Fri Nov 13 18:25:56 2009 -0600
    14.3 @@ -1,5 +1,5 @@
    14.4  /**
    14.5 - * vim: set ts=4 :
    14.6 + * vim: set ts=4 sw=4 tw=99 noet :
    14.7   * ======================================================
    14.8   * Metamod:Source Stub Plugin
    14.9   * Written by AlliedModders LLC.
   14.10 @@ -10,8 +10,6 @@
   14.11   * the use of this software.
   14.12   *
   14.13   * This stub plugin is public domain.
   14.14 - *
   14.15 - * Version: $Id$
   14.16   */
   14.17  
   14.18  #include <stdio.h>
    15.1 --- a/stub_mm/stub_mm.h	Mon Nov 02 11:08:56 2009 -0600
    15.2 +++ b/stub_mm/stub_mm.h	Fri Nov 13 18:25:56 2009 -0600
    15.3 @@ -1,5 +1,5 @@
    15.4  /**
    15.5 - * vim: set ts=4 :
    15.6 + * vim: set ts=4 sw=4 tw=99 noet :
    15.7   * ======================================================
    15.8   * Metamod:Source Stub Plugin
    15.9   * Written by AlliedModders LLC.
   15.10 @@ -10,8 +10,6 @@
   15.11   * the use of this software.
   15.12   *
   15.13   * This stub plugin is public domain.
   15.14 - *
   15.15 - * Version: $Id$
   15.16   */
   15.17  
   15.18  #ifndef _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
    16.1 --- a/support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Scripts/1033/default.js	Mon Nov 02 11:08:56 2009 -0600
    16.2 +++ b/support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Scripts/1033/default.js	Fri Nov 13 18:25:56 2009 -0600
    16.3 @@ -232,6 +232,25 @@
    16.4  		LinkTool.OutputFile            = "$(ProjectDir)\\Bin\\$(ConfigurationName)\\" + plugin_dll;
    16.5  		
    16.6  		
    16.7 +		// Debug - Dark Messiah -> Configuration Properties -> C/C++ -> Preprocessor
    16.8 +		
    16.9 +		var config   = proj.Object.Configurations('Debug - Dark Messiah');
   16.10 +		var CLTool   = config.Tools('VCCLCompilerTool');
   16.11 +		var LinkTool = config.Tools('VCLinkerTool');
   16.12 +
   16.13 +		CLTool.PreprocessorDefinitions = project_exports + CLTool.PreprocessorDefinitions;
   16.14 +		LinkTool.OutputFile            = "$(ProjectDir)\\Bin\\$(ConfigurationName)\\" + plugin_dll;
   16.15 +		
   16.16 +		// Release - Dark Messiah -> Configuration Properties -> C/C++ -> Preprocessor
   16.17 +		
   16.18 +		config   = proj.Object.Configurations('Release - Dark Messiah');
   16.19 +		CLTool   = config.Tools('VCCLCompilerTool');
   16.20 +		LinkTool = config.Tools('VCLinkerTool');
   16.21 +
   16.22 +		CLTool.PreprocessorDefinitions = project_exports + CLTool.PreprocessorDefinitions;
   16.23 +		LinkTool.OutputFile            = "$(ProjectDir)\\Bin\\$(ConfigurationName)\\" + plugin_dll;
   16.24 +		
   16.25 +		
   16.26  		// Debug - Orange Box -> Configuration Properties -> C/C++ -> Preprocessor
   16.27  		
   16.28  		config   = proj.Object.Configurations('Debug - Orange Box');
   16.29 @@ -251,6 +270,25 @@
   16.30  		LinkTool.OutputFile            = "$(ProjectDir)\\Bin\\$(ConfigurationName)\\" + plugin_dll;
   16.31  		
   16.32  		
   16.33 +		// Debug - Orange Box Valve -> Configuration Properties -> C/C++ -> Preprocessor
   16.34 +		
   16.35 +		config   = proj.Object.Configurations('Debug - Orange Box Valve');
   16.36 +		CLTool   = config.Tools('VCCLCompilerTool');
   16.37 +		LinkTool = config.Tools('VCLinkerTool');
   16.38 +
   16.39 +		CLTool.PreprocessorDefinitions = project_exports + CLTool.PreprocessorDefinitions;
   16.40 +		LinkTool.OutputFile            = "$(ProjectDir)\\Bin\\$(ConfigurationName)\\" + plugin_dll;
   16.41 +		
   16.42 +		// Release - Orange Box Valve -> Configuration Properties -> C/C++ -> Preprocessor
   16.43 +		
   16.44 +		config   = proj.Object.Configurations('Release - Orange Box Valve');
   16.45 +		CLTool   = config.Tools('VCCLCompilerTool');
   16.46 +		LinkTool = config.Tools('VCLinkerTool');
   16.47 +
   16.48 +		CLTool.PreprocessorDefinitions = project_exports + CLTool.PreprocessorDefinitions;
   16.49 +		LinkTool.OutputFile            = "$(ProjectDir)\\Bin\\$(ConfigurationName)\\" + plugin_dll;
   16.50 +		
   16.51 +		
   16.52  		// Debug - Left 4 Dead -> Configuration Properties -> C/C++ -> Preprocessor
   16.53  		
   16.54  		config   = proj.Object.Configurations('Debug - Left 4 Dead');
   16.55 @@ -268,6 +306,25 @@
   16.56  
   16.57  		CLTool.PreprocessorDefinitions = project_exports + CLTool.PreprocessorDefinitions;
   16.58  		LinkTool.OutputFile            = "$(ProjectDir)\\Bin\\$(ConfigurationName)\\" + plugin_dll;
   16.59 +		
   16.60 +		
   16.61 +		// Debug - Left 4 Dead 2 -> Configuration Properties -> C/C++ -> Preprocessor
   16.62 +		
   16.63 +		config   = proj.Object.Configurations('Debug - Left 4 Dead 2');
   16.64 +		CLTool   = config.Tools('VCCLCompilerTool');
   16.65 +		LinkTool = config.Tools('VCLinkerTool');
   16.66 +
   16.67 +		CLTool.PreprocessorDefinitions = project_exports + CLTool.PreprocessorDefinitions;
   16.68 +		LinkTool.OutputFile            = "$(ProjectDir)\\Bin\\$(ConfigurationName)\\" + plugin_dll;
   16.69 +		
   16.70 +		// Release - Left 4 Dead 2 -> Configuration Properties -> C/C++ -> Preprocessor
   16.71 +		
   16.72 +		config   = proj.Object.Configurations('Release - Left 4 Dead 2');
   16.73 +		CLTool   = config.Tools('VCCLCompilerTool');
   16.74 +		LinkTool = config.Tools('VCLinkerTool');
   16.75 +
   16.76 +		CLTool.PreprocessorDefinitions = project_exports + CLTool.PreprocessorDefinitions;
   16.77 +		LinkTool.OutputFile            = "$(ProjectDir)\\Bin\\$(ConfigurationName)\\" + plugin_dll;
   16.78  	}
   16.79  	
   16.80  	// Catch Exceptions
    17.1 --- a/support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin.vcproj	Mon Nov 02 11:08:56 2009 -0600
    17.2 +++ b/support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin.vcproj	Fri Nov 13 18:25:56 2009 -0600
    17.3 @@ -19,10 +19,10 @@
    17.4        ConfigurationType="2"
    17.5        CharacterSet="2">
    17.6        <Tool Name="VCCLCompilerTool"
    17.7 -        AdditionalOptions="/D SE_EPISODEONE=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
    17.8 +        AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
    17.9          Optimization="0"
   17.10 -        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE17)\core-legacy&quot;;&quot;$(MMSOURCE17)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
   17.11 -        PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=2;"
   17.12 +        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE18)\core-legacy&quot;;&quot;$(MMSOURCE18)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
   17.13 +        PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=1;"
   17.14          MinimalRebuild="true"
   17.15          BasicRuntimeChecks="3"
   17.16          RuntimeLibrary="1"
   17.17 @@ -49,9 +49,9 @@
   17.18        CharacterSet="2"
   17.19        WholeProgramOptimization="1">
   17.20        <Tool Name="VCCLCompilerTool"
   17.21 -        AdditionalOptions="/D SE_EPISODEONE=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
   17.22 -        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE17)\core-legacy&quot;;&quot;$(MMSOURCE17)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
   17.23 -        PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=2;"
   17.24 +        AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   17.25 +        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE18)\core-legacy&quot;;&quot;$(MMSOURCE18)\core-legacy\sourcehook&quot;;&quot;$(HL2SDK)\public&quot;;&quot;$(HL2SDK)\public\dlls&quot;;&quot;$(HL2SDK)\public\engine&quot;;&quot;$(HL2SDK)\public\tier0&quot;;&quot;$(HL2SDK)\public\tier1&quot;;&quot;$(HL2SDK)\public\vstdlib&quot;"
   17.26 +        PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=1;"
   17.27          RuntimeLibrary="0"
   17.28          UsePrecompiledHeader="0"
   17.29          WarningLevel="3"
   17.30 @@ -68,6 +68,64 @@
   17.31          EnableCOMDATFolding="2"
   17.32          TargetMachine="1"/>
   17.33      </Configuration>
   17.34 +    
   17.35 +    <!-- Debug - Dark Messiah /////////////////// -->
   17.36 +
   17.37 +    <Configuration Name="Debug - Dark Messiah|Win32"
   17.38 +      OutputDirectory=".\Build\$(ConfigurationName)"
   17.39 +      IntermediateDirectory=".\Build\$(ConfigurationName)"
   17.40 +      ConfigurationType="2"
   17.41 +      CharacterSet="2">
   17.42 +      <Tool Name="VCCLCompilerTool"
   17.43 +        AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   17.44 +        Optimization="0"
   17.45 +        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
   17.46 +        PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=2;"
   17.47 +        MinimalRebuild="true"
   17.48 +        BasicRuntimeChecks="3"
   17.49 +        RuntimeLibrary="1"
   17.50 +        UsePrecompiledHeader="0"
   17.51 +        WarningLevel="3"
   17.52 +        Detect64BitPortabilityProblems="false"
   17.53 +        DebugInformationFormat="3"/>
   17.54 +      <Tool Name="VCLinkerTool"
   17.55 +        AdditionalDependencies="tier0.lib tier1.lib vstdlib.lib"
   17.56 +        LinkIncremental="2"
   17.57 +        AdditionalLibraryDirectories="&quot;$(HL2SDK-DARKM)\lib\public\&quot;"
   17.58 +        IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMT"
   17.59 +        GenerateDebugInformation="true"
   17.60 +        SubSystem="2"
   17.61 +        TargetMachine="1"/>
   17.62 +    </Configuration>
   17.63 +
   17.64 +    <!-- Release - Dark Messiah ///////////////// -->
   17.65 +
   17.66 +    <Configuration Name="Release - Dark Messiah|Win32"
   17.67 +      OutputDirectory=".\Build\$(ConfigurationName)"
   17.68 +      IntermediateDirectory=".\Build\$(ConfigurationName)"
   17.69 +      ConfigurationType="2"
   17.70 +      CharacterSet="2"
   17.71 +      WholeProgramOptimization="1">
   17.72 +      <Tool Name="VCCLCompilerTool"
   17.73 +        AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
   17.74 +        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDK-DARKM)\public&quot;;&quot;$(HL2SDK-DARKM)\public\dlls&quot;;&quot;$(HL2SDK-DARKM)\public\engine&quot;;&quot;$(HL2SDK-DARKM)\public\tier0&quot;;&quot;$(HL2SDK-DARKM)\public\tier1&quot;;&quot;$(HL2SDK-DARKM)\public\vstdlib&quot;"
   17.75 +        PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=2;"
   17.76 +        RuntimeLibrary="0"
   17.77 +        UsePrecompiledHeader="0"
   17.78 +        WarningLevel="3"
   17.79 +        Detect64BitPortabilityProblems="false"
   17.80 +        DebugInformationFormat="3"/>
   17.81 +      <Tool Name="VCLinkerTool"
   17.82 +        AdditionalDependencies="tier0.lib tier1.lib vstdlib.lib"
   17.83 +        LinkIncremental="1"
   17.84 +        AdditionalLibraryDirectories="&quot;$(HL2SDK-DARKM)\lib\public\&quot;"
   17.85 +        IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMTD"
   17.86 +        GenerateDebugInformation="true"
   17.87 +        SubSystem="2"
   17.88 +        OptimizeReferences="2"
   17.89 +        EnableCOMDATFolding="2"
   17.90 +        TargetMachine="1"/>
   17.91 +    </Configuration>
   17.92  
   17.93      <!-- Debug - Orange Box ///////////////// -->
   17.94  
   17.95 @@ -77,9 +135,9 @@
   17.96        ConfigurationType="2"
   17.97        CharacterSet="2">
   17.98        <Tool Name="VCCLCompilerTool"
   17.99 -        AdditionalOptions="/D SE_EPISODEONE=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
  17.100 +        AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  17.101          Optimization="0"
  17.102 -        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
  17.103 +        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
  17.104          PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=3;"
  17.105          MinimalRebuild="true"
  17.106          BasicRuntimeChecks="3"
  17.107 @@ -107,8 +165,8 @@
  17.108        CharacterSet="2"
  17.109        WholeProgramOptimization="1">
  17.110        <Tool Name="VCCLCompilerTool"
  17.111 -        AdditionalOptions="/D SE_EPISODEONE=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
  17.112 -        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
  17.113 +        AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  17.114 +        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOB)\public&quot;;&quot;$(HL2SDKOB)\public\engine&quot;;&quot;$(HL2SDKOB)\public\game\server&quot;;&quot;$(HL2SDKOB)\public\tier0&quot;;&quot;$(HL2SDKOB)\public\tier1&quot;;&quot;$(HL2SDKOB)\public\vstdlib&quot;"
  17.115          PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=3;"
  17.116          RuntimeLibrary="0"
  17.117          UsePrecompiledHeader="0"
  17.118 @@ -126,6 +184,64 @@
  17.119          EnableCOMDATFolding="2"
  17.120          TargetMachine="1"/>
  17.121      </Configuration>
  17.122 +    
  17.123 +    <!-- Debug - Orange Box Valve ///////////////// -->
  17.124 +
  17.125 +    <Configuration Name="Debug - Orange Box Valve|Win32"
  17.126 +      OutputDirectory=".\Build\$(ConfigurationName)"
  17.127 +      IntermediateDirectory=".\Build\$(ConfigurationName)"
  17.128 +      ConfigurationType="2"
  17.129 +      CharacterSet="2">
  17.130 +      <Tool Name="VCCLCompilerTool"
  17.131 +        AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  17.132 +        Optimization="0"
  17.133 +        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOBVALVE)\public&quot;;&quot;$(HL2SDKOBVALVE)\public\engine&quot;;&quot;$(HL2SDKOBVALVE)\public\game\server&quot;;&quot;$(HL2SDKOBVALVE)\public\tier0&quot;;&quot;$(HL2SDKOBVALVE)\public\tier1&quot;;&quot;$(HL2SDKOBVALVE)\public\vstdlib&quot;"
  17.134 +        PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=4;"
  17.135 +        MinimalRebuild="true"
  17.136 +        BasicRuntimeChecks="3"
  17.137 +        RuntimeLibrary="1"
  17.138 +        UsePrecompiledHeader="0"
  17.139 +        WarningLevel="3"
  17.140 +        Detect64BitPortabilityProblems="false"
  17.141 +        DebugInformationFormat="3"/>
  17.142 +      <Tool Name="VCLinkerTool"
  17.143 +        AdditionalDependencies="tier0.lib tier1.lib vstdlib.lib"
  17.144 +        LinkIncremental="2"
  17.145 +        AdditionalLibraryDirectories="&quot;$(HL2SDKOBVALVE)\lib\public\&quot;"
  17.146 +        IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMT"
  17.147 +        GenerateDebugInformation="true"
  17.148 +        SubSystem="2"
  17.149 +        TargetMachine="1"/>
  17.150 +    </Configuration>
  17.151 +
  17.152 +    <!-- Release - Orange Box Valve /////////////// -->
  17.153 +
  17.154 +    <Configuration Name="Release - Orange Box Valve|Win32"
  17.155 +      OutputDirectory=".\Build\$(ConfigurationName)"
  17.156 +      IntermediateDirectory=".\Build\$(ConfigurationName)"
  17.157 +      ConfigurationType="2"
  17.158 +      CharacterSet="2"
  17.159 +      WholeProgramOptimization="1">
  17.160 +      <Tool Name="VCCLCompilerTool"
  17.161 +        AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  17.162 +        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKOBVALVE)\public&quot;;&quot;$(HL2SDKOBVALVE)\public\engine&quot;;&quot;$(HL2SDKOBVALVE)\public\game\server&quot;;&quot;$(HL2SDKOBVALVE)\public\tier0&quot;;&quot;$(HL2SDKOBVALVE)\public\tier1&quot;;&quot;$(HL2SDKOBVALVE)\public\vstdlib&quot;"
  17.163 +        PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=4;"
  17.164 +        RuntimeLibrary="0"
  17.165 +        UsePrecompiledHeader="0"
  17.166 +        WarningLevel="3"
  17.167 +        Detect64BitPortabilityProblems="false"
  17.168 +        DebugInformationFormat="3"/>
  17.169 +      <Tool Name="VCLinkerTool"
  17.170 +        AdditionalDependencies="tier0.lib tier1.lib vstdlib.lib"
  17.171 +        LinkIncremental="1"
  17.172 +        AdditionalLibraryDirectories="&quot;$(HL2SDKOBVALVE)\lib\public\&quot;"
  17.173 +        IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMTD"
  17.174 +        GenerateDebugInformation="true"
  17.175 +        SubSystem="2"
  17.176 +        OptimizeReferences="2"
  17.177 +        EnableCOMDATFolding="2"
  17.178 +        TargetMachine="1"/>
  17.179 +    </Configuration>
  17.180  
  17.181      <!-- Debug - Left 4 Dead //////////////// -->
  17.182  
  17.183 @@ -135,10 +251,10 @@
  17.184        ConfigurationType="2"
  17.185        CharacterSet="2">
  17.186        <Tool Name="VCCLCompilerTool"
  17.187 -        AdditionalOptions="/D SE_EPISODEONE=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
  17.188 +        AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  17.189          Optimization="0"
  17.190 -        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
  17.191 -        PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=4;"
  17.192 +        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
  17.193 +        PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=5;"
  17.194          MinimalRebuild="true"
  17.195          BasicRuntimeChecks="3"
  17.196          RuntimeLibrary="1"
  17.197 @@ -165,9 +281,9 @@
  17.198        CharacterSet="2"
  17.199        WholeProgramOptimization="1">
  17.200        <Tool Name="VCCLCompilerTool"
  17.201 -        AdditionalOptions="/D SE_EPISODEONE=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4"
  17.202 -        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE17)\core&quot;;&quot;$(MMSOURCE17)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
  17.203 -        PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=4;"
  17.204 +        AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  17.205 +        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D)\public&quot;;&quot;$(HL2SDKL4D)\public\engine&quot;;&quot;$(HL2SDKL4D)\public\game\server&quot;;&quot;$(HL2SDKL4D)\public\tier0&quot;;&quot;$(HL2SDKL4D)\public\tier1&quot;;&quot;$(HL2SDKL4D)\public\vstdlib&quot;"
  17.206 +        PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=5;"
  17.207          RuntimeLibrary="0"
  17.208          UsePrecompiledHeader="0"
  17.209          WarningLevel="3"
  17.210 @@ -185,6 +301,64 @@
  17.211          TargetMachine="1"/>
  17.212      </Configuration>
  17.213      
  17.214 +    <!-- Debug - Left 4 Dead 2 //////////////// -->
  17.215 +
  17.216 +    <Configuration Name="Debug - Left 4 Dead 2|Win32"
  17.217 +      OutputDirectory=".\Build\$(ConfigurationName)"
  17.218 +      IntermediateDirectory=".\Build\$(ConfigurationName)"
  17.219 +      ConfigurationType="2"
  17.220 +      CharacterSet="2">
  17.221 +      <Tool Name="VCCLCompilerTool"
  17.222 +        AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  17.223 +        Optimization="0"
  17.224 +        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D2)\public&quot;;&quot;$(HL2SDKL4D2)\public\engine&quot;;&quot;$(HL2SDKL4D2)\public\game\server&quot;;&quot;$(HL2SDKL4D2)\public\tier0&quot;;&quot;$(HL2SDKL4D2)\public\tier1&quot;;&quot;$(HL2SDKL4D2)\public\vstdlib&quot;"
  17.225 +        PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=6;"
  17.226 +        MinimalRebuild="true"
  17.227 +        BasicRuntimeChecks="3"
  17.228 +        RuntimeLibrary="1"
  17.229 +        UsePrecompiledHeader="0"
  17.230 +        WarningLevel="3"
  17.231 +        Detect64BitPortabilityProblems="false"
  17.232 +        DebugInformationFormat="3"/>
  17.233 +      <Tool Name="VCLinkerTool"
  17.234 +        AdditionalDependencies="tier0.lib tier1.lib vstdlib.lib"
  17.235 +        LinkIncremental="2"
  17.236 +        AdditionalLibraryDirectories="&quot;$(HL2SDKL4D2)\lib\public\&quot;"
  17.237 +        IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMT"
  17.238 +        GenerateDebugInformation="true"
  17.239 +        SubSystem="2"
  17.240 +        TargetMachine="1"/>
  17.241 +    </Configuration>
  17.242 +
  17.243 +    <!-- Release - Left 4 Dead 2 ////////////// -->
  17.244 +
  17.245 +    <Configuration Name="Release - Left 4 Dead 2|Win32"
  17.246 +      OutputDirectory=".\Build\$(ConfigurationName)"
  17.247 +      IntermediateDirectory=".\Build\$(ConfigurationName)"
  17.248 +      ConfigurationType="2"
  17.249 +      CharacterSet="2"
  17.250 +      WholeProgramOptimization="1">
  17.251 +      <Tool Name="VCCLCompilerTool"
  17.252 +        AdditionalOptions="/D SE_EPISODEONE=1 /D SE_DARKMESSIAH=2 /D SE_ORANGEBOX=3 /D SE_ORANGEBOXVALVE=4 /D SE_LEFT4DEAD=5 /D SE_LEFT4DEAD2=6"
  17.253 +        AdditionalIncludeDirectories="&quot;.\&quot;;&quot;..\&quot;;&quot;..\..\&quot;;&quot;$(MMSOURCE18)\core&quot;;&quot;$(MMSOURCE18)\core\sourcehook&quot;;&quot;$(HL2SDKL4D2)\public&quot;;&quot;$(HL2SDKL4D2)\public\engine&quot;;&quot;$(HL2SDKL4D2)\public\game\server&quot;;&quot;$(HL2SDKL4D2)\public\tier0&quot;;&quot;$(HL2SDKL4D2)\public\tier1&quot;;&quot;$(HL2SDKL4D2)\public\vstdlib&quot;"
  17.254 +        PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SOURCE_ENGINE=6;"
  17.255 +        RuntimeLibrary="0"
  17.256 +        UsePrecompiledHeader="0"
  17.257 +        WarningLevel="3"
  17.258 +        Detect64BitPortabilityProblems="false"
  17.259 +        DebugInformationFormat="3"/>
  17.260 +      <Tool Name="VCLinkerTool"
  17.261 +        AdditionalDependencies="tier0.lib tier1.lib vstdlib.lib"
  17.262 +        LinkIncremental="1"
  17.263 +        AdditionalLibraryDirectories="&quot;$(HL2SDKL4D2)\lib\public\&quot;"
  17.264 +        IgnoreDefaultLibraryNames="LIBC;LIBCD;LIBCMTD"
  17.265 +        GenerateDebugInformation="true"
  17.266 +        SubSystem="2"
  17.267 +        OptimizeReferences="2"
  17.268 +        EnableCOMDATFolding="2"
  17.269 +        TargetMachine="1"/>
  17.270 +    </Configuration>
  17.271 +    
  17.272  	</Configurations>
  17.273  
  17.274    <!-- Files //////////////////////////////////////// -->
    18.1 --- a/support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin.vdf	Mon Nov 02 11:08:56 2009 -0600
    18.2 +++ b/support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin.vdf	Fri Nov 13 18:25:56 2009 -0600
    18.3 @@ -1,5 +1,5 @@
    18.4  "Metamod Plugin"
    18.5  {
    18.6  	"alias"		"[!output PLUGIN_NAME]"
    18.7 -	"file"		"Addons/Metamod/Plugins/[!output PLUGIN_NAME]/Bin/[!output PLUGIN_DLL]"
    18.8 +	"file"		"addons/metamod/plugins/[!output PLUGIN_NAME]/bin/[!output PLUGIN_DLL]"
    18.9  }
    19.1 --- a/support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin_engine.h	Mon Nov 02 11:08:56 2009 -0600
    19.2 +++ b/support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin_engine.h	Fri Nov 13 18:25:56 2009 -0600
    19.3 @@ -27,9 +27,14 @@
    19.4  /////////////////////////////////////////////////////////////////////////
    19.5  // Episode One
    19.6  
    19.7 -#if SOURCE_ENGINE == SE_EPISODEONE
    19.8 +#if SOURCE_ENGINE == SE_EPISODEONE && defined METAMOD_PLAPI_VERSION
    19.9 +
   19.10 +#error "Metamod:Source 1.6 API is not supported on the old engine."
   19.11 +
   19.12 +#endif
   19.13  
   19.14  /////////////////////////////////////////////////////////////////////////
   19.15 +// Wrap some API calls for legacy MM:S.
   19.16  
   19.17  #if !defined METAMOD_PLAPI_VERSION
   19.18  
   19.19 @@ -41,13 +46,15 @@
   19.20  
   19.21  #else
   19.22  
   19.23 -#error "Metamod:Source 1.6 is not supported on the old engine."
   19.24 +#define MM_Format g_SMAPI->Format
   19.25  
   19.26  #endif
   19.27  
   19.28  /////////////////////////////////////////////////////////////////////////
   19.29  // Wrap the CCommand class so our code looks the same for both engines.
   19.30  
   19.31 +#if SOURCE_ENGINE <= SE_DARKMESSIAH
   19.32 +
   19.33  class CCommand
   19.34  {
   19.35    public:
   19.36 @@ -69,15 +76,6 @@
   19.37  };
   19.38  
   19.39  #define CVAR_INTERFACE_VERSION	VENGINE_CVAR_INTERFACE_VERSION
   19.40 -#define ENGINE_CALL(func)			  SH_CALL(m_engine_server, func)
   19.41 -
   19.42 -/////////////////////////////////////////////////////////////////////////
   19.43 -// Episode Orange Box or newer
   19.44 -
   19.45 -#elif SOURCE_ENGINE >= SE_ORANGEBOX
   19.46 -
   19.47 -#define ENGINE_CALL(func) SH_CALL([!output PLUGIN_CLASS]::EngineServer, func)
   19.48 -#define MM_Format				  g_SMAPI->Format
   19.49  
   19.50  #endif
   19.51  
   19.52 @@ -121,4 +119,9 @@
   19.53  #define snprintf _snprintf
   19.54  #endif
   19.55  
   19.56 +/////////////////////////////////////////////////////////////////////////
   19.57 +// Define ENGINE_CALL
   19.58 +
   19.59 +#define ENGINE_CALL(func) SH_CALL([!output PLUGIN_CLASS]::EngineServer, &IVEngineServer::func)
   19.60 +
   19.61  #endif // _MMS_ENGINE_H
    20.1 --- a/support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin_hooks.cpp	Mon Nov 02 11:08:56 2009 -0600
    20.2 +++ b/support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin_hooks.cpp	Fri Nov 13 18:25:56 2009 -0600
    20.3 @@ -486,7 +486,7 @@
    20.4  {
    20.5    // Verify the parameters
    20.6  
    20.7 -  #if SOURCE_ENGINE == SE_EPISODEONE
    20.8 +  #if SOURCE_ENGINE <= SE_DARKMESSIAH
    20.9  	CCommand args;
   20.10    #endif
   20.11  
    21.1 --- a/support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin_mm.cpp	Mon Nov 02 11:08:56 2009 -0600
    21.2 +++ b/support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin_mm.cpp	Fri Nov 13 18:25:56 2009 -0600
    21.3 @@ -84,9 +84,7 @@
    21.4  
    21.5  	// Load the VSP listener. This is usually needed for IServerPluginHelpers
    21.6  
    21.7 -  #if defined METAMOD_PLAPI_VERSION
    21.8 -  if (([!output PLUGIN_CLASS]::VspCallbacks = ismm->GetVSPInfo(NULL)) == NULL)
    21.9 -  #endif
   21.10 +	if (([!output PLUGIN_CLASS]::VspCallbacks = ismm->GetVSPInfo(NULL)) == NULL)
   21.11  	{
   21.12  		ismm->AddListener(this, this);
   21.13  		ismm->EnableVSPListener();
   21.14 @@ -96,15 +94,7 @@
   21.15  
   21.16    AddHooks();
   21.17  
   21.18 -  // Get the engine server interface
   21.19 -
   21.20 -  #if SOURCE_ENGINE == SE_EPISODEONE
   21.21 -	
   21.22 -  m_engine_server = SH_GET_CALLCLASS([!output PLUGIN_CLASS]::EngineServer);
   21.23 -
   21.24 -  #endif
   21.25 -
   21.26 -	ENGINE_CALL(&IVEngineServer::LogPrint)("All hooks started!\n");
   21.27 +  ENGINE_CALL(LogPrint)("All hooks started!\n");
   21.28  
   21.29    // Register the base accessor
   21.30  
   21.31 @@ -131,14 +121,6 @@
   21.32  
   21.33    RemoveHooks();
   21.34  
   21.35 -  // Release the engine server interface
   21.36 -
   21.37 -  #if SOURCE_ENGINE == SE_EPISODEONE
   21.38 -
   21.39 -	SH_RELEASE_CALLCLASS(m_engine_server);
   21.40 -
   21.41 -  #endif
   21.42 -
   21.43  	return true;
   21.44  }
   21.45  
    22.1 --- a/support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin_mm.h	Mon Nov 02 11:08:56 2009 -0600
    22.2 +++ b/support/msvc_project_templates/VC/VCWizards/AppWiz/Metamod/MMSProjectTemplate/Templates/1033/plugin_mm.h	Fri Nov 13 18:25:56 2009 -0600
    22.3 @@ -154,15 +154,6 @@
    22.4  [!if IServerGameClients_SetCommandClient]
    22.5      DECL_HOOK_SET_COMMAND_CLIENT;
    22.6  [!endif]
    22.7 -
    22.8 -  ////////////////////////////////////////
    22.9 -  // Plugin Variables
   22.10 -
   22.11 -  protected:
   22.12 -
   22.13 -    #if SOURCE_ENGINE == SE_EPISODEONE
   22.14 -	  SourceHook::CallClass<IVEngineServer>* m_engine_server;
   22.15 -    #endif
   22.16  };
   22.17  
   22.18  /////////////////////////////////////////////////////////////////////////