diff -r 0a6c27d24411 -r 686c283b08fc core/PlayerManager.cpp --- a/core/PlayerManager.cpp Thu Sep 17 13:08:18 2009 -0400 +++ b/core/PlayerManager.cpp Sat Sep 26 17:12:23 2009 -0400 @@ -48,6 +48,7 @@ #include "GameConfigs.h" #include "ExtensionSys.h" #include +#include "ConsoleDetours.h" PlayerManager g_Players; bool g_OnMapStarted = false; @@ -725,6 +726,20 @@ } } + if (g_ConsoleDetours.IsEnabled()) + { + cell_t res2 = g_ConsoleDetours.InternalDispatch(client, args); + if (res2 >= Pl_Stop) + { + g_HL2.PopCommandStack(); + RETURN_META(MRES_SUPERCEDE); + } + else if (res2 > res) + { + res = res2; + } + } + cell_t res2 = Pl_Continue; m_clcommand->PushCell(client); m_clcommand->PushCell(argcount);