Alien *roar and *deathgasp sounds are no longer spammable.

This commit is contained in:
Miauw
2013-09-25 17:45:51 +02:00
parent a7cc370c78
commit 1f50a508eb
2 changed files with 7 additions and 2 deletions
@@ -72,10 +72,12 @@
if ((message && src.stat == 0))
log_emote("[name]/[key] : [message]")
if (act == "roar")
if (act == "roar" && xeno_emote_counter <= 0)
playsound(src.loc, 'sound/voice/hiss5.ogg', 40, 1, 1)
if (act == "deathgasp")
xeno_emote_counter = 4
if (act == "deathgasp" && xeno_emote_counter <= 0)
playsound(src.loc, 'sound/voice/hiss6.ogg', 80, 1, 1)
xeno_emote_counter = 4
if (m_type & 1)
for(var/mob/O in viewers(src, null))
O.show_message(message, m_type)
@@ -6,12 +6,15 @@
fire_alert = 0
var/temperature_alert = 0
var/xeno_emote_counter = 0 //See Life()
/mob/living/carbon/alien/humanoid/Life()
set invisibility = 0
set background = 1
xeno_emote_counter -= 1 //Hack to stop *deathgasp and *roar spam for xenos.
if (monkeyizing)
return