forked from ddnet/ddnet
-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Seeing how @SollyBunny implementation of hiding player bubble only works with RCON I'm sharing this method
Capability to hide player chat emote and in-menu emote
Note: needs to edit controls file directly because otherwise it would be too late to make changes to it
ㅤㅤㅤㅤㅤ
src/game/client/components/controls.cpp - Line 183
// update player state
if(m_pClient->m_Chat.IsActive() && g_Config.m_ClShowPlayerChat)
m_aInputData[g_Config.m_ClDummy].m_PlayerFlags = PLAYERFLAG_CHATTING;
else if(m_pClient->m_Menus.IsActive() && g_Config.m_ClShowPlayerMenu)
m_aInputData[g_Config.m_ClDummy].m_PlayerFlags = PLAYERFLAG_IN_MENU;Capability to hide others chat emote and to change which emote is displayed
Note: SafeIndex is for modifying the emote shown, not necessary for hiding the chat emote
ㅤㅤㅤㅤㅤ
src/game/client/components/players.cpp - Line 857
if(g_Config.m_ClShowOthersChat && (Player.m_PlayerFlags & PLAYERFLAG_CHATTING) && !m_pClient->m_aClients[ClientId].m_Afk)
{
int SafeIndex = clamp(g_Config.m_ClChatEmoticon, 0, 15);
int CurEmoticon = SafeIndex;Capability to hide others in-menu emote and to change which emote is displayed
Note: SafeIndex is for modifying the emote shown, not necessary for hiding the in-menu emote
ㅤㅤㅤㅤㅤ
src/game/client/components/players.cpp - Line 869
if(g_Config.m_ClShowOthersMenu && (Player.m_PlayerFlags & PLAYERFLAG_IN_MENU))
{
int SafeIndex = clamp(g_Config.m_ClMenuEmoticon, 0, 15);
int CurEmoticon = SafeIndex;Required config variables
MACRO_CONFIG_INT(ClShowPlayerChat, cl_show_player_chat, 1, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Show chat emote above your tee when chat is open");
MACRO_CONFIG_INT(ClShowOthersChat, cl_show_others_chat, 1, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Show chat emotes above other tees when they open chat");
MACRO_CONFIG_INT(ClShowPlayerMenu, cl_show_player_menu, 1, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Show menu emote above your tee when in menu");
MACRO_CONFIG_INT(ClShowOthersMenu, cl_show_others_menu, 1, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Show menu emotes above other tees when they are in menu");
MACRO_CONFIG_INT(ClChatEmoticon, cl_chat_emoticon, 4, 0, 15, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Emote icon used when chat is open");
MACRO_CONFIG_INT(ClMenuEmoticon, cl_menu_emoticon, 12, 0, 15, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Emote icon used when in menu");ㅤㅤㅤㅤㅤ
It might be shabby but hope it helps
Metadata
Metadata
Assignees
Labels
No labels