.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > SDK Programming discussions > Half-Life 1 SDK
Half-Life 1 SDK For developments focused around Half-Life (and its mods) Half-Life

Reply
 
Thread Tools
Hostname in Scoreboard (HUD)
Old
  (#1)
desNotes
Member
 
Status: Offline
Posts: 12
Join Date: Jan 2004
Default Hostname in Scoreboard (HUD) - 03-05-2004

When pressing the TAB key in HLDM, CS, etc. the scoreboard (HUD) comes up and gives the standings, pings, etc. and the hostname of the server. In the mod Ricochet, the hostname does not display. I've done a few bug fixes to the Ricochet code and some enhancements to the HLDM but can't seem to find where the hostname in HLDM gets sent to the HUD so I can add the code to the Ricochet side.

I am hoping I won't have to alter the client side at all but just send the hostname from the server. Anyone have an idea where I can locate the hostname info on HLDM and how it displays?

Thanks,

desNotes



  
Reply With Quote
Re: Hostname in Scoreboard (HUD)
Old
  (#2)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Hostname in Scoreboard (HUD) - 03-05-2004

When you mean "hostname", I assume you mean the server name as reported in the HL server browser ?
If so, you might be interested in hacking around the pfnGetGameDescription() function (from the gamedll functions interface).



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Hostname in Scoreboard (HUD)
Old
  (#3)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: Hostname in Scoreboard (HUD) - 03-05-2004

Heres why it won't show...
It seems that the ricochet server has removed the "ServerName" message, also, the client has ditched the message aswell.

Luckily, the code to display the server name is still there but is just idle.
What you need to do is register the "ServerName" network message ( Size as -1 ).
In CHalfLifeMultiplay::SendMOTDToClient ( or wherever you want to put it ) just send the ServerName message along with the server's "hostname" cvar value.
All you need to do is hook the message on the client ( The hook function is still there aswell ) and it should display.

Last edited by Lazy; 03-05-2004 at 20:46..
  
Reply With Quote
Re: Hostname in Scoreboard (HUD)
Old
  (#4)
desNotes
Member
 
Status: Offline
Posts: 12
Join Date: Jan 2004
Default Re: Hostname in Scoreboard (HUD) - 04-05-2004

Quote:
Originally Posted by Lazy
All you need to do is hook the message on the client ( The hook function is still there aswell ) and it should display.
I found the information in the server code but even if I change the client side, I then have to compile and redistribute the clients and there isn't enough interest for that.

thanks anyway,

desNotes
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com