sorry douple post.
Seems someone asking same thing in another topic.
Block BSP list precache files
Here is one way:
- New custom flag model into server.
- Upload custom model to players.
- Stripper plugin, to replace "dod_control_point" model path to else.
I attach ZIP file what contain these
I recompile original flag model to use different file path, (/server/).
INSTALL
Upload
materials,
models folder into server
/dod/ folder.
- If you have
files upload host in use (sv_downloadurl "url"), then upload folders in there also.
To tell SRCDS actually upload custom files, there is
res file in maps folder (
ar_lumberyard.res)
- You make copy of this file and rename it to map name where you want use custom model. ex cs_office.res
Above method is old fashion way to upload files, you can however use
SourceMod plugin to make this task much easier.
There are two Stripper plugin configure examples.
- Use either global or per map configure.
- Copy and rename
*.cfg.example config file suffix to
*.cfg
SRCDS need use cvar
sv_allowdownload 1 if you not use upload host.
-
Once players are downloaded custom flag files, they
will not redownload those files anymore later.
If they have to, they need delete files from
...dod/download/ folder, in they computer.
------------------------------------------------------------------------
Then there is bad news. All players may can't or want download custom files.
Players would see big
ERROR model instead custom flag model.
- They missing custom files in they game files.
- Or server is using
sv_pure 1 is not configured right.
There is
pure_server_whitelist_example.txt, rename it to
pure_server_whitelist.txt
Players need set they own game:
cl_downloadfilter "all"
cl_allowdownload 1
*update
- Some reason player game crash when server is in sv_pure 1 mode. It's maybe my custom model or Stripper is not good option to replace dod_control_point model. Or need SM plugin to precache models ?
*update
- that dam *.res file will give crash to player. Maybe better change to SM plugin.
*update
- Seems not work in sv_pure 1 mode, this maybe need done with SM plugin to recreate entity.
*update
- On next day, I did not get sv_pure crashes anymore, I guess another program in my PC was making that bug (VIDE or Crowbar compiler).
I found different sv_pure bug, what prevent custom model to load. If you add 5th folder in file path it not work. There maybe a max path name lenght.
- stupid me, I gave file name instead folder. Doh.
Code:
// Allow custom flag - this config not work in pure_server_whitelist.txt
models\server\mapmodels\flags\... any
materials\models\server\mapmodels\flags\... any
// Allow custom flag - this works
models\server\mapmodels\... any
materials\models\server\mapmodels\... any
-
There is bug in sv_pure 1, crash on clients.
It happen when use
*.res file and
you not have files configured in pure_server_whitelist.txt. This could be also combination with Stripper plugin, when change model from map.