1.1 --- a/plugins/include/sourcemod.inc Sun Mar 25 21:18:50 2007 +0000
1.2 +++ b/plugins/include/sourcemod.inc Sun Mar 25 22:25:45 2007 +0000
1.3 @@ -310,5 +310,82 @@
1.4 */
1.5 native GetCurrentMap(String:buffer[], maxlength);
1.6
1.7 +/**
1.8 + * Precaches a given model.
1.9 + *
1.10 + * @param model Name of the model to precache.
1.11 + * @param preload If preload is true the file will be precached before level startup.
1.12 + * @return Returns the model index, 0 for error.
1.13 + */
1.14 +native PrecacheModel(const String:model[], bool:preload=false);
1.15 +
1.16 +/**
1.17 + * Precaches a given sentence file.
1.18 + *
1.19 + * @param file Name of the sentence file to precache.
1.20 + * @param preload If preload is true the file will be precached before level startup.
1.21 + * @return Returns a sentence file index.
1.22 + */
1.23 +native PrecacheSentenceFile(const String:file[], bool:preload=false);
1.24 +
1.25 +/**
1.26 + * Precaches a given decal.
1.27 + *
1.28 + * @param decal Name of the decal to precache.
1.29 + * @param preload If preload is true the file will be precached before level startup.
1.30 + * @return Returns a decal index.
1.31 + */
1.32 +native PrecacheDecal(const String:decal[], bool:preload=false);
1.33 +
1.34 +/**
1.35 + * Precaches a given generic file.
1.36 + *
1.37 + * @param generic Name of the generic file to precache.
1.38 + * @param preload If preload is true the file will be precached before level startup.
1.39 + * @return Returns a generic file index.
1.40 + */
1.41 +native PrecacheGeneric(const String:generic[], bool:preload=false);
1.42 +
1.43 +/**
1.44 + * Returns if a given model is precached.
1.45 + *
1.46 + * @param model Name of the model to check.
1.47 + * @return True if precached, false otherwise.
1.48 + */
1.49 +native bool:IsModelPrecached(const String:model[]);
1.50 +
1.51 +/**
1.52 + * Returns if a given decal is precached.
1.53 + *
1.54 + * @param decal Name of the decal to check.
1.55 + * @return True if precached, false otherwise.
1.56 + */
1.57 +native bool:IsDecalPrecached(const String:decal[]);
1.58 +
1.59 +/**
1.60 + * Returns if a given generic file is precached.
1.61 + *
1.62 + * @param decal Name of the generic file to check.
1.63 + * @return True if precached, false otherwise.
1.64 + */
1.65 +native bool:IsGenericPrecached(const String:generic[]);
1.66 +
1.67 +/**
1.68 + * Precaches a given sound.
1.69 + *
1.70 + * @param sound Name of the sound to precache.
1.71 + * @param preload If preload is true the file will be precached before level startup.
1.72 + * @return True if successfully precached, false otherwise.
1.73 + */
1.74 +native bool:PrecacheSound(const String:sound[], bool:preload=false);
1.75 +
1.76 +/**
1.77 + * Returns if a given sound is precached.
1.78 + *
1.79 + * @param sound Name of the sound to check.
1.80 + * @return True if precached, false otherwise.
1.81 + */
1.82 +native bool:IsSoundPrecached(const String:sound[]);
1.83 +
1.84 #include <helpers>
1.85 #include <entity>