Lines Matching refs:model_cache

3709 			if(model_cache[i].model == current){  in nextplayermodel()
3718 if(model_cache[i].model && model_cache[i].model->type==TYPE_PLAYER && in nextplayermodel()
3719 (allow_secret_chars || !model_cache[i].model->secret) && in nextplayermodel()
3720 model_cache[i].model->clearcount<=bonus && model_cache[i].selectable){ in nextplayermodel()
3722 return model_cache[i].model; in nextplayermodel()
3737 if(model_cache[i].model == current){ in prevplayermodel()
3746 if(model_cache[i].model && model_cache[i].model->type==TYPE_PLAYER && in prevplayermodel()
3747 (allow_secret_chars || !model_cache[i].model->secret) && in prevplayermodel()
3748 model_cache[i].model->clearcount<=bonus && model_cache[i].selectable){ in prevplayermodel()
3750 return model_cache[i].model; in prevplayermodel()
3763 if(!which || (model_cache[i].model && model_cache[i].model->type == TYPE_PLAYER)) in reset_playable_list()
3765 model_cache[i].selectable = which; in reset_playable_list()
3788 model_cache[index].selectable = 1; in load_playable_list()
4000 model_cache[model->index].model = NULL; in free_model()
4186 if(buffer_pakfile(model_cache[index].path, &buf, &size)!=1) return; in _peek_model_name()
4198 free(model_cache[index].name); in _peek_model_name()
4199 model_cache[index].name = NULL; in _peek_model_name()
4201 model_cache[index].name = malloc(len + 1); in _peek_model_name()
4202 strcpy(model_cache[index].name, value); in _peek_model_name()
4203 model_cache[index].name[len] = 0; in _peek_model_name()
4219 if(model_cache== NULL || size + 1 > cache_map_max_items ) in prepare_cache_map()
4222 printf("%s %p\n", "prepare_cache_map was", model_cache); in prepare_cache_map()
4229 model_cache = realloc(model_cache, sizeof(s_modelcache) * cache_map_max_items); in prepare_cache_map()
4230 if(model_cache == NULL) shutdown(1, "Out Of Memory! Failed to create a new cache_map\n"); in prepare_cache_map()
4239 memset(&model_cache[models_cached], 0, sizeof(s_modelcache)); in cache_model()
4242 model_cache[models_cached].name = malloc(len + 1); in cache_model()
4243 strcpy(model_cache[models_cached].name, name); in cache_model()
4244 model_cache[models_cached].name[len] = 0; in cache_model()
4247 model_cache[models_cached].path = malloc(len + 1); in cache_model()
4248 strcpy(model_cache[models_cached].path, path); in cache_model()
4249 model_cache[models_cached].path[len] = 0; in cache_model()
4251 model_cache[models_cached].loadflag = flag; in cache_model()
4260 if(model_cache != NULL) in free_modelcache()
4265 free(model_cache[models_cached].name); in free_modelcache()
4266 model_cache[models_cached].name = NULL; in free_modelcache()
4267 free(model_cache[models_cached].path); in free_modelcache()
4268 model_cache[models_cached].path = NULL; in free_modelcache()
4270 free(model_cache); in free_modelcache()
4271 model_cache = NULL; in free_modelcache()
4281 if(stricmp(name, model_cache[i].name)==0) return i; in get_cached_model_index()
4291 if(stricmp(name, model_cache[i].name)==0) return model_cache[i].path; in get_cached_model_path()
4305 model_cache[cacheindex].model = newchar; in lcmHandleCommandName()
4306 newchar->name = model_cache[cacheindex].name; in lcmHandleCommandName()
4756 newchar->name = model_cache[cacheindex].name; // well give it a name for sort method in init_model()
4789 …newchar->path = model_cache[cacheindex].path; // Record path, so script can … in init_model()
4994 filename = model_cache[cacheindex].path; in load_cached_model()
7866 if(model_cache[i].loadflag) { in load_models()
7867 load_cached_model(model_cache[i].name, "models.txt", 0); in load_models()
11197 model = model_cache[index].model; in spawn()
13670 if(index>=0) newmodel = model_cache[index].model; in set_model_ex()