]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add the ability to cut off slime/lava sounds.
authorRudolf Polzer <divVerent@xonotic.org>
Wed, 22 Oct 2014 09:40:19 +0000 (11:40 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 22 Oct 2014 09:40:19 +0000 (11:40 +0200)
qcsrc/common/constants.qh
qcsrc/server/sv_main.qc

index d68e9005c7c01201a90e210a4299c5c689598a82..fc0dd9a4d900fe571a160c6776f35f26b750866d 100644 (file)
@@ -294,6 +294,7 @@ const float CH_WEAPON_B = -1;
 const float CH_PAIN = -6;
 const float CH_PAIN_SINGLE = 6;
 const float CH_PLAYER = -7;
+const float CH_PLAYER_SINGLE = 7;
 const float CH_TUBA = 5;
 
 const float ATTEN_NONE = 0;
index 73e733be8f97d927c521c62a48751cfa0ca88c48..3a14529ba8622dc84e6d484f8508b50b3b14d3da 100644 (file)
@@ -62,7 +62,7 @@ void CreatureFrame (void)
                                                if (self.watersound_finished < time)
                                                {
                                                        self.watersound_finished = time + 0.5;
-                                                       sound (self, CH_PLAYER, "player/lava.wav", VOL_BASE, ATTEN_NORM);
+                                                       sound (self, CH_PLAYER_SINGLE, "player/lava.wav", VOL_BASE, ATTEN_NORM);
                                                }
                                                Damage (self, world, world, autocvar_g_balance_contents_playerdamage_lava * autocvar_g_balance_contents_damagerate * self.waterlevel, DEATH_LAVA, self.origin, '0 0 0');
                                        }
@@ -71,7 +71,7 @@ void CreatureFrame (void)
                                                if (self.watersound_finished < time)
                                                {
                                                        self.watersound_finished = time + 0.5;
-                                                       sound (self, CH_PLAYER, "player/slime.wav", VOL_BASE, ATTEN_NORM);
+                                                       sound (self, CH_PLAYER_SINGLE, "player/slime.wav", VOL_BASE, ATTEN_NORM);
                                                }
                                                Damage (self, world, world, autocvar_g_balance_contents_playerdamage_slime * autocvar_g_balance_contents_damagerate * self.waterlevel, DEATH_SLIME, self.origin, '0 0 0');
                                        }