/mob/living/carbon/slime/emote(var/act, var/m_type=1, var/message = null) if (findtext(act, "-", 1, null)) var/t1 = findtext(act, "-", 1, null) //param = copytext(act, t1 + 1, length(act) + 1) act = copytext(act, 1, t1) if(findtext(act,"s",-1) && !findtext(act,"_",-2))//Removes ending s's unless they are prefixed with a '_' act = copytext(act,1,length(act)) switch(act) //Alphabetical please if ("me") if(silent) return if (src.client) if (client.prefs.muted & MUTE_IC) src << "\red You cannot send IC messages (muted)." return if (src.client.handle_spam_prevention(message,MUTE_IC)) return if (stat) return if(!(message)) return return custom_emote(m_type, message) if("bounce") message = "The [src.name] bounces in place." m_type = 1 if ("custom") return custom_emote(m_type, message) if("jiggle") message = "The [src.name] jiggles!" m_type = 1 if("light") message = "The [src.name] lights up for a bit, then stops." m_type = 1 if("moan") message = "The [src.name] moans." m_type = 2 if("shiver") message = "The [src.name] shivers." m_type = 2 if("sway") message = "The [src.name] sways around dizzily." m_type = 1 if("twitch") message = "The [src.name] twitches." m_type = 1 if("vibrate") message = "The [src.name] vibrates!" m_type = 1 if ("help") //This is an exception src << "Help for slime emotes. You can use these emotes with say \"*emote\":\n\nbounce, custom, jiggle, light, moan, shiver, sway, twitch, vibrate" else src << "\blue Unusable emote '[act]'. Say *help for a list." if ((message && src.stat == 0)) if (m_type & 1) for(var/mob/O in viewers(src, null)) O.show_message(message, m_type) //Foreach goto(703) else for(var/mob/O in hearers(src, null)) O.show_message(message, m_type) //Foreach goto(746) return