From d2c3f612b3d7b0071e98e589777d495ba45eafe4 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 29 Oct 2023 08:26:31 +0100 Subject: more sounds --- src/audio.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/audio.c') diff --git a/src/audio.c b/src/audio.c index b174610..c6f69b9 100644 --- a/src/audio.c +++ b/src/audio.c @@ -26,8 +26,8 @@ static int get_channel_from_audio_event_type(audio_event_type event) { switch (event) { case EVENT_BOUNCE_THROWABLE: return CHANNEL_THROWABLES; - case EVENT_SHOOT: - case EVENT_RELOAD: return CHANNEL_SHOOTING; + case EVENT_SHOOT: return CHANNEL_SHOOTING; + case EVENT_RELOAD: return CHANNEL_RELOAD; case EVENT_IMPACT: return CHANNEL_IMPACT; default: return 0; @@ -45,13 +45,15 @@ static Mix_Chunk* get_sample_from_audio_event(audio_event event, u32 playerid) { switch (p->guntype) { case GUN_MP5: return wav_shoot_mp5; + case GUN_NOVA: return wav_shoot_nova; default: return wav_error; } } case EVENT_RELOAD: { switch (p->guntype) { - case GUN_MP5: return wav_reload_mp5; + case GUN_MP5: return wav_reload_mp5; + case GUN_NOVA: return wav_reload_nova; default: return wav_error; } } -- cgit v1.2.3-70-g09d2