This ensures that the CS:GO assets you use in your map will be available for packing into the map.
This will:
- Removes any assets which are already available in GMod/HL2
- Resolves conflicts between CS:S and CS:GO resources with the same name
- Use GCFScape to extract assets from games
- Open each game's resource pack in GCFScape and extract the models/materials into a folder for that game
- E.g.
desktop/csgo/materials
,desktop/csgo/models
- E.g.
- CS:GO -
\Counter-Strike Global Offensive\csgo\pak01_dir.vpk
- CS:S -
\Counter-Strike Source\cstrike\cstrike_pak_dir.vpk
- HL2
\garrysmod\sourceengine\hl2_misc_dir.vpk
\garrysmod\sourceengine\hl2_textures_dir.vpk
- GMod -
\garrysmod\garrysmod\garrysmod_dir.vpk
- Open each game's resource pack in GCFScape and extract the models/materials into a folder for that game
- Remove duplicates
- Use this script https://gist.github.com/BadgerCode/beb72cc4325a48a0a30a12d587cc96e0
- Remove any CS:GO files found in the CS:S folder
- Materials AND models
- Merge the CS:GO and CS:S folders
- Remove any CS:GO/S files found in the GMod folder
- Materials AND models
- Remove any CS:GO/S files found in the HL2 folder
- Materials AND models
- Copy these new files into your GMod directory