X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player.h;h=50929831ef0c81d93c79f8f94d11342500ec4f5f;hb=c4c762ce6f3bbdcb770bbc42e349aebbc3390d9d;hp=85bca0a8258a5f13aa067d14d3de5fba4ad5fb3c;hpb=5a6199fecf8afcff4b4ef2d341a0dfd0e220420d;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player.h b/player.h index 85bca0a..5092983 100644 --- a/player.h +++ b/player.h @@ -6,7 +6,7 @@ #include "player_common.h" #include "player_walk.h" #include "player_skate.h" -//#include "player_dead.h" +#include "player_dead.h" struct player_instance { @@ -28,25 +28,24 @@ struct player_instance camera_mode; float camera_type_blend; -#if 0 - struct - { - v3f co, angles; - } - cam1, cam3; -#endif - - v3f follow_pos, - follow_angles, - follow_pos_target, - follow_angles_target, - override_pos, - override_angles, - fpv_pos, - fpv_angles; - float cam_position_override_strength, - cam_angles_override_strength; + v3f fpv_offset, /* expressed relative to rigidbody */ + tpv_offset, + fpv_viewpoint, /* expressed relative to neck bone inverse final */ + fpv_offset_smooth, + fpv_viewpoint_smooth, + tpv_offset_smooth, + tpv_lpf, + cam_velocity_smooth; + + float cam_velocity_influence, + cam_velocity_coefficient, + cam_velocity_constant, + cam_velocity_coefficient_smooth, + cam_velocity_constant_smooth, + cam_velocity_influence_smooth, + cam_land_punch, + cam_land_punch_v; teleport_gate *gate_waiting; @@ -60,6 +59,9 @@ struct player_instance *input_js2v, *input_jump, *input_push, + *input_trick0, + *input_trick1, + *input_trick2, *input_walk, *input_walkh, *input_walkv, @@ -78,6 +80,9 @@ struct player_instance struct player_ragdoll ragdoll; vg_tex2d *playertex; + player_pose holdout_pose; + float holdout_time; + /* * Subsystems * ------------------------------------------------- @@ -93,7 +98,7 @@ struct player_instance struct player_skate _skate; struct player_walk _walk; - //struct player_dead _dead; + struct player_dead _dead; }; /* @@ -130,7 +135,7 @@ void( *_player_update[])( player_instance *player ) = { player__walk_update, player__skate_update, - NULL + player__dead_update, }; VG_STATIC @@ -154,7 +159,7 @@ void( *_player_animate[])( player_instance *player, player_animation *dest ) = { player__walk_animate, player__skate_animate, - NULL + player__dead_animate }; VG_STATIC @@ -162,7 +167,7 @@ void( *_player_post_animate[])( player_instance *player ) = { player__walk_post_animate, player__skate_post_animate, - NULL + player__dead_post_animate }; /* implementation */ @@ -171,7 +176,7 @@ void( *_player_post_animate[])( player_instance *player ) = #include "player_common.c" #include "player_walk.c" #include "player_skate.c" -//#include "player_dead.c" +#include "player_dead.c" #endif /* PLAYER_H */