]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add a CH_WEAPON_SINGLE for possible charging sounds
authorRudolf Polzer <divverent@xonotic.org>
Sun, 3 Jul 2011 17:51:20 +0000 (19:51 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 3 Jul 2011 17:51:20 +0000 (19:51 +0200)
qcsrc/client/particles.qc
qcsrc/common/constants.qh
qcsrc/menu/xonotic/dialog_settings_audio.c

index 0c7750af0da4f4b8279538da33b57270d8f4ea0b..b7233eee14b8c1a5e29a21b1e22b6c59c7584664 100644 (file)
@@ -58,7 +58,7 @@ void Draw_PointParticles()
                        if(self.noise != "")
                        {
                                self.origin = p;
-                               sound(self, CH_TRIGGER_SINGLE, self.noise, VOL_BASE * self.volume, self.atten);
+                               sound(self, CH_AMBIENT, self.noise, VOL_BASE * self.volume, self.atten);
                        }
                        self.just_toggled = 0;
                }
index 31c91b2213c0b8242ea55ae2024500b4e2c2309d..f79c71bda6882aa255ba9472cc16f011ae26d6da 100644 (file)
@@ -433,8 +433,10 @@ const float STAT_DOM_PPS_YELLOW = 104;
 float CH_INFO = 0; // only on world and csqc
 float CH_TRIGGER = 0; // only on players; compat: FALSELY CONTROLLED BY "Info"
 float CH_WEAPON_A = 1; // only on players and entities
+float CH_WEAPON_SINGLE = 1; // only on players and entities
 float CH_VOICE = 2; // only on players; compat: FALSELY CONTROLLED BY "BGM"
 float CH_BGM_SINGLE = 2; // only on csqc
+float CH_AMBIENT = 2; // only on csqc; compat: FALSELY CONTROLLED BY "BGM"
 float CH_TRIGGER_SINGLE = 3; // only on players, entities, csqc
 float CH_SHOTS_SINGLE = 4; // only on players, entities, csqc
 float CH_WEAPON_B = 5; // only on players and entities
@@ -445,8 +447,10 @@ float CH_PLAYER = 7; // only on players and entities
 float CH_INFO = 0; // only on world and csqc!
 float CH_TRIGGER = 256;
 float CH_WEAPON_A = 257;
+float CH_WEAPON_SINGLE = 1;
 float CH_VOICE = 258;
 float CH_BGM_SINGLE = 2;
+float CH_AMBIENT = 261;
 float CH_TRIGGER_SINGLE = 3;
 float CH_SHOTS_SINGLE = 4;
 float CH_WEAPON_B = 257;
@@ -455,50 +459,6 @@ float CH_PAIN_SINGLE = 6;
 float CH_PLAYER = 260;
 #endif
 
-#ifdef LEGACY_CHANS
-// this assignment must match menu/xonotic/dialog_settings_misc.c!
-float  CHAN_AUTO                               = 0;
-       // on world: announcers, ...                     INFO
-       // on players: item pickup                       ITEMS
-       // on entities: UNUSED
-       // on csqc: announcers                           INFO
-float  CHAN_WEAPON                             = 1; // Weapon fire
-       // on world: UNUSED
-       // on players: weapon firing                     WEAPONS
-       // on entities: turret firing                    WEAPONS
-       // on csqc: UNUSED
-float  CHAN_VOICE                              = 2; // Voice/Radio
-       // on world: UNUSED
-       // on players: voice                             VOICE
-       // on entities: UNUSED
-       // on csqc: background music                     BGM
-float  CHAN_TRIGGER                    = 3; // Triggers/Items
-       // on world: UNUSED
-       // on players: item pickup                       ITEMS
-       // on entities: platforms moving etc.            ITEMS
-       // on csqc: platforms moving etc.                ITEMS
-float  CHAN_PROJECTILE                 = 4; // Projectiles
-       // on world: UNUSED
-       // on players: projectiles hitting player        SHOTS
-       // on entities: projectiles                      SHOTS
-       // on csqc: projectile sounds                    SHOTS
-float  CHAN_WEAPON2                    = 5; // Nex fire (separated as it is a very long sound)
-       // on world: UNUSED
-       // on players: weapon firing                     WEAPONS
-       // on entities: turret firing                    WEAPONS
-       // on csqc: UNUSED
-float  CHAN_PAIN                               = 6; // Pain
-       // on world: UNUSED
-       // on players: pain                              PAIN
-       // on entities: projectiles flying               SHOTS
-       // on csqc: player pain                          PAIN
-float  CHAN_PLAYER                             = 7; // Player body
-       // on world: UNUSED
-       // on players: player sounds                     PLAYER
-       // on entities: player sounds                    PLAYER
-       // on csqc: UNUSED
-#endif
-
 float  ATTN_NONE                               = 0;
 float  ATTN_MIN                                = 0.015625;
 float  ATTN_NORM                               = 0.5;
index 9d6d765068ff237c8a517fa8b12f97790904ca50..cb69394b5fb97690025e0ded5d432c81b0ec6f55 100644 (file)
@@ -89,7 +89,8 @@ void XonoticAudioSettingsTab_fill(entity me)
        me.TR(me);
                me.TDempty(me, 0.2);
                s = makeXonoticDecibelsSlider(-20, 0, 0.5, "snd_channel257volume");
-               makeMulti(s, "snd_channel1volume snd_channel5volume"); // legacy
+               //makeMulti(s, "snd_channel1volume");
+               makeMulti(s, "snd_channel1volume snd_channel5volume"); // snd_channel5volume is legacy
                me.TD(me, 1, 0.8, e = makeXonoticSliderCheckBox(-1000000, 1, s, _("Weapons:")));
                me.TD(me, 1, 2, s);
                setDependentStringNotEqual(e, "mastervolume", "0");