From 5e2eb7d67ae933b7566f1944d0bb7744da03d586 Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 17 Feb 2026 23:42:09 +0100 Subject: move source stuff to its own folder --- sourcemod/scripting/gokz-core/map/prefix.sp | 48 ----------------------------- 1 file changed, 48 deletions(-) delete mode 100644 sourcemod/scripting/gokz-core/map/prefix.sp (limited to 'sourcemod/scripting/gokz-core/map/prefix.sp') diff --git a/sourcemod/scripting/gokz-core/map/prefix.sp b/sourcemod/scripting/gokz-core/map/prefix.sp deleted file mode 100644 index 3ecbf89..0000000 --- a/sourcemod/scripting/gokz-core/map/prefix.sp +++ /dev/null @@ -1,48 +0,0 @@ -/* - Mapping API - Prefix - - Detects the map's prefix. -*/ - - - -static int currentMapPrefix; - - - -// =====[ PUBLIC ]===== - -int GetCurrentMapPrefix() -{ - return currentMapPrefix; -} - - - -// =====[ LISTENERS ]===== - -void OnMapStart_Prefix() -{ - char map[PLATFORM_MAX_PATH], mapPrefix[PLATFORM_MAX_PATH]; - GetCurrentMapDisplayName(map, sizeof(map)); - - // Get all characters before the first '_' character - for (int i = 0; i < sizeof(mapPrefix); i++) - { - if (map[i] == '\0' || map[i] == '_') - { - break; - } - - mapPrefix[i] = map[i]; - } - - if (StrEqual(mapPrefix[0], "kzpro", false)) - { - currentMapPrefix = MapPrefix_KZPro; - } - else - { - currentMapPrefix = MapPrefix_Other; - } -} \ No newline at end of file -- cgit v1.2.3