Adds *insult
This commit is contained in:
@@ -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)
|
||||
. = ..()
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user