This plugin is a secondary Plugin that works with SharpTimer in tandem. It will pre-cache and set the players PlayerModel on Spawn.
!models
- lists all models loaded!setmodel <index>
- sets the model by index
sharptimer_modelsetter_vip_only
- Wheter to only allow vip the access to it or not. Default value: falsesharptimer_modelsetter_set_model_on_spawn
- Wheter to set the first player model from the list on spawn or not. Default value: true
Make sure you are running the MultiAddonManager MetaMod and mount your vpk with all the custom Models
If you are running ResourcePrecacher make sure to remove it as this plugin already has the same functionality and is based uppon ResourcePrecacher
Then head to /csgo/addons/counterstrikesharp/configs/plugins/SharpTimerMS
and open SharpTimerMS.json
.
After that add your models to the "Resources"
array, like this:
{
"Resources": [
"characters/models/dea/choi/choi.vmdl",
"characters/models/dea/9s/nier_9s.vmdl",
// ..
// ..
// ..
],
"CreatePrecacheContextSignature": {
// ...
},
"PrecacheResourceSignature": {
// ...
},
"ConfigVersion": 1
}
Note that the first model in the list will be the default model applied on spawn
On the final step make sure all your vpk assets are sitting in /csgo/.../.../
in your server files otherwise animations will break!
You can use Source2Viewer to "Export as is" to get the unpacked assets from a Workshop VPK inside your steamapps/workshop/content/730/WORKSHOPID
folder