diff --git a/RELEASE.md b/RELEASE.md index ef7b4236e..4d938ae40 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,6 +1,6 @@ # Release Notes -## 2.5.2 (Beta) +## 2.5.2 **Released: August 8th, 2026** ### Additions diff --git a/docs/api/hooks.html b/docs/api/hooks.html index 0ea040041..02ac5ce9a 100644 --- a/docs/api/hooks.html +++ b/docs/api/hooks.html @@ -507,11 +507,11 @@

 

(Added in 2.5.2) -
  • y - The Y value representing the top edge of the player information HUD   (Added in 2.5.2)
  • +
  • x - The X value representing the left edge of the player information HUD (Added in 2.5.2)
  • +
  • y - The Y value representing the top edge of the player information HUD (Added in 2.5.2)
  • -

    TTTHUDInfoPositionOverride(client, x, y, width, height)  

    +

    TTTHUDInfoPositionOverride(client, x, y, width, height)

    Allows overriding the position of the player information HUD (role, health, ammo etc.).
    Realm: Client
    diff --git a/docs/teams/jester.html b/docs/teams/jester.html index b0db195d6..3f1833116 100644 --- a/docs/teams/jester.html +++ b/docs/teams/jester.html @@ -601,7 +601,7 @@

    Role Configuration:

    Whether the Cannibal causes a sound when poop is dropped from a digested victim. (Requires ttt_cannibal_digestion to be enabled.) - ttt_cannibal_digestion_poop_sound_level   + ttt_cannibal_digestion_poop_sound_level 100 Integer The sound level (volume) to play the Cannibal's digestion poop sound (set to 0 to disable). (Requires ttt_cannibal_digestion to be enabled.) @@ -613,7 +613,7 @@

    Role Configuration:

    The amount of time in seconds between uses of the Cannibal's Cannibalizer. - ttt_cannibal_eat_sound_level   + ttt_cannibal_eat_sound_level 100 Integer The sound level (volume) to play the Cannibal's eat sound (set to 0 to disable). @@ -1218,7 +1218,7 @@

    Role Configuration:

    Whether a specific jester role should be fully healed when using the spongifier. Replace * with the name of the jester role you want to configure without spaces or capital letters. - ttt_sponge_win_ends_round   + ttt_sponge_win_ends_round 1 Boolean Whether the round should end when the Sponge wins. diff --git a/gamemodes/terrortown/gamemode/roles/cannibal/cl_cannibal.lua b/gamemodes/terrortown/gamemode/roles/cannibal/cl_cannibal.lua index 137e38f58..6893a8291 100644 --- a/gamemodes/terrortown/gamemode/roles/cannibal/cl_cannibal.lua +++ b/gamemodes/terrortown/gamemode/roles/cannibal/cl_cannibal.lua @@ -165,11 +165,7 @@ end --------- local function Cannibal_TTTHUDInfoPaint(cli, label_left, label_top, active_labels, x, y) - if not IsPlayer(client) then - client = LocalPlayer() - end - - if not client.TTTCannibalEaten then return end + if not cli.TTTCannibalEaten then return end local bar_colors = { border = COLOR_WHITE,