Index: /branches/bsp_model/src/lib/graphics/importer/md3/md3_animation_cfg.h
===================================================================
--- /branches/bsp_model/src/lib/graphics/importer/md3/md3_animation_cfg.h	(revision 8590)
+++ /branches/bsp_model/src/lib/graphics/importer/md3/md3_animation_cfg.h	(revision 8591)
@@ -10,4 +10,6 @@
 
 #include "vector.h"
+
+#include "base_object.h"
 
 #include <string>
@@ -27,5 +29,5 @@
    * a class with metadata describing an MD3 model animation
    */
-  class MD3AnimationCfg
+  class MD3AnimationCfg : public BaseObject
   {
 
Index: /branches/bsp_model/src/lib/graphics/importer/md3/md3_model.cc
===================================================================
--- /branches/bsp_model/src/lib/graphics/importer/md3/md3_model.cc	(revision 8590)
+++ /branches/bsp_model/src/lib/graphics/importer/md3/md3_model.cc	(revision 8591)
@@ -79,13 +79,10 @@
   void MD3Model::autoAssemblePlayerModel(std::string filename, float scaling)
   {
-//     this->md3Data = new MD3Data(filename, filename, scaling);
-//     MD3AnimationCfg cfg("/home/boenzlip/tmp/q3/Downloads/MOH/q3mdl-alien3/models/players/alien3/animation.cfg");
+    std::string cfgName(filename + "/animation.cfg");
+    this->config = (MD3AnimationCfg*)ResourceManager::getInstance()->load(cfgName, MD3_CONFIG, RP_GAME);
 
 
     //first load the torso
     std::string name(filename + "/upper.md3");
-    PRINTF(0)("data dir: %s\n", ResourceManager::getInstance()->getFullName(name).c_str());
-
-//     this->md3Data = new MD3Data(name, name, scaling);
     this->md3Data = (MD3Data*)ResourceManager::getInstance()->load(name, MD3, RP_GAME, name, scaling);
 
Index: /branches/bsp_model/src/lib/graphics/importer/md3/md3_model.h
===================================================================
--- /branches/bsp_model/src/lib/graphics/importer/md3/md3_model.h	(revision 8590)
+++ /branches/bsp_model/src/lib/graphics/importer/md3/md3_model.h	(revision 8591)
@@ -21,4 +21,5 @@
 class MD3Mesh;
 class MD3Tag;
+class MD3AnimationCfg;
 
 struct MD3Normal;
@@ -65,4 +66,5 @@
     float**             tmpMatrix;         //!< a temporary matrix
 
+    MD3AnimationCfg*    config;            //!< the config file parsed
 };
 
Index: /branches/bsp_model/src/lib/util/loading/resource_manager.cc
===================================================================
--- /branches/bsp_model/src/lib/util/loading/resource_manager.cc	(revision 8590)
+++ /branches/bsp_model/src/lib/util/loading/resource_manager.cc	(revision 8591)
@@ -29,4 +29,5 @@
 #include "md2/md2Model.h"
 #include "md3/md3_data.h"
+#include "md3/md3_animation_cfg.h"
 #endif /* NO_MODEL */
 #ifndef NO_TEXTURES
@@ -204,4 +205,6 @@
   else if (!strncmp(fileName.c_str()+(fileName.size()-4), ".md3", 4))
     tmpType = MD3;
+  else if (!strncmp(fileName.c_str()+(fileName.size()-4), ".cfg", 4))
+    tmpType = MD3_CONFIG;
   else if (!strcasecmp(fileName.c_str(), "cube") ||
             !strcasecmp(fileName.c_str(), "sphere") ||
@@ -406,8 +409,15 @@
       if(File(fullName).isFile())
       {
-        PRINTF(0)("md3 load\n");
         tmpResource->param[0] = param0;
         tmpResource->param[1] = param1;
         tmpResource->pointer = new md3::MD3Data(fullName, tmpResource->param[0].getCString(), tmpResource->param[1].getFloat());
+      }
+      break;
+    case MD3_CONFIG:
+      if(File(fullName).isFile())
+      {
+        tmpResource->param[0] = param0;
+        tmpResource->param[1] = param1;
+        tmpResource->pointer = new md3::MD3AnimationCfg(fullName);
       }
       break;
@@ -640,4 +650,10 @@
             match = true;
           else if ((*resource)->param[0] == ((MultiType)param0).getString() && (*resource)->param[1] == ((MultiType)param1).getFloat())
+            match = true;
+          break;
+        case MD3_CONFIG:
+          if (param0 == MT_NULL && ((*resource)->param[0] == ""))
+            match = true;
+          else if ((*resource)->param[0] == ((MultiType)param0).getString())
             match = true;
           break;
@@ -883,4 +899,5 @@
     "MD2-Data",
     "MD3-Data",
+    "MD3-Config"
 #endif
 #ifndef NO_TEXT
Index: /branches/bsp_model/src/lib/util/loading/resource_manager.h
===================================================================
--- /branches/bsp_model/src/lib/util/loading/resource_manager.h	(revision 8590)
+++ /branches/bsp_model/src/lib/util/loading/resource_manager.h	(revision 8591)
@@ -34,4 +34,5 @@
   MD2,                  //!< loading md2-file
   MD3,                  //!< loading md3-file
+  MD3_CONFIG,           //!< the md3 config file
 #endif /* NO_MODEL */
 #ifndef NO_TEXT
