From 33f39cd8ef08db0007c9690992bad99edbaa1795 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 7 Jan 2024 12:24:38 +0100 Subject: zombie hit player --- include/players.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/players.h') diff --git a/include/players.h b/include/players.h index 7607788..b9b5710 100644 --- a/include/players.h +++ b/include/players.h @@ -44,6 +44,8 @@ typedef struct t_point_animation typedef struct t_player { u32 id; bool active; + s32 health; + s32 max_health; float sec_since_last_shot; player_interact_state interact_state; float sec_since_interact_state_change; @@ -92,6 +94,7 @@ object check_if_player_collided_with_object(player p); float get_player_size(platform_window* window); void move_user(platform_window* window, u32 id, protocol_move_type move, float delta); void update_players_server(); +void hurt_player(u32 id, u32 damage); void spawn_player(u32 id, network_client client); bool player_has_old_session(u32 id); void rejoin_player(u32 id, network_client client); -- cgit v1.2.3-70-g09d2