How to set a custom avatar in Left 4 Dead 2?

1. First open the game directory and see a platform folder.

2. After opening the folder, you see a file:

3. This file is the avatar file. Prepare the replacement picture as the avatar, delete this file, then put the prepared picture into the platform, and then rename the prepared picture to "avatar.dat", so that the avatar will be automatically generated in the game.