core/sourcemod.cpp
changeset 4013 6201c1180e0e
parent 3883 ee82b6ecc09d
child 4029 cf8bdfcf6503
     1.1 --- a/core/sourcemod.cpp	Wed Aug 14 17:18:02 2013 -0400
     1.2 +++ b/core/sourcemod.cpp	Wed Aug 14 23:54:25 2013 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /**
     1.5 - * vim: set ts=4 sw=4 :
     1.6 + * vim: set ts=4 sw=4 tw=99 noet:
     1.7   * =============================================================================
     1.8   * SourceMod
     1.9   * Copyright (C) 2004-2010 AlliedModders LLC.  All rights reserved.
    1.10 @@ -311,6 +311,16 @@
    1.11  	{
    1.12  		extsys->LoadAutoExtension("updater.ext." PLATFORM_LIB_EXT);
    1.13  	}
    1.14 +
    1.15 +	const char *timeout = GetCoreConfigValue("SlowScriptTimeout");
    1.16 +	if (timeout == NULL)
    1.17 +	{
    1.18 +		timeout = "8";
    1.19 +	}
    1.20 +	if (atoi(timeout) != 0)
    1.21 +	{
    1.22 +		g_pSourcePawn2->InstallWatchdogTimer(atoi(timeout) * 1000);
    1.23 +	}
    1.24  }
    1.25  
    1.26  static bool g_LevelEndBarrier = false;