From 10157e6d87d29bfef8c87649ceb4a308f89774b4 Mon Sep 17 00:00:00 2001 From: VindoesCompooter <100soundsystem32@gmail.com> Date: Thu, 8 Apr 2021 16:47:21 +0100 Subject: [PATCH] Override description in nshud Allows the player in question to override the nshud description for a player. --- plugins/nshud/sh_plugin.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nshud/sh_plugin.lua b/plugins/nshud/sh_plugin.lua index 8548a2ca..a8a54a79 100644 --- a/plugins/nshud/sh_plugin.lua +++ b/plugins/nshud/sh_plugin.lua @@ -116,7 +116,7 @@ function PLUGIN:DrawEntityInfo(entity, alpha, position) teamGetColor(entity.Team(entity)) } - local description = character.getDesc(character) + local description = hookRun("GetDisplayedDescription", entity) or character.getDesc(character) if (description ~= entity.nutDescCache) then entity.nutDescCache = description