Change players avatar from server: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(created)
 
m (fix _)
Line 17: Line 17:


==See Also==
==See Also==
[[cl_avatar_convert_rgb]]
[[cl avatar convert rgb|cl_avatar_convert_rgb]]


[[cl_avatar_convert_png]]
[[cl avatar convert png|cl_avatar_convert_png]]


[[sv_reliableavatardata]]
[[sv reliableavatardata|sv_reliableavatardata]]


[[Category:Dedicated Server]]
[[Category:Dedicated Server]]
[[Category:Counter-Strike: Global Offensive]]
[[Category:Counter-Strike: Global Offensive]]

Revision as of 09:52, 1 March 2023

This is a example of how you can change players avatar from hosted source dedicated server.
This not affect they real avatar from Steam profile. You are just replacing picture from hosted server.


Player avatar changed from server.


  1. To enable this feature in server, change cvar sv_reliableavatardata to 2
    You can add this in ...cfg/server.cfg, it will reset setting on every map load.
    sv_reliableavatardata 2
  2. Optional: To change all players avatar to one default picture.
    Create picture, pixel size 64 x 64, save as PNG format, into your own game ...<MOD>/avatars/ folder. Name file as "default.png"
    For example CS:GO Counter-Strike: Global Offensive
    ...steamapps\common\Counter-Strike Global Offensive\csgo\avatars\default.png


  3. Launch your game with console enabled, in main menu, turn sv_cheats 1 and use command cl_avatar_convert_rgb
    You should have now new RGB file in folder ...<MOD>/avatars/default.rgb

  4. Move this RGB file into your hosted server ...<MOD>/avatars/default.rgb

  5. Change avatar by SteamID64: Repeat process same way as above, but save PNG file as using player SteamID64 serial.
    For example Counter-Strike: Global Offensive
    ...steamapps\common\Counter-Strike Global Offensive\csgo\avatars\76561197988592905.png


See Also

cl_avatar_convert_rgb

cl_avatar_convert_png

sv_reliableavatardata