From: terencehill Date: Wed, 12 Jul 2023 15:22:46 +0000 (+0200) Subject: Define a proper sound for the darkness effect X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3b29e36d297eece5600ce23adcbc438a4e652339;p=xonotic%2Fxonotic-data.pk3dir.git Define a proper sound for the darkness effect --- diff --git a/qcsrc/common/mutators/mutator/nades/nades.qc b/qcsrc/common/mutators/mutator/nades/nades.qc index a5cbab32bd..6e3f8a23ce 100644 --- a/qcsrc/common/mutators/mutator/nades/nades.qc +++ b/qcsrc/common/mutators/mutator/nades/nades.qc @@ -57,7 +57,7 @@ MUTATOR_HOOKFUNCTION(cl_nades, HUD_Draw_overlay) if (STAT(NADE_DARKNESS_TIME) > time) { if (!darkblink) - localcmd("play2 sound/misc/blind\n"); + sound(csqcplayer, CH_PAIN, SND_BLIND, VOL_BASE, ATTEN_NORM); darkblink = true; M_ARGV(0, vector) = NADE_TYPE_DARKNESS.m_color; HUD_DarkBlinking(); diff --git a/qcsrc/common/sounds/all.inc b/qcsrc/common/sounds/all.inc index d8d60c4a12..f4277a666d 100644 --- a/qcsrc/common/sounds/all.inc +++ b/qcsrc/common/sounds/all.inc @@ -279,8 +279,7 @@ SOUND(SPAWN, "misc/spawn"); SOUND(TALK, "misc/talk"); SOUND(TALK2, "misc/talk2"); +SOUND(BLIND, "misc/blind"); SOUND(TELEPORT, "misc/teleport"); - SOUND(INVSHOT, "misc/invshot"); - SOUND(JETPACK_FLY, "misc/jetpack_fly");