Raised This Month: $ Target: $400
 0% 

AMXX Precacher Redux


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Technical/Development        Approver:   Zenith77 (33)
Cyrez
Junior Member
Join Date: Sep 2005
Location: Redwood City, CA USA
Old 02-09-2008 , 14:51   AMXX Precacher Redux
Reply With Quote #1

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 View Post
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 //
Attached Files
File Type: sma Get Plugin or Get Source (precache.sma - 8010 views - 2.1 KB)

Last edited by Cyrez; 02-12-2008 at 09:14. Reason: Update 2.0.2
Cyrez is offline
Send a message via ICQ to Cyrez Send a message via AIM to Cyrez Send a message via MSN to Cyrez Send a message via Yahoo to Cyrez
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode