3var
string autocvar_material_pathPrefix =
"textures";
12precache_material(
string materialName)
16 if (STRING_SET(autocvar_material_pathPrefix)) {
17 float prefixLength = strlen(autocvar_material_pathPrefix);
20 if (substring(materialName, 0, prefixLength) != autocvar_material_pathPrefix) {
21 newPath = strcat(autocvar_material_pathPrefix,
"/", materialName);
23 newPath = materialName;
26 newPath = materialName;
32 return precache_pic(newPath, 0);