AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Questions about precache (https://forums.alliedmods.net/showthread.php?t=294138)

baneado 02-20-2017 16:48

Questions about precache
 
This can seem stupid question....
Precache count is increased by precaching two times the same model on different plugins?
I think the answer it's no.

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

georgik57 02-21-2017 03:12

Re: Questions about precache
 
2 Attachment(s)
Quote:

Originally Posted by baneado (Post 2496998)
Precache count is increased by precaching two times the same model on different plugins?

No.

Quote:

Originally Posted by baneado (Post 2496998)
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) }

baneado 02-21-2017 10:44

Re: Questions about precache
 
Very thanks :D

But how about plugins resources too?

georgik57 02-21-2017 11:09

Re: Questions about precache
 
Using Orpheu I guess. It's beyond my knowledge.

brlight 02-22-2017 06:38

Re: Questions about precache
 
Try this, but read the post!
https://forums.alliedmods.net/showpo...4&postcount=15


All times are GMT -4. The time now is 21:00.

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