Map specific configs are loaded with a 6.1s delay by AMXX. I know the function ("delayed_load") used to be in admin.sma with AMXX 1.8.x, and was later moved into CoreConfig.cpp and configured in meta_api.cpp with AMXX 1.9 (functions "CoreConfig::ExecuteMapConfig", "CoreConfig::OnMapConfigTimer" and "CoreConfig::SetMapConfigTimer" / CoreCfg.SetMapConfigTimer).
The simple work-around (in order to change the delay) is to copy the delayed_load function from an old admin.sma file to a new plugin, which would probably lead to the map configs being executed twice (by the plugin and by AMXX's CoreConfig.cpp).
I wonder, can the C function SetMapConfigTimer which is in CoreConfig.cpp be called by a plugin? So that AMXX's CoreConfig executes the map configs at a different time. I guess it would require writing a module, this plugin didn't do anything:
Code:
#include <amxmodx>
// Function names from https://github.com/alliedmodders/amxmodx/search?q=SetMapConfigTimer
//native CoreCfg.SetMapConfigTimer(const Float:time);
//native CoreConfig::SetMapConfigTimer(const Float:time);
native SetMapConfigTimer(const Float:time);
public plugin_init()
{
register_plugin("SetMapConfigTimer", "1", "pizzahut")
}
public plugin_cfg()
{
SetMapConfigTimer(0.1)
}
Also does anyone know why there is a 6.1s delay in the first place? IMO it could have been zero in old admin.sma, because plugin_cfg is called after plugin_init of all plugins has been executed (AFAIK). So all plugin cvars should be registered already.