pos.y += sb_gameinfo_type_fontsize.y;
// z411 servername
- drawcolorcodedstring(pos + '0.5 0 0' * (panel_size.x - stringwidth(hostname, true, sb_gameinfo_detail_fontsize)), hostname, sb_gameinfo_detail_fontsize, panel_fg_alpha, DRAWFLAG_NORMAL);
+ drawcolorcodedstring(pos + '0.5 0 0' * (panel_size.x - stringwidth(hostname_full, true, sb_gameinfo_detail_fontsize)), hostname_full, sb_gameinfo_detail_fontsize, panel_fg_alpha, DRAWFLAG_NORMAL);
pos.y += sb_gameinfo_detail_fontsize.y;
g_trueaim_minrange = ReadCoord();
- strcpy(hostname, ReadString());
+ strcpy(hostname_full, ReadString());
return = true;
#include <common/weapons/_all.qh>
// z411
-string hostname;
+string hostname_full;
// Map coordinate base calculations need these
vector mi_center;
float autocvar_gameversion_min;
float autocvar_gameversion_max;
string autocvar_hostname;
+string autocvar_hostname_full; // z411
bool autocvar_lastlevel;
//int autocvar_leadlimit;
int autocvar_leadlimit_and_fraglimit;
WriteByte(channel, serverflags);
WriteCoord(channel, autocvar_g_trueaim_minrange);
- // z411 send hostname
- WriteString(channel, autocvar_hostname);
+ // z411 send full hostname
+ WriteString(channel, (autocvar_hostname_full ? autocvar_hostname_full : autocvar_hostname));
}
void ClientInit_CheckUpdate(entity this)
modifications = substring(modifications, 2, strlen(modifications) - 2);
string versionmessage = GetClientVersionMessage(this);
- string s = strcat(versionmessage, "^8\n^8\nhost is ^9", autocvar_hostname, "^8\n");
+ string s = strcat(versionmessage, "^8\n^8\nhost is ^9", (autocvar_hostname_full ? autocvar_hostname_full : autocvar_hostname), "^8\n");
s = strcat(s, "^8\nmatch type is ^1", gamemode_name, "^8\n");