diff options
Diffstat (limited to 'sourcemod/scripting/gokz-errorboxfixer.sp')
| -rw-r--r-- | sourcemod/scripting/gokz-errorboxfixer.sp | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/sourcemod/scripting/gokz-errorboxfixer.sp b/sourcemod/scripting/gokz-errorboxfixer.sp deleted file mode 100644 index fd3f76a..0000000 --- a/sourcemod/scripting/gokz-errorboxfixer.sp +++ /dev/null @@ -1,89 +0,0 @@ -#include <sourcemod> -#include <sdktools> - -#include <gokz> - -#undef REQUIRE_PLUGIN -#include <updater> - -#pragma newdecls required -#pragma semicolon 1 - -public Plugin myinfo = -{ - name = "GOKZ KZErrorBoxFixer", - author = "1NutWunDeR", - description = "Adds missing models for KZ maps", - version = GOKZ_VERSION, - url = GOKZ_SOURCE_URL -}; - -#define UPDATER_URL GOKZ_UPDATER_BASE_URL..."gokz-errorboxfixer.txt" - -public void OnAllPluginsLoaded() -{ - if (LibraryExists("updater")) - { - Updater_AddPlugin(UPDATER_URL); - } -} - -public void OnLibraryAdded(const char[] name) -{ - if (StrEqual(name, "updater")) - { - Updater_AddPlugin(UPDATER_URL); - } -} - -public void OnMapStart() -{ - AddFileToDownloadsTable("models/kzmod/buttons/stand_button.vtf"); - AddFileToDownloadsTable("models/kzmod/buttons/stand_button.vmt"); - AddFileToDownloadsTable("models/kzmod/buttons/stand_button_normal.vtf"); - AddFileToDownloadsTable("models/kzmod/buttons/standing_button.mdl"); - AddFileToDownloadsTable("models/kzmod/buttons/standing_button.dx90.vtx"); - AddFileToDownloadsTable("models/kzmod/buttons/standing_button.phy"); - AddFileToDownloadsTable("models/kzmod/buttons/standing_button.vvd"); - AddFileToDownloadsTable("models/kzmod/buttons/stone_button.mdl"); - AddFileToDownloadsTable("models/kzmod/buttons/stone_button.dx90.vtx"); - AddFileToDownloadsTable("models/kzmod/buttons/stone_button.phy"); - AddFileToDownloadsTable("models/kzmod/buttons/stone_button.vvd"); - AddFileToDownloadsTable("models/props_wasteland/pipecluster002a.mdl"); - AddFileToDownloadsTable("models/props_wasteland/pipecluster002a.dx90.vtx"); - AddFileToDownloadsTable("models/props_wasteland/pipecluster002a.phy"); - AddFileToDownloadsTable("models/props_wasteland/pipecluster002a.vvd"); - AddFileToDownloadsTable("materials/kzmod/starttimersign.vmt"); - AddFileToDownloadsTable("materials/kzmod/starttimersign.vtf"); - AddFileToDownloadsTable("materials/kzmod/stoptimersign.vmt"); - AddFileToDownloadsTable("materials/kzmod/stoptimersign.vtf"); - AddFileToDownloadsTable("models/props/switch001.mdl"); - AddFileToDownloadsTable("models/props/switch001.vvd"); - AddFileToDownloadsTable("models/props/switch001.phy"); - AddFileToDownloadsTable("models/props/switch001.vtx"); - AddFileToDownloadsTable("models/props/switch001.dx90.vtx"); - AddFileToDownloadsTable("materials/models/props/switch.vmt"); - AddFileToDownloadsTable("materials/models/props/switch.vtf"); - AddFileToDownloadsTable("materials/models/props/switch001.vmt"); - AddFileToDownloadsTable("materials/models/props/switch001.vtf"); - AddFileToDownloadsTable("materials/models/props/switch001_normal.vmt"); - AddFileToDownloadsTable("materials/models/props/switch001_normal.vtf"); - AddFileToDownloadsTable("materials/models/props/switch001_lightwarp.vmt"); - AddFileToDownloadsTable("materials/models/props/switch001_lightwarp.vtf"); - AddFileToDownloadsTable("materials/models/props/switch001_exponent.vmt"); - AddFileToDownloadsTable("materials/models/props/switch001_exponent.vtf"); - AddFileToDownloadsTable("materials/models/props/startkztimer.vmt"); - AddFileToDownloadsTable("materials/models/props/startkztimer.vtf"); - AddFileToDownloadsTable("materials/models/props/stopkztimer.vmt"); - AddFileToDownloadsTable("materials/models/props/stopkztimer.vtf"); - - PrecacheModel("models/kzmod/buttons/stand_button.vmt", true); - PrecacheModel("models/props_wasteland/pipecluster002a.mdl", true); - PrecacheModel("models/kzmod/buttons/standing_button.mdl", true); - PrecacheModel("models/kzmod/buttons/stone_button.mdl", true); - PrecacheModel("materials/kzmod/starttimersign.vmt", true); - PrecacheModel("materials/kzmod/stoptimersign.vmt", true); - PrecacheModel("models/props/switch001.mdl", true); - PrecacheModel("materials/models/props/startkztimer.vmt", true); - PrecacheModel("materials/models/props/stopkztimer.vmt", true); -} |
