+ {
+ vg_error( "Could not load model\n" );
+ return;
+ }
+
+ struct player_model temp;
+
+ mdl_unpack_glmesh( src, &temp.mesh );
+ skeleton_setup( &temp.sk, src );
+
+ /*
+ * Link animations
+ */
+ struct _load_anim
+ {
+ const char *name;
+ struct skeleton_anim **anim;
+ }
+ anims[] = {
+ { "pose_stand", &temp.anim_stand },
+ { "pose_highg", &temp.anim_highg },
+ { "pose_slide", &temp.anim_slide },
+ { "pose_air", &temp.anim_air },
+ { "push", &temp.anim_push },
+ { "push_reverse", &temp.anim_push_reverse },
+ { "ollie", &temp.anim_ollie },
+ { "ollie_reverse",&temp.anim_ollie_reverse },
+ { "grabs", &temp.anim_grabs },
+ { "walk", &temp.anim_walk },
+ { "run", &temp.anim_run },
+ { "idle_cycle", &temp.anim_idle },
+ { "jump", &temp.anim_jump }
+ };