mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-28 22:52:02 +00:00
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:
parent
dce284811e
commit
c6aca04939
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue