Adds *insult

This commit is contained in:
Poojawa
2018-08-29 03:25:27 -05:00
parent 42c39d8908
commit c22d1cacb8
2 changed files with 196 additions and 1 deletions
+18 -1
View File
@@ -1,3 +1,5 @@
#define INSULTS_FILE "insult.json"
/mob
var/nextsoundemote = 1
@@ -5,6 +7,21 @@
/datum/emote/living/custom
mob_type_blacklist_typecache = list(/mob/living/brain)
/datum/emote/living/insult
key = "insult"
key_third_person = "insults"
message = "spews insults."
emote_type = EMOTE_AUDIBLE
/datum/emote/living/insult/run_emote(mob/living/user, params)
var/insult_message = ""
if(!user.is_muzzled())
insult_message += pick_list_replacements(INSULTS_FILE, "insult_gen")
message = insult_message
else
message = "muffles something."
. = ..()
/datum/emote/living/scream/run_emote(mob/living/user, params) //I can't not port this shit, come on.
if(user.nextsoundemote >= world.time || user.stat != CONSCIOUS)
return
@@ -142,4 +159,4 @@
return
user.nextsoundemote = world.time + 7
playsound(user, 'modular_citadel/sound/voice/weh.ogg', 50, 1, -1)
. = ..()
. = ..()