Welcome to LegendCS – With grace, in your face !

 
Last Updated: 03-29-2025, 04:30 PM
Name: {Plugin CS2] Resource Precacher
Category: Plugins
by: Berserk
Downloads: 0
Views: 5
MD5: b892985ea4ece256cf9e6efca92efd48
Your rating: N/A
Average rating: N/A
 
Description:
Description: This plugin can precache custom resources.
  • Required CS# version: artifact v271

Author: KillStr3aK

What it can do :

You can upload or add any number of resources either in the Assets

folder or in the configuration file and it will automatically precache them when the map starts.
These files are supported:

PHP Code: 
"vmdl",     "vmdl_c",
"vpcf",     "vpcf_c",
"vmat",     "vmat_c",
"vcompmat""vcompmat_c",
"vtex",     "vtex_c",
"vsnd",     "vsnd_c",
"vdata",    "vdata_c",
"vpost",    "vpost_c",
"vsurf",    "vsurf_c",
"vanmgrph""vanmgrph_c",
"vmix",     "vmix_c",
"vnmclip",  "vnmclip_c",
"vrman",    "vrman_c",
"vrr_c",    "vrr_c",
"vsc",
"vsmart",   "vsmart_c",
"vsnap",    "vsnap_c",
"vsndevts""vsndevts_c",
"vsndgrps",
"vsndstck""vsndstck_c",
"vsvg",     "vsvg_c",
"vts",      "vts_c",
"vxml",     "vxml_c" 

What it cannot do:
It cannot download the resources for the clients.

Configuration :

Upload your workshop packages (the ones that you have uploaded to workshop) into the "Assets" folder inside the plugin folder. plugins/ResourcePrecacher/Assets

You don't have to list these, each of them will be checked so you can upload as many as possible.
Folder Structure:
plugins
  • ResourcePrecacher
    • Assets
      • 123456789.vpk
      • 987654321.vpk
      • assets.vpk
      • models.vpk
OR
Add your resources in the configuration:

PHP Code: 
{
  "Resources": [
     "models/props_office/file_cabinet_03.vmdl",
     "models/props_exteriors/guardrail512.vmdl",
     // ..
     // ..
     // ..
  ]


You can use both ways even together, just dont include resources that is already in an uploaded vpk. 

Quote:
Warning

Hotreloading this plugin has no effect because the resources can only be precached on map start. If you hotreload the plugin you are supposed to change the map atleast to take effect.

[-]
Leave a comment
To leave a comment you must log in.