summaryrefslogtreecommitdiff
path: root/include/guns.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-10-28 11:12:22 +0200
committerAldrik Ramaekers <aldrik@amftech.nl>2023-10-28 11:12:22 +0200
commit4e378fe6a3aacb398d88865b833b12e3dbd194a3 (patch)
treeba245c0f0f52a81a77a76c927f4d5118e7b3c1ea /include/guns.h
parent18c1dfbb78d98516f5480f8199910fe41ac904df (diff)
player reloading delay
Diffstat (limited to 'include/guns.h')
-rw-r--r--include/guns.h7
1 files changed, 4 insertions, 3 deletions
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);