summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-12-05 20:21:44 -0800
committerVito Caputo <vcaputo@pengaru.com>2022-12-05 20:21:44 -0800
commitbbbff43ca835b91682eaeaff61b5968c1f27bb00 (patch)
tree17972065daf19dccad9aa9a3462f35ad28b6dc66 /src/game.c
parent645ba66e2dabafd6edda743347ce420174ec4274 (diff)
sfx,game: introduce adult_maskhit.wav sound effect
This plays whenever the adult gets hit by a virus while masked, without running out of masks.
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game.c b/src/game.c
index a507e49..0868350 100644
--- a/src/game.c
+++ b/src/game.c
@@ -658,7 +658,8 @@ static ix2_search_status_t virus_search(void *cb_context, ix2_object_t *ix2_obje
if (!--entity->adult.masked) {
(void) adult_node_new(&(stage_conf_t){ .stage = search->game->adult->entity.node, .replace = 1, .name = "adult-unmasked", .active = 1, .alpha = 1.f }, &search->game->sars->projection_x, &search->game->adult->entity.model_x);
sfx_play(sfx.adult_unmasked);
- }
+ } else
+ sfx_play(sfx.adult_maskhit);
(void) flash_entity(search->game, &entity->any, 4);
@@ -855,7 +856,8 @@ static ix2_search_status_t adult_search(void *cb_context, ix2_object_t *ix2_obje
if (!--game->adult->masked) {
(void) adult_node_new(&(stage_conf_t){ .stage = game->adult->entity.node, .replace = 1, .name = "adult-unmasked", .active = 1, .alpha = 1.f }, &game->sars->projection_x, &game->adult->entity.model_x);
sfx_play(sfx.adult_unmasked);
- }
+ } else
+ sfx_play(sfx.adult_maskhit);
(void) flash_entity(game, &game->adult->entity, 4);
reset_virus(&entity->virus);
© All Rights Reserved