From b579a38d8900824b5d43305d821663c116ffd45d Mon Sep 17 00:00:00 2001 From: BotoX Date: Tue, 5 Jan 2016 02:50:34 +0100 Subject: [PATCH] disabled potentially broken weaponalpha functionality (black sprites) --- src/zr/weapons/weaponalpha.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/zr/weapons/weaponalpha.inc b/src/zr/weapons/weaponalpha.inc index 441c86f..12d79b0 100644 --- a/src/zr/weapons/weaponalpha.inc +++ b/src/zr/weapons/weaponalpha.inc @@ -42,6 +42,7 @@ new g_iWeaponDropHookID[MAXPLAYERS + 1] = {-1, ...}; */ WeaponAlphaClientInit(client) { + return; // Hook "Weapon_Drop" on client. #if defined USE_SDKHOOKS SDKHook(client, SDKHook_WeaponDrop, WeaponAlphaDrop); @@ -60,6 +61,7 @@ WeaponAlphaClientInit(client) */ WeaponAlphaOnClientDisconnect(client) { + return; // Unhook "Weapon_Drop" callback, and reset variable. if (g_iWeaponDropHookID[client] != -1) { @@ -81,6 +83,7 @@ WeaponAlphaOnClientDisconnect(client) */ WeaponAlphaOnItemPickupPost(client, weapon) { + return; if (Entity_HasChildren(weapon)) { // Don't apply alpha value if weapon has children. Render mode is @@ -111,6 +114,7 @@ public Action:WeaponAlphaDrop(client, weapon) public ZRTools_Action:WeaponAlphaDrop(client, weapon) #endif { + return; // If weapon isn't a valid entity, then stop. if (weapon < MaxClients) { @@ -128,6 +132,7 @@ public ZRTools_Action:WeaponAlphaDrop(client, weapon) */ WeaponAlphaOnClientAlphaChanged(client, alpha) { + return; // Set new alpha on weapons. WeaponAlphaApplyWeaponAlpha(client, alpha); } @@ -141,6 +146,7 @@ WeaponAlphaOnClientAlphaChanged(client, alpha) */ WeaponAlphaApplyWeaponAlpha(entity, alpha) { + return; if (entity > MaxClients) { // Turn rendermode on, on the weapon.