diff options
author | Tim Angus <tim@ngus.net> | 2002-03-22 05:09:05 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2002-03-22 05:09:05 +0000 |
commit | b32f0fa9fd74a9cfa65f1197898b59142def161d (patch) | |
tree | 1ed731a11e57f418a78bc8f3e3260e621a6d1e21 /src/game/g_main.c | |
parent | eaeff9ea91eae4755453396aafe30e6946c81262 (diff) |
Hud per class specified in bg_misc.c. Skin entry in class db now honoured
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r-- | src/game/g_main.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index 0561b484..112f1854 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -312,13 +312,17 @@ G_RegisterPlayerModels */ void G_RegisterPlayerModels( void ) { - char *s, *class; + char buffer[ MAX_INFO_STRING ]; + char *s; int i; for( i = PCL_NONE + 1; i < PCL_NUM_CLASSES; i++ ) { - class = BG_FindModelNameForClass( i ); - s = va("n\\%s%d\\t\\%i\\model\\%s\\hmodel\\%s\\g_redteam\\%s\\g_blueteam\\%s\\c1\\%s\\hc\\%i\\w\\%i\\l\\%i\\tt\\%d\\tl\\%d", "precache", i, 0, class, class, 0, 0, "7", 100, 0, 0, 0, 0); + Com_sprintf( buffer, MAX_INFO_STRING, "%s/%s", + BG_FindModelNameForClass( i ), BG_FindSkinNameForClass( i ) ); + s = va( "n\\%s%d\\t\\%i\\model\\%s\\hmodel\\%s\\g_redteam\\%s\\" + "g_blueteam\\%s\\c1\\%s\\hc\\%i\\w\\%i\\l\\%i\\tt\\%d\\tl\\%d", + "precache", i, 0, buffer, buffer, 0, 0, "7", 100, 0, 0, 0, 0); trap_SetConfigstring( CS_PRECACHES + i, s ); } |