From 10216bc1576f05b564b78273a1f5b8591b897270 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 22 Sep 2018 08:57:48 +1000 Subject: [PATCH] Load entities from the screenshot ent text file on map start --- qcsrc/server/g_world.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index 28aa46cc4..86a4e0ad2 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -957,6 +957,9 @@ spawnfunc(worldspawn) WinningConditionHelper(this); // set worldstatus world_initialized = 1; + string filename = strcat(mapname, "_scrshot_ent.txt"); // doesn't support custom paths + if(fexists(filename)) + loadfromfile(filename); __spawnfunc_spawn_all(); } -- 2.39.2