A combination of Sourcemod plugins and Python scripts to automate taking screenshot of any skin.
The Sourcemod plugins will let you change your skin to any custom paint, float and seed. You can choose your favorite stickers and gloves. It also lets you teleport to any point in the map.
Note: float and wear is the same.
Examples (type into game console):
# Arguments are: sm_teleport (x, y, z) (viewangle x, y, z)
sm_teleport -1548 -339 195 0 104 0
Check weapons.txt for all available weapon names.
Check paint_kits.txt for all available paint kits.
# Arguments are: sm_changeskin weapon paint wear stattrak quality seed
sm_changeskin weapon_usp_silencer 415 0.0 -1 0 0
# M4A1-S | Printstream
sm_changeskin weapon_m4a1_silencer 984 0.0 -1 0 0
# AK-47 | Case Hardened Blue Gem
sm_changeskin weapon_ak47 44 0.0 -1 0 661
# AK-47 | Wild Lotus
sm_changeskin weapon_ak47 724 0.0 -1 0 0
# AWP | Dragon Lore
sm_changeskin weapon_awp 344 0.0 -1 0 0
# AWP | Gungnir
sm_changeskin weapon_awp 756 0.0 -1 0 0
# AWP | Medusa
sm_changeskin weapon_awp 446 0.0 -1 0 0
# USP-S | Whiteout
sm_changeskin weapon_usp_silencer 1065 0.0 -1 0 0
Knives
# Karambit | Lore
sm_changeskin weapon_knife_karambit 561 0.0 -1 3 0
# M9 Bayonet | Emerald Gamma Doppler
sm_changeskin weapon_knife_m9_bayonet 568 0.0 -1 3 0
# Bayonet | Ruby Doppler
sm_changeskin weapon_bayonet 415 0.0 -1 3 0
# Flip Knife | Marble Fire&Ice
sm_changeskin weapon_knife_flip 413 0.0 -1 3 412
# Huntsman | Case Hardened Blue Gem
sm_changeskin weapon_knife_tactical 44 0.0 -1 3 703
# Huntsman | Case Hardened Dick Pattern
sm_changeskin weapon_knife_tactical 44 0.0 -1 3 190
# Huntsman | Emerald Gamma Doppler
sm_changeskin weapon_knife_tactical 568 0.0 -1 3 0
# Karambit | Case Hardened Blue Gem (also: seed 269, 387)
sm_changeskin weapon_knife_karambit 44 0.0 -1 3 888
# Butterfly | Lore
sm_changeskin weapon_knife_butterfly 1105 0.0 -1 3 888
# Butterfly | Emerald Gamma Doppler
sm_changeskin weapon_knife_butterfly 568 0.0 -1 3 0
The value can either be the amount of kills or -1 for non-stattrak weapons.
The field can have the following values:
- 0: Normal
- 1: Genuine
- 2: Vintage
- 3: Unusual
- 4: Unique
- 5: Community
- 6: Developer
- 7: Self-Made
- 8: Customized
- 9: Strange
- 10: Completed
- 11: Haunted
- 12: Tournament
Defines the quality of this weapon. Qualities 4 and 11 are the same as 0.
Knives always use quality 3 which makes the "★" appear.
# Arguments are: sm_gloves index paint wear seed
# Sport Gloves | Vice
sm_gloves 5030 10048 0.0 0
# Sport Gloves | Amphibious
sm_gloves 5030 10045 0.0 0
# Sport Gloves | Omega
sm_gloves 5030 10047 0.0 0
# Sport Gloves | Pandora's Box
sm_gloves 5030 10037 0.0 0
# Sport Gloves | Hedge Maze
sm_gloves 5030 10038 0.0 0
# Broken Fang Gloves | Jade
sm_gloves 5035 10085 0.0 0
# Hand Wraps | CAUTION!
sm_gloves 5032 10084 0.0 0
# Driver Gloves | King Snake
sm_gloves 5031 10041 0.0 0
# Driver Gloves | Overtake
sm_gloves 5031 10043 0.0 0
Check gloves.txt for all available indices.
Check paint_kits.txt for all available paint kits.
# Arguments are: sm_sticker slot index wear scale rotation
# iBUYPOWER Holo
sm_sticker 0 60 0.0 1.0 0.0
# Titan Holo
sm_sticker 1 76 0.0 1.0 0.0
# Liquid Fire (Holo)
sm_sticker 2 4934 0.0 1.0 0.0
# Cotton Candy Flow (Holo)
sm_sticker 3 4863 0.0 1.0 0.0
Check stickers.txt for all available indices.
# Arguments are: sm_player_model [.mdl]
# Sir Bloody Loudmouth Darryl | The Professionals
sm_player_model models/player/custom_player/legacy/tm_professional_varf4.mdl
# Reset back to default
sm_player_model
Check player_models.txt for all available models.
WARNING: This server sets FollowCSGOServerGuidelines to No. Only run this if you know what you are doing.
Per http://blog.counter-strike.net/index.php/server_guidelines/, certain plugin
functionality will trigger all of the game server owner's Game Server Login Tokens (GSLTs)
to get banned when executed on a Counter-Strike: Global Offensive game server.
The docker image will run a custom CS:GO server at port 27015 UDP (the default).
The Sourcemod plugin will be copied and compiled as part of the docker build
.
To build the image, run this:
docker buildx build --tag csgo-server-with-changeskin ./server/
To start a CS:GO server:
docker run -it --rm -p 27015:27015/udp -p 27015:27015/tcp csgo-server-with-changeskin -ip 0.0.0.0 -console -usercon -insecure +game_type 0 +game_mode 1 +map de_vertigo
Get a shell:
docker run -it --rm --entrypoint bash csgo-server-with-changeskin
Debug Sourcemod (server/rcon commands):
plugin_print
meta list
sm exts list
sm plugins list
In order to connect to the server, do this:
- Set video mode to Fullscreen Windowed
- Enable Developer Console
- Set console key to F9
- For better screenshots, set cl_drawhud 0
Now, connect to the server (replace IP with your server IP):
password 123456; connect 172.17.0.1
If you have trouble to start the CS:GO Client on Linux (shows blackscreen and then exists after few seconds):
-nojoy -novid -fullscreen and renaming the videos folder to videos.bak fixed it for me. This causes a black screen behind the player model in the menu, but game play is fine for me. I'm running Manjaro KDE Plasma. -- ValveSoftware/csgo-osx-linux#2643 (comment)
For gloves not rendering properly, make sure to use the -vulkan
mode:
CS:GO Gloves not rendering correctly on ubuntu #2102
The web frontend will produce messages, which screenshots are to be taken next.
The Python script on client site will consume those messages and take screenshots to the file system.
docker run -it --rm -e RABBITMQ_NODENAME=rabbitmq --name rabbitmq -p 15672:15672 -p 5672:5672 rabbitmq:3-management
docker build --file=./client/frontend/Dockerfile --tag csgo-skinscreenshot-webfrontend ./client/
docker run -it --rm -p 5000:5000 csgo-skinscreenshot-webfrontend
These scripts are meant to be executed on the same machine the CS:GO Windows client runs.
cd ./client/csgo/
python csgo-skinscreenshot.py
- Weapon Nametags
- Player Model Patches
Check out the subdirectory lists
.
- Schema: https://raw.githubusercontent.com/SteamDatabase/SteamTracking/b5cba7a22ab899d6d423380cff21cec707b7c947/ItemSchema/CounterStrikeGlobalOffensive.json
- List of paint kits: https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/master/csgo/scripts/items/items_game.txt
- English texts: https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/master/csgo/resource/csgo_english.txt
- https://www.unknowncheats.me/wiki/Counter_Strike_Global_Offensive:Skin_Changer
- https://www.unknowncheats.me/wiki/Counter_Strike_Global_Offensive:Economy_Weapon_IDs
- https://forums.alliedmods.net/showthread.php?t=261263
- https://github.com/quasemago/CSGO_WeaponStickers/blob/master/addons/sourcemod/scripting/csgo_weaponstickers.sp