View Single Post
jim_yang
Veteran Member
Join Date: Aug 2006
Old 09-09-2010 , 01:16   Re: How do you patch your hl1.dll to increase the precache limit?
Reply With Quote #9

Code:
while ( dword_2166F90[v4] )
{
    if ( !sub_1D355F0((signed int *)dword_2166F90[v4], v2) )
        goto LABEL_20;
    ++v4;
    if ( v4 >= 512 )
    {
        sub_1D4E8F0("PF_precache_model_I: Model '%s' failed to precache because the item count is over the %d limit.\nReduce the number of brush models and/or regular models in the map to correct this.", v2, 512);
        return 0;
    }
}
part of the precache model function, you see that "dword_2166F90[ ]" this array is declared using 512 for its size, so when v4 goes above 512, this array overflowed, how can you store value when index is over 512, enlarge the array? As I can see, there are more arrays using 512 and related to the precache stuff.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline