From 4e378fe6a3aacb398d88865b833b12e3dbd194a3 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 28 Oct 2023 11:12:22 +0200 Subject: player reloading delay --- include/guns.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/guns.h') diff --git a/include/guns.h b/include/guns.h index 2c22c00..2ea0d1e 100644 --- a/include/guns.h +++ b/include/guns.h @@ -18,12 +18,13 @@ typedef struct t_gun { int bullets_per_shot; float shots_per_second; int damage; + float reload_time; } gun; gun guns[GUN_ALL] = { - {GUN_DESERTEAGLE, "Desert Eagle", 8, 64, 0.0f, 1, 4.0f, 350}, - {GUN_MP5, "MP5", 30, 120, 0.1f, 1, 10.0f, 150}, - {GUN_NOVA, "Nova", 12, 80, 0.2f, 3, 1.2f, 600}, + {GUN_DESERTEAGLE, "Desert Eagle", 8, 64, 0.0f, 1, 4.0f, 350, 1.0f}, + {GUN_MP5, "MP5", 30, 120, 0.1f, 1, 10.0f, 150, 1.0f}, + {GUN_NOVA, "Nova", 12, 80, 0.2f, 3, 1.2f, 600, 1.0f}, }; image* get_image_of_gun(gun_type type); -- cgit v1.2.3-70-g09d2