Raised This Month: $ Target: $400
 0% 

What is precache Manager?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 02-25-2015 , 16:41   What is precache Manager?
Reply With Quote #1

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?
Spirit_12 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 02-25-2015 , 16:52   Re: What is precache Manager?
Reply With Quote #2

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.
__________________
Kia is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 02-25-2015 , 17:03   Re: What is precache Manager?
Reply With Quote #3

Quote:
Originally Posted by Kia View Post
What plugins are you talking about? Link?
https://forums.alliedmods.net/showthread.php?t=66833
https://forums.alliedmods.net/showthread.php?p=596438
Spirit_12 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 02-25-2015 , 17:22   Re: What is precache Manager?
Reply With Quote #4

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)
__________________
Jhob94 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-25-2015 , 19:48   Re: What is precache Manager?
Reply With Quote #5

Quote:
Originally Posted by Jhob94 View Post
You can unprecache stuff like this:
Correction, for clarity, it doesn't unprecache anything, it prevents it from being precached in the first place.
__________________

Last edited by fysiks; 02-25-2015 at 23:11.
fysiks is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 02-25-2015 , 22:46   Re: What is precache Manager?
Reply With Quote #6

Thanks for all the replies, but my question still remains unanswered.

What is the benefit of using those plugins?
Spirit_12 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-25-2015 , 23:13   Re: What is precache Manager?
Reply With Quote #7

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).
__________________
fysiks is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 02-26-2015 , 04:17   Re: What is precache Manager?
Reply With Quote #8

Or be smart, be safe and install Hornet precache count and get a better control over your server avoiding 512 limit
__________________
Jhob94 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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