MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / LevelShutdown

Method LevelShutdown

core/sourcemod.cpp:356–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356void SourceModBase::LevelShutdown()
357{
358 if (g_LevelEndBarrier)
359 {
360 SMGlobalClass *next = SMGlobalClass::head;
361 while (next)
362 {
363 next->OnSourceModLevelEnd();
364 next = next->m_pGlobalClassNext;
365 }
366
367 g_pOnMapEnd->Execute();
368
369 extsys->CallOnCoreMapEnd();
370
371 g_Timers.RemoveMapChangeTimers();
372
373 g_LevelEndBarrier = false;
374 }
375
376 g_OnMapStarted = false;
377
378 if (m_ExecPluginReload)
379 {
380 scripts->RefreshAll();
381 m_ExecPluginReload = false;
382 }
383}
384
385bool SourceModBase::IsMapLoading() const
386{

Callers

nothing calls this directly

Calls 5

CallOnCoreMapEndMethod · 0.80
RemoveMapChangeTimersMethod · 0.80
RefreshAllMethod · 0.80
OnSourceModLevelEndMethod · 0.45
ExecuteMethod · 0.45

Tested by

no test coverage detected