fix da bugs
[carveJwlIkooP6JGAAIwe30JlM.git] / player_model.h
index 7bf801ce8f2935f232ca370c755d5ab75957cc5c..5982eaeb8f21c8abfdde34c064d7c80cd760ad13 100644 (file)
@@ -8,36 +8,18 @@
 #define VG_GAME
 #include "vg/vg.h"
 
-#if 0
-#include "player.h"
-#endif
-
 #include "model.h"
 #include "skeleton.h"
 #include "player_ragdoll.h"
 #include "rigidbody.h"
 
-#include "shaders/viewchar.h"
+#include "shaders/model_character_view.h"
 
 struct player_avatar
 {
    mdl_context meta;
    struct skeleton sk;
 
-   v3f cam_pos;   /* FIXME ? */
-
-#if 0
-   struct skeleton_anim *anim_stand,
-                        *anim_highg,
-                        *anim_slide,
-                        *anim_air,
-                        *anim_push,  *anim_push_reverse,
-                        *anim_ollie, *anim_ollie_reverse,
-                        *anim_grabs, *anim_stop,
-                        *anim_walk,  *anim_run, *anim_idle,
-                        *anim_jump;
-#endif
-
    u32 id_hip,
        id_ik_hand_l,
        id_ik_hand_r,
@@ -46,6 +28,8 @@ struct player_avatar
        id_head,
        id_ik_foot_l,
        id_ik_foot_r,
+       id_wheel_l,
+       id_wheel_r,
        id_board;
 };
 
@@ -74,6 +58,8 @@ VG_STATIC void player_avatar_load( struct player_avatar *av, const char *path )
    av->id_ik_foot_l  = skeleton_bone_id( sk, "foot.IK.L" );
    av->id_ik_foot_r  = skeleton_bone_id( sk, "foot.IK.R" );
    av->id_board      = skeleton_bone_id( sk, "board" );
+   av->id_wheel_l    = skeleton_bone_id( sk, "wheel.L" );
+   av->id_wheel_r    = skeleton_bone_id( sk, "wheel.R" );
 }
 
 #if 0