Skip to content

Chat position customizations don't work + solution #122

@tom-fa

Description

@tom-fa

Editing the chat's xpos and ypos via either changing the values in basechat.res or applying one of the chat position customizations provided didn't work on most cases (bottom right worked somehow, but i wanted it top left).

The box would be in the position specified in basechat.res after saving changes to the file and a hud_reloadscheme, but after a lot of common events (player death, class change, team change, map change, etc.) it would revert back to it's "default" position.

Intended position example
Default position

After asking around in teamfortress.tv, user Zetos pointed me to an answer user Hypnotize had just given:

Hypnotize
You can add this animation to your animations file (usualy its something like scripts > hudanimations_custom.txt) this makes it so that the positioning of the chat will stay the same as the one set inside BaseChat.res

event CompetitiveGame_LowerChatWindow
{
}
event CompetitiveGame_RestoreChatWindow
{
}
event HudTournament_MoveChatWindow
{
}

I found this code was present in another hud I had (m0rehud) which didn't have this issue, in the following file: \scripts\animations\hudanimations_m0re.txt.

I then successfully pasted the code unto ahud-master\scripts\hudanimations_misc.txt to, as Hypnotize put it, have the chat box's position stay as set in basechat.res.

Hope this helps. Cool hud btw, thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions