Raised This Month: $ Target: $400
 0% 

Precaching the same file


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 02-19-2011 , 04:20   Precaching the same file
Reply With Quote #1

If I precache a model/sound and then precache that same model/sound, will it actually precache the file, or will it skip over it?
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-19-2011 , 04:35   Re: Precaching the same file
Reply With Quote #2

It will be skipped.

It does basically that : looping through models/sounds array and check if the file provided exists, if so, it returns its index, if not, loading the file and returning its index.
__________________
Arkshine is offline
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 02-19-2011 , 05:22   Re: Precaching the same file
Reply With Quote #3

okay, thanks, I thought it would be smart enough to do that, but I had no idea. I will be precaching a lot of files (potentially some of the same), but I was worrying I might easily break the limit.
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant 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 06:27.


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