diff options
| author | navewindre <nw@moneybot.cc> | 2023-12-04 18:06:10 +0100 |
|---|---|---|
| committer | navewindre <nw@moneybot.cc> | 2023-12-04 18:06:10 +0100 |
| commit | aef0d1c1268ab7d4bc18996c9c6b4da16a40aadc (patch) | |
| tree | 43e766b51704f4ab8b383583bdc1871eeeb9c698 /sourcemod/scripting/gokz-errorboxfixer.sp | |
| parent | 38f1140c11724da05a23a10385061200b907cf6e (diff) | |
bbbbbbbbwaaaaaaaaaaa
Diffstat (limited to 'sourcemod/scripting/gokz-errorboxfixer.sp')
| -rw-r--r-- | sourcemod/scripting/gokz-errorboxfixer.sp | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/sourcemod/scripting/gokz-errorboxfixer.sp b/sourcemod/scripting/gokz-errorboxfixer.sp new file mode 100644 index 0000000..fd3f76a --- /dev/null +++ b/sourcemod/scripting/gokz-errorboxfixer.sp @@ -0,0 +1,89 @@ +#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); +} |
