summaryrefslogtreecommitdiff
path: root/sourcemod/scripting/gokz-measure.sp
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-02-17 23:42:09 +0100
committeraura <nw@moneybot.cc>2026-02-17 23:42:09 +0100
commit5e2eb7d67ae933b7566f1944d0bb7744da03d586 (patch)
tree054acff1113270a9cd07933df760f3768c1b6853 /sourcemod/scripting/gokz-measure.sp
parent341db13a008dc12bb22ceb50452d93d01476308c (diff)
move source stuff to its own folder
Diffstat (limited to 'sourcemod/scripting/gokz-measure.sp')
-rw-r--r--sourcemod/scripting/gokz-measure.sp82
1 files changed, 0 insertions, 82 deletions
diff --git a/sourcemod/scripting/gokz-measure.sp b/sourcemod/scripting/gokz-measure.sp
deleted file mode 100644
index 2360625..0000000
--- a/sourcemod/scripting/gokz-measure.sp
+++ /dev/null
@@ -1,82 +0,0 @@
-#include <sourcemod>
-
-#include <sdktools>
-
-#include <gokz/core>
-
-#undef REQUIRE_EXTENSIONS
-#undef REQUIRE_PLUGIN
-#include <updater>
-
-#pragma newdecls required
-#pragma semicolon 1
-
-/*
- Lets players measure the distance between two points.
- Credits to DaFox (https://forums.alliedmods.net/showthread.php?t=88830?t=88830)
-*/
-
-
-public Plugin myinfo =
-{
- name = "GOKZ Measure",
- author = "DanZay",
- description = "Provides tools for measuring things",
- version = GOKZ_VERSION,
- url = GOKZ_SOURCE_URL
-};
-
-#define UPDATER_URL GOKZ_UPDATER_BASE_URL..."gokz-measure.txt"
-#define MEASURE_MIN_DIST 0.01
-int gI_BeamModel;
-bool gB_Measuring[MAXPLAYERS + 1];
-bool gB_MeasurePosSet[MAXPLAYERS + 1][2];
-float gF_MeasurePos[MAXPLAYERS + 1][2][3];
-float gF_MeasureNormal[MAXPLAYERS + 1][2][3];
-Handle gH_P2PRed[MAXPLAYERS + 1];
-Handle gH_P2PGreen[MAXPLAYERS + 1];
-
-#include "gokz-measure/measurer.sp"
-#include "gokz-measure/commands.sp"
-#include "gokz-measure/measure_menu.sp"
-
-
-// =====[ PLUGIN EVENTS ]=====
-
-public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
-{
- RegPluginLibrary("gokz-measure");
- return APLRes_Success;
-}
-
-public void OnPluginStart()
-{
- LoadTranslations("gokz-measure.phrases");
-
- RegisterCommands();
-}
-
-public void OnAllPluginsLoaded()
-{
- if (LibraryExists("updater"))
- {
- Updater_AddPlugin(UPDATER_URL);
- }
-}
-
-public void OnLibraryAdded(const char[] name)
-{
- if (StrEqual(name, "updater"))
- {
- Updater_AddPlugin(UPDATER_URL);
- }
-}
-
-
-
-// =====[ OTHER EVENTS ]=====
-
-public void OnMapStart()
-{
- gI_BeamModel = PrecacheModel("materials/sprites/laserbeam.vmt", true);
-} \ No newline at end of file