Gently disable nextmap on L4D, rather than fail load (bug 3683, r+a12=dvander).
This commit is contained in:
parent
8509f0857a
commit
a85031be53
@ -57,11 +57,8 @@ public OnPluginStart()
|
|||||||
decl String:desc[128];
|
decl String:desc[128];
|
||||||
GetGameFolderName(desc, sizeof(desc));
|
GetGameFolderName(desc, sizeof(desc));
|
||||||
|
|
||||||
if(StrEqual(desc, "left4dead", false))
|
if (StrEqual(desc, "left4dead", false))
|
||||||
{
|
|
||||||
SetFailState("The 'nextmap' plugin is not supported on Left 4 Dead.");
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
LoadTranslations("common.phrases");
|
LoadTranslations("common.phrases");
|
||||||
LoadTranslations("nextmap.phrases");
|
LoadTranslations("nextmap.phrases");
|
||||||
@ -84,6 +81,12 @@ public OnMapStart()
|
|||||||
|
|
||||||
public OnConfigsExecuted()
|
public OnConfigsExecuted()
|
||||||
{
|
{
|
||||||
|
decl String:desc[128];
|
||||||
|
GetGameFolderName(desc, sizeof(desc));
|
||||||
|
|
||||||
|
if (StrEqual(desc, "left4dead", false))
|
||||||
|
return;
|
||||||
|
|
||||||
decl String:lastMap[64], String:currentMap[64];
|
decl String:lastMap[64], String:currentMap[64];
|
||||||
GetNextMap(lastMap, sizeof(lastMap));
|
GetNextMap(lastMap, sizeof(lastMap));
|
||||||
GetCurrentMap(currentMap, 64);
|
GetCurrentMap(currentMap, 64);
|
||||||
|
Loading…
Reference in New Issue
Block a user