Source/ThunderBeast/QuakeToon/server/sv_game.c
void PF_setmodel (edict_t *ent, char *name)
{
	int		i;
	cmodel_t	*mod;

	if (!name)
		Com_Error (ERR_DROP, "PF_setmodel: NULL");

	i = SV_ModelIndex (name);
		
//	ent->model = name;
	ent->s.modelindex = i;

// if it is an inline model, get the size information for it
	if (name[0] == '*')
	{
		mod = CM_InlineModel (name);
		VectorCopy (mod->mins, ent->mins);
		VectorCopy (mod->maxs, ent->maxs);
		SV_LinkEdict (ent);
	}

}
/*
=================
PF_setmodel

Also sets mins and maxs for inline bmodels
=================
*/
PF_setmodel
Also sets mins and maxs for inline bmodels
PF_setmodel Also sets mins and maxs for inline bmodels
void PF_setmodel (edict_t *ent, char *name)
{
	int		i;
	cmodel_t	*mod;
	if (!name)
		Com_Error (ERR_DROP, "PF_setmodel: NULL");
	i = SV_ModelIndex (name);
	ent->s.modelindex = i;
	if (name[0] == '*')
	{
		mod = CM_InlineModel (name);
		VectorCopy (mod->mins, ent->mins);
		VectorCopy (mod->maxs, ent->maxs);
		SV_LinkEdict (ent);
	}
}
void PF_setmodel ( edict_t * ent , char * name ) { int i ; cmodel_t * mod ; if ( ! name ) Com_Error ( ERR_DROP , " " ) ; i = SV_ModelIndex ( name ) ; ent -> s . modelindex = i ; if ( name [ 0 ] == ' ' ) { mod = CM_InlineModel ( name ) ; VectorCopy ( mod -> mins , ent -> mins ) ; VectorCopy ( mod -> maxs , ent -> maxs ) ; SV_LinkEdict ( ent ) ; } }
PF_setmodel
Also sets mins and maxs for inline bmodels
PF_setmodel Also sets mins and maxs for inline bmodels
//	ent->model = name; // if it is an inline model, get the size information for it