summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-11-05 13:21:22 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2023-11-05 13:21:22 +0100
commitdc81516d860885e7e6b75c4ad978a09a2efb705d (patch)
treeba90215f2aed47f4688e8c91924e6463fca1beda /include
parent812da60594a9371b6883acacfd10b6be50673b4a (diff)
bullet cone
Diffstat (limited to 'include')
-rw-r--r--include/players.h3
-rw-r--r--include/protocol.h4
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();