From 843440d1e382f909d066c82d2269df67251b35f9 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 7 Jan 2024 14:01:37 +0100 Subject: player damage indicator and health regen --- include/players.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/players.h') diff --git a/include/players.h b/include/players.h index b9b5710..efafd2b 100644 --- a/include/players.h +++ b/include/players.h @@ -12,8 +12,9 @@ #define MAX_PLAYERS 5 #define MAX_POINT_ANIMATIONS 10 - +#define PLAYER_HEAL_DELAY 2.0f #define GUN_OFFSET_FROM_PLAYER 0.8f +#define PLAYER_HEALTH_REGEN_PER_SEC 200 typedef enum t_player_interact_state { INTERACT_IDLE, @@ -47,6 +48,7 @@ typedef struct t_player { s32 health; s32 max_health; float sec_since_last_shot; + float sec_since_last_damage_taken; player_interact_state interact_state; float sec_since_interact_state_change; float playerx; -- cgit v1.2.3-70-g09d2