Quote:
Originally Posted by baneado
Precache count is increased by precaching two times the same model on different plugins?
|
No.
Quote:
Originally Posted by baneado
Any way to count total files precached?
Without changing or add something to the native or plugins. Just one plugin or module that counts everything and output you the count of models, sounds, etc.
When I say everything it may consider default or map resources
|
This only prints non-AMXX resources.
Code:
#include <amxmodx>
#include <fakemeta>
#include <D7Debug>
public plugin_precache()
{
register_plugin("D7 Resource precache listing", "0.0.1", "D i 5 7 i n c T")
register_forward(FM_PrecacheModel, "fwFmPrecache", 1)
register_forward(FM_PrecacheSound, "fwFmPrecache", 1)
register_forward(FM_PrecacheGeneric, "fwFmPrecache", 1)
register_forward(FM_PrecacheEvent, "fwFmPrecacheEvent", 1)
}
public fwFmPrecache(const szFile[])
{
ftD7Log(_, _, "Precached: ^"%s^".", szFile)
}
public fwFmPrecacheEvent(const iType, const szFile[])
{
ftD7Log(_, _, "Precached: ^"%s^".", szFile)
}