From db0e4bcfe0bcf99d5d21e74e0a1ccc0fc6977a26 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 6 Apr 2020 14:29:47 +0200 Subject: Weapons have different velocities --- inc/cub3d_defines.h | 3 +++ inc/cub3d_structs.h | 1 + 2 files changed, 4 insertions(+) (limited to 'inc') diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index 650f1fc..d24cc8d 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -316,6 +316,9 @@ enum # define FT_ENMY_STRT_LIFE 10 # define FT_ENMY_SIGHT_RANGE 8.5 # define FT_ENMY_DAMAGE_AMOUNT 14 +# define FT_WEAP_ONE_VEL 750.0 +# define FT_WEAP_TWO_VEL 400.0 +# define FT_WEAP_THREE_VEL 1500.0 # define FT_W_ONE_DANAGE_AMOUNT 5 # define FT_W_TWO_DANAGE_AMOUNT 3 # define FT_W_THREE_DANAGE_AMOUNT 4 diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 8d22b86..4666cf9 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -133,6 +133,7 @@ typedef struct s_player uint8_t has_weapon[3]; int8_t handles_weapon; int16_t ammo[3]; + float weap_vel[3]; } t_player; typedef struct s_ray -- cgit v1.2.3