summaryrefslogtreecommitdiff
path: root/include/players.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2024-01-07 14:01:37 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2024-01-07 14:01:37 +0100
commit843440d1e382f909d066c82d2269df67251b35f9 (patch)
treef462ce23f15cf204b4e066d61c6ebab3487b9020 /include/players.h
parent7cc854e55d7312c8ddcad42935271ebd9d5751a2 (diff)
player damage indicator and health regen
Diffstat (limited to 'include/players.h')
-rw-r--r--include/players.h4
1 files changed, 3 insertions, 1 deletions
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;