Change players avatar from server: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (This article is for all Source games, not specifically cs2)
 
Line 1: Line 1:
Instructions on how you can change players avatars on your hosted CS2 [[SRCDS|source dedicated server]].<br>
Instructions on how you can change players avatars on your hosted [[SRCDS|source dedicated server]].<br>
This will not affect their real Steam profile avatar. You are just replacing a picture on the server.
This will not affect their real Steam profile avatar. You are just replacing a picture on the server.


Line 9: Line 9:


# To enable this feature on the server, change cvar [[sv_reliableavatardata]] to <code>true</code><br>You can add this in [[.cfg|...cfg/server.cfg]], it will reset setting on every map load.<pre>sv_reliableavatardata true</pre>
# To enable this feature on the server, change cvar [[sv_reliableavatardata]] to <code>true</code><br>You can add this in [[.cfg|...cfg/server.cfg]], it will reset setting on every map load.<pre>sv_reliableavatardata true</pre>
# '''Optional:''' To change all players avatar to one default picture.<br>Create picture, pixel size <code>64 x 64</code>, save as PNG format, into your own game <code>...game/csgo/avatars/</code> folder. Name file as "default.png"<br>For example CS2 {{csgo}}<br><pre>...steamapps\common\Counter-Strike Global Offensive\game\csgo\avatars\default.png</pre><br><br>
# '''Optional:''' To change all players avatar to one default picture.<br>Create picture, pixel size <code>64 x 64</code>, save as PNG format, into your own game <code>...<MOD>/avatars/</code> folder. Name file as "default.png"<br>For example CS2 {{cs2}}<br><pre>...steamapps\common\Counter-Strike 2\game\csgo\avatars\default.png</pre><br><br>
# '''Change avatar by SteamID64:''' Repeat process same way as above, but save PNG file as using player ''SteamID64'' serial.<br>For example {{csgo}}<pre>...steamapps\common\Counter-Strike Global Offensive\game\csgo\avatars\76561197988592905.png</pre>
# '''Change avatar by SteamID64:''' Repeat process same way as above, but save PNG file as using player ''SteamID64'' serial.<br>For example {{cs2}}<pre>...steamapps\common\Counter-Strike 2\game\csgo\avatars\76561197988592905.png</pre>
# '''Max avatar PNG size on server:''' each PNG file size is limited to 16KB.
# '''Max avatar PNG size on server:''' each PNG file size is limited to 16KB.



Latest revision as of 15:25, 6 February 2024

Instructions on how you can change players avatars on your hosted source dedicated server.
This will not affect their real Steam profile avatar. You are just replacing a picture on the server.


Player avatar changed from server.


  1. To enable this feature on the server, change cvar sv_reliableavatardata to true
    You can add this in ...cfg/server.cfg, it will reset setting on every map load.
    sv_reliableavatardata true
  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 CS2 Counter-Strike 2
    ...steamapps\common\Counter-Strike 2\game\csgo\avatars\default.png


  3. Change avatar by SteamID64: Repeat process same way as above, but save PNG file as using player SteamID64 serial.
    For example Counter-Strike 2
    ...steamapps\common\Counter-Strike 2\game\csgo\avatars\76561197988592905.png
  4. Max avatar PNG size on server: each PNG file size is limited to 16KB.


See also

sv_reliableavatardata


Here YouTube video