From ddcd60881a73860c9c4d4dd895196221dfdd4aef Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Tue, 26 Dec 2023 21:24:38 +0100 Subject: gun --- include/asset_defs.h | 4 +++- include/guns.h | 2 ++ include/players.h | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/asset_defs.h b/include/asset_defs.h index dabb766..6202125 100644 --- a/include/asset_defs.h +++ b/include/asset_defs.h @@ -43,7 +43,9 @@ image* img_molotov_explode; // Players image* img_helmet; image* img_body; -image* img_body2; + +// Guns +image* img_gun_mp5; // Other image* img_zombie_chunk_hand; diff --git a/include/guns.h b/include/guns.h index 52f4a10..1765159 100644 --- a/include/guns.h +++ b/include/guns.h @@ -27,7 +27,9 @@ gun guns[GUN_ALL] = { {GUN_NOVA, "Nova", 12, 80, 0.1f, 3, 1.2f, 600, 1.0f}, }; +float get_gun_size(gun_type type); image* get_image_of_gun(gun_type type); +image* get_icon_of_gun(gun_type type); gun get_gun_by_type(gun_type type); #endif \ No newline at end of file diff --git a/include/players.h b/include/players.h index dc74a26..44cf8b1 100644 --- a/include/players.h +++ b/include/players.h @@ -63,6 +63,7 @@ typedef struct t_player { int kills; u64 ping; sprite sprite; + sprite gun_sprite; network_state connection_state; u32 points; struct { -- cgit v1.2.3-70-g09d2