This commit is contained in:
SandPoot
2024-08-09 20:13:26 -03:00
parent 7fcbcde764
commit 2a9182dfdf
3 changed files with 35 additions and 24 deletions
+11 -6
View File
@@ -51,10 +51,15 @@
user.nextsoundemote = world.time + 7
playsound(user, 'modular_citadel/sound/voice/peep.ogg', 50, 1, -1)
/datum/emote/living/carbon/moan/run_emote(mob/living/user, params)
if(!(. = ..()))
return
if(user.nextsoundemote >= world.time)
return
user.nextsoundemote = world.time + 7
/datum/emote/living/carbon/moan
emote_type = EMOTE_OMNI
stat_allowed = CONSCIOUS
/datum/emote/living/carbon/moan/run_emote(mob/living/user, params, type_override, intentional)
. = TRUE
if(!can_run_emote(user, TRUE, intentional))
return FALSE
if(!COOLDOWN_FINISHED(user, nextsoundemote))
return FALSE
COOLDOWN_START(user, nextsoundemote, 7)
user.moan()