AMXX Precacher Redux
Version 2.0.2
By
Cyrez
Based on AMX Precache by Sanji
Special thanks to
BAILOPAN for his
CSDM source code that provided much of the inspiration I needed.
Requires: Engine
The original plugin allows you to precache just about anything. The code, although functional, was outdated and had some redundancy. This completely revamped version has less code, standards-compliant logging, automatic creation of the proper directories and files, and no more hardcoded paths.
When you first load the plugin and load any map, it will create a "
precache" directory in "
configs" followed by the creation of the default precaching file loaded with every map which can be found at "
precache/default.pre". Next, it will create a "
precache/maps" directory. Every time a new map is loaded from here on out, a "
precache/maps/<map>.pre" file is created automatically. That's right, no more manual installation! It's all automated!
Update 2.0.1: Fixed precache_class, some code cleanup.
Update 2.0.2: Removed load_file since it never worked in the first place.
Quote:
Originally Posted by Sanji
Commands to use in the files:
Code:
precache_model <modelfile> (example: models/islave.mdl)
precache_sound <soundfile> (example: ambience/alien_beacon.wav)
precache_generic <file> (example: mp3/yeah.mp3)
precache_class <classname> (example: monster_alien_slave)
|
Special Note: You can comment out any precache command in the files by prefixing it with
//