diff options
author | Tim Angus <tim@ngus.net> | 2001-02-02 02:05:01 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2001-02-02 02:05:01 +0000 |
commit | a08a8afb56a82cff489f82cdec1b802c76d0326e (patch) | |
tree | 5ac6c7fe67453222a9632684ef9f5ad2dc965c26 /src/game/bg_misc.c | |
parent | 4506d6a566309f62eb3db1bcf0d8b9a4fc4eaa1d (diff) |
Changed model precache system. A steaming pile of transnetwork bugfixes.
Diffstat (limited to 'src/game/bg_misc.c')
-rw-r--r-- | src/game/bg_misc.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c index b4ca57c8..25ade6fd 100644 --- a/src/game/bg_misc.c +++ b/src/game/bg_misc.c @@ -889,6 +889,34 @@ Only in CTF games int bg_numItems = sizeof(bg_itemlist) / sizeof(bg_itemlist[0]) - 1; +classModelName_t bg_pModelList[ ] = +{ + { PCL_D_O_BASE, "klesk" }, + { PCL_D_D_BASE, "orbb" }, + { PCL_D_B_BASE, "lucy" }, + { PCL_H_BASE, "sarge" }, +}; + +int bg_numPModels = sizeof( bg_pModelList ) / sizeof( bg_pModelList[ 0 ] ); + +/* +============== +BG_FindModelNameForClass +============== +*/ +char *BG_FindModelNameForClass( int pclass ) +{ + int i; + + for( i = 0; i < bg_numPModels; i++ ) + { + if( bg_pModelList[ i ].classNum == pclass ) + return bg_pModelList[ i ].className; + } + + //wimp out + return bg_pModelList[ 0 ].className; +} /* ============== |