diff --git a/tossbuildings.sp b/tossbuildings.sp index 7b5e503..6803c1e 100644 --- a/tossbuildings.sp +++ b/tossbuildings.sp @@ -25,7 +25,7 @@ #pragma newdecls required #pragma semicolon 1 -#define PLUGIN_VERSION "22w47a" +#define PLUGIN_VERSION "23w01a" public Plugin myinfo = { name = "[TF2] Toss Buildings", @@ -84,6 +84,11 @@ bool g_bDepHudMsg; //for fancy messages bool g_bDepAttribHooks; //for hidden dev attributes, works better than custom attributes bool g_bDepCustomAttribs; //for custom attributes / custom weapons integration +public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max) { + FixOptionalDeps(); + return APLRes_Success; +} + public void OnPluginStart() { GameData data = new GameData("tbobj.games"); if (data == null) @@ -560,7 +565,7 @@ bool IsThrowBlocked(int client) { #endif #if defined __tf_custom_attributes_included if (g_bDepCustomAttribs) { - int cwAllowed = CA_HookValueIntOR(weapon, "toss buildings"); + int cwAllowed = CA_HookValueIntOR(client, "toss buildings"); if ((cwAllowed & (1<