- *ragdoll;
- u32 ragdoll_count;
-
- int shoes[2];
-};
-
-static int character_load( struct character *ch, const char *name )
-{
- char buf[64];
-
- snprintf( buf, sizeof(buf)-1, "models/%s.mdl", name );
- mdl_header *src = mdl_load( buf );
-
- if( !src )
- return 0;
+ vg_release_thread_sync();
+
+ /* load in reference player model, with animations and such */
+ mdl_open( &player.mdl.meta, "models/ch_new.mdl" );
+ mdl_load_metadata( &player.mdl.meta, vg_mem.rtmemory );
+ mdl_load_anim_data( &player.mdl.meta, vg_mem.rtmemory );
+
+ vg_linear_clear( vg_mem.scratch );
+ mdl_load_mesh_data( &player.mdl.meta, vg_mem.scratch );
+ mdl_close( &player.mdl.meta );
+
+ /*
+ * load in other player models. This may need to be more sophisticated in
+ * the futre if we have more of these guys
+ */
+ mdl_context ctx_outlaw,
+ ctx_jordan;
+
+ mdl_open( &ctx_outlaw, "models/ch_outlaw.mdl" );
+ mdl_load_metadata( &ctx_outlaw, vg_mem.scratch );
+ mdl_load_mesh_data( &ctx_outlaw, vg_mem.scratch );
+ mdl_close( &ctx_outlaw );
+
+ mdl_open( &ctx_jordan, "models/ch_jordan.mdl" );
+ mdl_load_metadata( &ctx_jordan, vg_mem.scratch );
+ mdl_load_mesh_data( &ctx_jordan, vg_mem.scratch );
+ mdl_close( &ctx_jordan );