Track special modelindexes.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3052 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2008-11-09 23:10:28 +00:00
parent dce284811e
commit c6aca04939

View file

@ -1683,6 +1683,18 @@ void ParseMessage(sv_t *tv, void *buffer, int length, int to, int mask)
break;
tv->numinlines = j;
}
tv->modelindex_player = 0;
tv->modelindex_spike = 0;
for (j = 2; j < 256; j++)
{
if (!*tv->modellist[j].name)
break;
if (!strcmp(tv->modellist[j].name, "progs/player.mdl"))
tv->modelindex_player = j;
if (!strcmp(tv->modellist[j].name, "progs/spike.mdl"))
tv->modelindex_spike = j;
}
strcpy(tv->status, "Prespawning\n");
}
ConnectionData(tv, (void*)((char*)buf.data+buf.startpos), buf.readpos - buf.startpos, to, mask, QW);