Does anyone know why, in survival mode, the ForceChangeLevel function can sometimes cause an extra gas can to spawn?
e.g.
Reloading the map here causes a campaign gas can to spawn at the base of the elevator in c1m4_atrium survival mode.
I tried delaying the map load and also manually using the server command method: ServerCommand("changelevel %s", sMap). Both of which don't seem to work.
https://youtu.be/k5l6BJhlZwY
PHP Code:
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required
public void OnPluginStart()
{
RegAdminCmd("sm_forcemapreload", Command_MapReload, ADMFLAG_GENERIC);
}
public Action Command_MapReload(int client, int args)
{
char sMap[32];
GetCurrentMap(sMap, sizeof(sMap));
ForceChangeLevel(sMap, "Reloading map");
return Plugin_Handled;
}