diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-10-28 11:37:10 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-10-28 11:37:10 +0200 |
| commit | 06d520eb39b2448ee08dce9010651a423115c798 (patch) | |
| tree | 48fe7995ebccb381751acde2b18541bfbfa51d3f /src/bullets.c | |
| parent | 4e378fe6a3aacb398d88865b833b12e3dbd194a3 (diff) | |
reload sound
Diffstat (limited to 'src/bullets.c')
| -rw-r--r-- | src/bullets.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bullets.c b/src/bullets.c index 47171bb..d1c8d97 100644 --- a/src/bullets.c +++ b/src/bullets.c @@ -21,6 +21,7 @@ void shoot(platform_window* window, u32 id, float dirx, float diry) { if (bullets_to_shoot > p->ammo_in_mag) bullets_to_shoot = p->ammo_in_mag; p->ammo_in_mag -= bullets_to_shoot; if (p->ammo_in_mag == 0) { + play_positioned_sound(CHANNEL_SHOOTING, wav_reload_mp5, (vec3f){.x = p->playerx, .y = p->playery, .z = p->height}, 10); p->interact_state = INTERACT_RELOADING; p->sec_since_interact_state_change = 0; return; |
