summaryrefslogtreecommitdiff
path: root/src/game/bg_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/bg_misc.c')
-rw-r--r--src/game/bg_misc.c28
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;
+}
/*
==============