Merge branch 'hyu-feedback' into 'master'

Add Hyudoro sounds

Closes #1030

See merge request KartKrew/Kart!1912
This commit is contained in:
Oni 2024-02-10 04:42:29 +00:00
commit da84a94362
2 changed files with 4 additions and 0 deletions

View file

@ -338,6 +338,7 @@ void Obj_GiveEmerald(mobj_t *emerald)
case MT_ITEMCAPSULE: // objects/hyudoro.c
// DMG_INSTAKILL to kill it without respawning later
P_KillMobj(emerald_award(emerald), emerald_orbit(emerald), emerald_orbit(emerald), DMG_INSTAKILL);
S_StartSound(emerald_orbit(emerald), sfx_kc3e);
if (emerald_orbit(emerald)->player)
{

View file

@ -581,6 +581,8 @@ hyudoro_patrol_hit_player
K_StripItems(player);
S_StartSound(toucher, sfx_s3k92);
/* do not make 1st place invisible */
if (player->position != 1)
{
@ -653,6 +655,7 @@ hyudoro_return_hit_player
// them until they use/lose it.
if (!award_immediately(hyu))
{
S_StartSound(hyudoro_target(hyu), sfx_kc3d);
hyudoro_mode(hyu) = HYU_HOVER;
append_hyudoro(&toucher->player->hoverhyudoro, hyu);
}