summaryrefslogtreecommitdiff
path: root/include/guns.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-14 17:08:23 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-14 17:08:23 +0100
commitee4906ef5fc89f3f10cd6aaf95845a0ae9b2f47e (patch)
tree83abd90aca3de2f6bceac8ef742e6c5eb0688bb2 /include/guns.h
parent99f328fa19bb9cb266d9525629813cc0268a889e (diff)
render order fix for bullets, ammo implementation
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 62d43df..0363cae 100644
--- a/include/guns.h
+++ b/include/guns.h
@@ -11,6 +11,7 @@ typedef enum t_gun_type {
typedef struct t_gun {
gun_type type;
+ char* name;
int magazine_size;
int max_ammunition;
float bullet_spread;
@@ -19,9 +20,9 @@ typedef struct t_gun {
} gun;
gun guns[GUN_ALL] = {
- {GUN_DESERTEAGLE, 8, 64, 0.0f, 1, 4.0f},
- {GUN_MP5, 30, 120, 0.1f, 1, 10.0f},
- {GUN_NOVA, 12, 80, 0.2f, 3, 1.2f},
+ {GUN_DESERTEAGLE, "Desert Eagle", 8, 64, 0.0f, 1, 4.0f},
+ {GUN_MP5, "MP5", 30, 120, 0.1f, 1, 10.0f},
+ {GUN_NOVA, "Nova", 12, 80, 0.2f, 3, 1.2f},
};
gun get_gun_by_type(gun_type type);