]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Define a proper sound for the darkness effect
authorterencehill <piuntn@gmail.com>
Wed, 12 Jul 2023 15:22:46 +0000 (17:22 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 12 Jul 2023 15:22:46 +0000 (17:22 +0200)
qcsrc/common/mutators/mutator/nades/nades.qc
qcsrc/common/sounds/all.inc

index a5cbab32bdf06af141309a244ab35763ea46dda4..6e3f8a23ce2004bd462590af6ac997264dac6ab5 100644 (file)
@@ -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();
index d8d60c4a129a987cd297caaa549dab804318d1ec..f4277a666d33192cb53f82d9873e02d5624a2b72 100644 (file)
@@ -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");