]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/func_breakable.qc
Don't annoy bots with noise :)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / func_breakable.qc
index 6a651a0b0dc24e0bf3d51dfdb9813c4c2fd88b93..da0beaecb336c253a2915c2cf99615418416cea9 100644 (file)
@@ -144,7 +144,7 @@ void func_breakable_behave_restore()
 
 void func_breakable_init_for_player(entity player)
 {
-       if (self.noise1 && self.state == 0)
+       if (self.noise1 && self.state == 0 && clienttype(player) == CLIENTTYPE_REAL)
        {
                msg_entity = player;
                soundto (MSG_ONE, self, CH_TRIGGER_SINGLE, self.noise1, VOL_BASE, ATTEN_NORM);