Files Management Interface
v. 1.0.0
Foreword : I made this plugin because SM File/Folder Downloader and Precacher was good, but I believe it missed essential functions, plus it was indirectly made for a paid request.Features :- Allows to easily precache all the files in a folder, by both Natives and a read file.
- Files are read according to their extensions. ".mp3" will be considered like sounds, ".mdl" models, etc.
- Provides Natives to easily request a random file.
- None.
- filesmanagementinterfaceversion: Gives version -_-'
- ----------
- fmi_file : File to read that will contain the folder paths which will have their files precached & downloaded. Can be a filepath.
- ----------
- fmi_fileext_sound : File extensions to precache and consider sounds when using the interface (.inc). Default ".mp3 .wav".
- fmi_fileext_model : File extensions to precache and consider models when using the interface (.inc). Default ".mdl".
- fmi_fileext_decal : File extensions to precache and consider decals when using the interface (.inc). Default ".vmt".
- fmi_fileext_generic : File extensions to precache and consider generics when using the interface (.inc). Default ".pcf".
- fmi_fileext_downloadonly : File extensions that will be downloaded, but not accessible via the interface (.inc). Default ".phy .vtx .vvd .vtx .vtf".
- fmi_fileext_nodownload : File extensions that won't be downloaded but will be accessible via the interface (.inc). Default ".txt .ini .cfg".
- fmi_fileext_ignore : File extensions that won't be downloaded/precached (directly) nor accessible via the interface (.inc), when using fmi_file. Default ".ztmp".
- Note some ConVar can't have their extensions removed. This is a wanted behaviour to ensure that plugins using this interface will precached correctly some files (i.e. you can't remove ".mp3").
- sm_fmi_reloadfiles : Reload the folders specified in the ConVar 'fmi_file'. This could break plugins communication with this interface until next map load. Use it carefully.
- Put the .inc in the include folder to compile.
- See 2nd post for a list of plugin that uses this interface.
- See 3rd post for a quick explanation on how to use this interface (for developpers).
- The .ini is optional and serves to download/precache entire (and entire only) folders (alternative to SM File/Folder Downloader and Precacher )
- Tested under both CSS & CSGO.
- Thanks to psychonic for his CSGO quirks and newer mod folder names.
- 1.0.0 Initial release. (11-01-2013)
Wyświetl pełny artykuł