diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/players.h | 3 | ||||
| -rw-r--r-- | include/protocol.h | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/players.h b/include/players.h index d34f83a..1ef7d28 100644 --- a/include/players.h +++ b/include/players.h @@ -39,6 +39,8 @@ typedef struct t_player { float playery; float gunx; float guny; + float dirx; + float diry; float gun_height; player_direction direction; int total_ammo; @@ -49,7 +51,6 @@ typedef struct t_player { int kills; u64 ping; sprite sprite; - vec3f velocity; network_state connection_state; struct { int grenades; diff --git a/include/protocol.h b/include/protocol.h index 5074abd..51d6fb8 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -117,6 +117,8 @@ typedef struct t_protocol_user_look u32 id; float gunx; float guny; + float dirx; + float diry; } protocol_user_look; #include "bullets.h" @@ -159,7 +161,7 @@ network_message create_protocol_get_id_down(u32 id); network_message create_protocol_sound_list(); network_message create_protocol_user_list(); network_message create_protocol_user_moved(protocol_move_type move, u32 id); -network_message create_protocol_user_look(u32 id, float gunx, float guny); +network_message create_protocol_user_look(u32 id, float gunx, float guny, float dirx, float diry); network_message create_protocol_user_shoot(u32 id, float dirx, float diry); network_message create_protocol_user_throw(u32 id, float dirx, float diry, throwable_type type); network_message create_protocol_zombie_list(); |
