- Cyborgs can now use the 'me' verb

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3738 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2012-06-04 20:21:29 +00:00
parent 358512aeff
commit 792eb10db4
2 changed files with 15 additions and 4 deletions

View File

@@ -1,11 +1,9 @@
/mob/living/silicon/robot/emote(var/act)
/mob/living/silicon/robot/emote(var/act,var/m_type=1,var/message = null)
var/param = 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)
var/m_type = 1
var/message
switch(act)
if ("salute")
@@ -69,6 +67,19 @@
return
message = "<B>[src]</B> [input]"
if ("me")
if(silent)
return
if (src.client && (client.muted || client.muted_complete))
src << "You are muted."
return
if (stat)
return
if(!(message))
return
else
message = "<B>[src]</B> [message]"
if ("twitch")
message = "<B>[src]</B> twitches violently."
m_type = 1

View File

@@ -17,7 +17,7 @@
message = trim(copytext(sanitize(message), 1, MAX_MESSAGE_LEN))
if(ishuman(src))
if(ishuman(src) || isrobot(src))
usr.emote("me",1,message)
else
usr.emote(message)