AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   What is precache Manager? (https://forums.alliedmods.net/showthread.php?t=258843)

Spirit_12 02-25-2015 16:41

What is precache Manager?
 
I have seen some plugins on the forum that claim to be precache managers, but what does that exactly mean?

I have a few questions in regards to this, hopefully someone can answer.


  • How is that any different from plugin_precache function?
  • Do they change the 512 entity limit? Don't think so, but just wanna make sure.
  • When we join a server, it precaches all the models and stuff, but lets say I'm using ZP with all custom models. Would these plugins be able to remove the stock weapon precaching?

Kia 02-25-2015 16:52

Re: What is precache Manager?
 
What plugins are you talking about? Link?
I only know HamletEagle's Plugin being able to replace a default model with a new one without taking another precache slot.

Spirit_12 02-25-2015 17:03

Re: What is precache Manager?
 
Quote:

Originally Posted by Kia (Post 2266557)
What plugins are you talking about? Link?

https://forums.alliedmods.net/showthread.php?t=66833
https://forums.alliedmods.net/showthread.php?p=596438

Jhob94 02-25-2015 17:22

Re: What is precache Manager?
 
You can unprecache stuff like this:
PHP Code:

#include <amxmodx>
#include <fakemeta>

public plugin_precache()
{
    
register_forward(FM_PrecacheModel "fw_PrecacheModel")
}

public 
fw_PrecacheModel(const Model[])
{
    if(
equal(Model"models/v_knife.mdl"// This would unprecache knife model
        
return FMRES_SUPERCEDE
            
    
return FMRES_HANDLED


Yet, i heard it might not unprecache all the files all the time.

About precache limit, it also depends on the map you are playing because each map has it's own precache. So you need a realistic precache counter. Search posts by Hornet, he made a cool precache counter that counts every precached file. (It requires Orpheu, amxx by default can't count all the precaches)

fysiks 02-25-2015 19:48

Re: What is precache Manager?
 
Quote:

Originally Posted by Jhob94 (Post 2266567)
You can unprecache stuff like this:

Correction, for clarity, it doesn't unprecache anything, it prevents it from being precached in the first place.

Spirit_12 02-25-2015 22:46

Re: What is precache Manager?
 
Thanks for all the replies, but my question still remains unanswered.

What is the benefit of using those plugins?

fysiks 02-25-2015 23:13

Re: What is precache Manager?
 
It allows you to prevent unused resources from being precached so you can precache others instead (only necessary when you get to that 512 limit).

Jhob94 02-26-2015 04:17

Re: What is precache Manager?
 
Or be smart, be safe and install Hornet precache count and get a better control over your server avoiding 512 limit


All times are GMT -4. The time now is 02:56.

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