Raised This Month: $32 Target: $400
 8% 

Solved How is avatar getting retrieved in scoreboard?


Post New Thread Reply   
 
Thread Tools Display Modes
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 12-24-2017 , 12:18   Re: How is avatar getting retrieved in scoreboard?
Reply With Quote #11

in fact the answers of fysiks never serve for anything, I always wondered why he gets responding the users of this forum, he must be an old 70-year-old older

4ever16, you should edit the file:

PHP Code:
C:\Program Files (x86)\Steam\SteamApps\common\Half-Life\cstrike\resource\UI\ScoreBoard.txt 
I believe it is possible to include images in all places of scoreboar, I have already checked addons with several types of themes.

this video, an image was placed on top: (format imagem = .TGA)

https://www.youtube.com/watch?v=9W6gab27Zvc

imagem top logo
Quote:
"Resource/UI/ScoreBoard.res"
{
"ClientScoreBoard"
{
"ControlName" "CClientScoreBoardDialog"
"fieldName" "ClientScoreBoard"
"xpos" "63"
"ypos" "42"
"wide" "580"
"tall" "480"
"autoResize" "0"
"pinCorner" "0"
"visible" "0"
"enabled" "1"
"tabPosition" "0"
}
"FXLogo"
{
"ControlName" "ImagePanel"
"fieldName" "FXLogo"
"xpos" "000000"
"ypos" "000000"
"wide" "615"
"tall" "89"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"labelText" ""
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"image" "gfx/3"
"scaleImage" "1"
}
"ServerName"
{
"ControlName" "Label"
"fieldName" "ServerName"
"xpos" "3"
"ypos" "2"
"wide" "265"
"tall" "24"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"labelText" ""
"textAlignment" "north-west"
"dulltext" "0"
"brighttext" "1"
}
"PlayerList"
{
"ControlName" "SectionedListPanel"
"fieldName" "PlayerList"
"xpos" "0"
"ypos" "60"
"wide" "544"
"tall" "480"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"autoresize" "3"
"linespacing" "11"
}
}
Attached Images
File Type: jpeg 1333122242.47 - Cópia.jpeg (68.0 KB, 105 views)
File Type: jpeg 1333122242.47.jpeg (94.8 KB, 106 views)
__________________

Last edited by rx1983; 12-24-2017 at 12:20. Reason: fx logo
rx1983 is offline
Send a message via MSN to rx1983
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-24-2017 , 14:59   Re: How is avatar getting retrieved in scoreboard?
Reply With Quote #12

Quote:
Originally Posted by rx1983 View Post
in fact the answers of fysiks never serve for anything, I always wondered why he gets responding the users of this forum, he must be an old 70-year-old older
I don't go around blatantly insulting you.
__________________
fysiks is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 12-24-2017 , 19:36   Re: How is avatar getting retrieved in scoreboard?
Reply With Quote #13

Quote:
Originally Posted by 4ever16 View Post
But if i would like that everyones avatar i see in scoreboard change to santa. Can i do that?
You can try to do this on the server-side via changing *sid field to steamid of profile that has santa on avatar.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
4ever16
Veteran Member
Join Date: Apr 2015
Old 12-26-2017 , 05:45   Re: How is avatar getting retrieved in scoreboard?
Reply With Quote #14

rx1983, thanks will check it out.
But its not an to add an image im interessted in, i want to know how exactly the avatars are getting retrieved or how to manipulate that.

I think i have an idea if its editible. Think instead of avatars it shows CS GO ranks?

Last edited by 4ever16; 12-26-2017 at 05:48.
4ever16 is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 12-26-2017 , 20:13   Re: How is avatar getting retrieved in scoreboard?
Reply With Quote #15

Quote:
Originally Posted by 4ever16 View Post
rx1983, thanks will check it out.
But its not an to add an image im interessted in, i want to know how exactly the avatars are getting retrieved or how to manipulate that.

I think i have an idea if its editible. Think instead of avatars it shows CS GO ranks?
i think that you would have to modify client.dll in cstrike/cl_dlls/.
tarsisd2 is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 12-27-2017 , 08:59   Re: How is avatar getting retrieved in scoreboard?
Reply With Quote #16

Ok but is there any decompiled version of client.dll?
4ever16 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-27-2017 , 17:20   Re: How is avatar getting retrieved in scoreboard?
Reply With Quote #17

Reverse engineering of these files violates the EULA with Valve and thus will not be supported here.
__________________
fysiks is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-01-2018 , 05:00   Re: How is avatar getting retrieved in scoreboard?
Reply With Quote #18

Quote:
Originally Posted by fysiks View Post
Reverse engineering of these files violates the EULA with Valve and thus will not be supported here.
*Looks around* You know what we do here, right?
__________________
asherkin is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-01-2018 , 15:40   Re: How is avatar getting retrieved in scoreboard?
Reply With Quote #19

As far as I know, we use a mechanism that was originally provided/shown by Valve (or an employee) to interact with the HLDS server. The request in this thread is talking about the client-side files that, as far as I am aware, Valve has never publicly endorsed direct interaction with it.

Obviously, I could be wrong since I don't know the exact history all that intimately.
__________________

Last edited by fysiks; 01-01-2018 at 15:41.
fysiks is offline
Solokiller
Senior Member
Join Date: Sep 2015
Old 01-02-2018 , 10:17   Re: How is avatar getting retrieved in scoreboard?
Reply With Quote #20

Avatars are retrieved using the Steamworks API:
The image id is retrieved using ISteamFriends: https://github.com/ValveSoftware/sou...friends.h#L288
The image data is retrieved using ISteamUtils: https://github.com/ValveSoftware/sou...eamutils.h#L72

tarsisd2 is correct: you'd need to modify the client dll, which would require you to reverse engineer the entire library and change the code, which is illegal and will likely get you VAC banned if you try to use it on any VAC enabled servers.
Solokiller is offline
Reply



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


All times are GMT -4. The time now is 04:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode