From: Mario Date: Mon, 26 Oct 2015 02:58:50 +0000 (+1000) Subject: Add noise3 (door locked sound) X-Git-Tag: xonotic-v0.8.2~1789 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=544a14d547aa3c4369ed9ce0d23e76b195d81d13;p=xonotic%2Fxonotic-data.pk3dir.git Add noise3 (door locked sound) --- diff --git a/qcsrc/common/triggers/func/door.qc b/qcsrc/common/triggers/func/door.qc index e05351b09..4ce3d261b 100644 --- a/qcsrc/common/triggers/func/door.qc +++ b/qcsrc/common/triggers/func/door.qc @@ -185,7 +185,7 @@ bool door_check_keys(entity door, entity player) #ifdef SVQC if(player.key_door_messagetime <= time) { - play2(player, SND(TALK)); + play2(player, door.noise3); Send_Notification(NOTIF_ONE, player, MSG_CENTER, CENTER_DOOR_LOCKED_NEED, item_keys_keylist(door.itemkeys)); player.key_door_messagetime = time + 2; } @@ -197,7 +197,7 @@ bool door_check_keys(entity door, entity player) #ifdef SVQC if(player.key_door_messagetime <= time) { - play2(player, SND(TALK)); + play2(player, door.noise3); Send_Notification(NOTIF_ONE, player, MSG_CENTER, CENTER_DOOR_LOCKED_ALSONEED, item_keys_keylist(door.itemkeys)); player.key_door_messagetime = time + 2; } @@ -736,7 +736,10 @@ spawnfunc(func_door) if(self.noise == "") self.noise = "misc/talk.wav"; + if(self.noise3 == "") + self.noise3 = "misc/talk.wav"; precache_sound(self.noise); + precache_sound(self.noise3); self.blocked = door_blocked; self.use = door_use;