mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Formatting & Fixes for emotes (vhelp doesn't 'break' anymore)
This commit is contained in:
@@ -11,18 +11,19 @@
|
|||||||
var/muzzled = is_muzzled()
|
var/muzzled = is_muzzled()
|
||||||
//var/m_type = 1
|
//var/m_type = 1
|
||||||
|
|
||||||
for(var/obj/item/organ/O in src.organs)
|
for(var/obj/item/organ/O in organs)
|
||||||
for (var/obj/item/weapon/implant/I in O)
|
for(var/obj/item/weapon/implant/I in O)
|
||||||
if(I.implanted)
|
if(I.implanted)
|
||||||
I.trigger(act, src)
|
I.trigger(act, src)
|
||||||
|
|
||||||
if(stat == DEAD && (act != "deathgasp"))
|
if(stat == DEAD && (act != "deathgasp"))
|
||||||
return
|
return
|
||||||
if(attempt_vr(src,"handle_emote_vr",list(act,m_type,message))) return //VOREStation Add - Custom Emote Handler
|
|
||||||
switch(act)
|
|
||||||
|
|
||||||
|
if(attempt_vr(src, "handle_emote_vr", list(act, m_type, message))) return //VOREStation Add - Custom Emote Handler
|
||||||
|
|
||||||
|
switch(act)
|
||||||
if("airguitar")
|
if("airguitar")
|
||||||
if(!src.restrained())
|
if(!restrained())
|
||||||
message = "is strumming the air and headbanging like a safari chimp."
|
message = "is strumming the air and headbanging like a safari chimp."
|
||||||
m_type = 1
|
m_type = 1
|
||||||
|
|
||||||
@@ -35,7 +36,7 @@
|
|||||||
|
|
||||||
var/M = null
|
var/M = null
|
||||||
if(param)
|
if(param)
|
||||||
for (var/mob/A in view(null, null))
|
for(var/mob/A in view(null, null))
|
||||||
if(param == A.name)
|
if(param == A.name)
|
||||||
M = A
|
M = A
|
||||||
break
|
break
|
||||||
@@ -76,7 +77,7 @@
|
|||||||
message = "[display_msg] at [param]."
|
message = "[display_msg] at [param]."
|
||||||
else
|
else
|
||||||
message = "[display_msg]."
|
message = "[display_msg]."
|
||||||
playsound(src.loc, use_sound, 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add
|
playsound(loc, use_sound, 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add
|
||||||
m_type = 1
|
m_type = 1
|
||||||
|
|
||||||
//Promethean-only emotes
|
//Promethean-only emotes
|
||||||
@@ -86,7 +87,7 @@
|
|||||||
to_chat(src, "<span class='warning'>You are not a slime thing!</span>")
|
to_chat(src, "<span class='warning'>You are not a slime thing!</span>")
|
||||||
return
|
return
|
||||||
*/ //VOREStation Removal End
|
*/ //VOREStation Removal End
|
||||||
playsound(src.loc, 'sound/effects/slime_squish.ogg', 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add //Credit to DrMinky (freesound.org) for the sound.
|
playsound(loc, 'sound/effects/slime_squish.ogg', 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add //Credit to DrMinky (freesound.org) for the sound.
|
||||||
message = "squishes."
|
message = "squishes."
|
||||||
m_type = 1
|
m_type = 1
|
||||||
|
|
||||||
@@ -96,7 +97,7 @@
|
|||||||
to_chat(src, "<span class='warning'>You are not a Skrell!</span>")
|
to_chat(src, "<span class='warning'>You are not a Skrell!</span>")
|
||||||
return
|
return
|
||||||
|
|
||||||
playsound(src.loc, 'sound/effects/warble.ogg', 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add // Copyright CC BY 3.0 alienistcog (freesound.org) for the sound.
|
playsound(loc, 'sound/effects/warble.ogg', 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add // Copyright CC BY 3.0 alienistcog (freesound.org) for the sound.
|
||||||
message = "warbles."
|
message = "warbles."
|
||||||
m_type = 2
|
m_type = 2
|
||||||
|
|
||||||
@@ -109,10 +110,10 @@
|
|||||||
m_type = 1
|
m_type = 1
|
||||||
|
|
||||||
if("bow")
|
if("bow")
|
||||||
if(!src.buckled)
|
if(!buckled)
|
||||||
var/M = null
|
var/M = null
|
||||||
if(param)
|
if(param)
|
||||||
for (var/mob/A in view(null, null))
|
for(var/mob/A in view(null, null))
|
||||||
if(param == A.name)
|
if(param == A.name)
|
||||||
M = A
|
M = A
|
||||||
break
|
break
|
||||||
@@ -133,7 +134,7 @@
|
|||||||
if(input2 == "Visible")
|
if(input2 == "Visible")
|
||||||
m_type = 1
|
m_type = 1
|
||||||
else if(input2 == "Hearable")
|
else if(input2 == "Hearable")
|
||||||
if(src.miming)
|
if(miming)
|
||||||
return
|
return
|
||||||
m_type = 2
|
m_type = 2
|
||||||
else
|
else
|
||||||
@@ -146,7 +147,7 @@
|
|||||||
//if(silent && silent > 0 && findtext(message,"\"",1, null) > 0)
|
//if(silent && silent > 0 && findtext(message,"\"",1, null) > 0)
|
||||||
// return //This check does not work and I have no idea why, I'm leaving it in for reference.
|
// return //This check does not work and I have no idea why, I'm leaving it in for reference.
|
||||||
|
|
||||||
if(src.client)
|
if(client)
|
||||||
if(client.prefs.muted & MUTE_IC)
|
if(client.prefs.muted & MUTE_IC)
|
||||||
to_chat(src, "<font color='red'>You cannot send IC messages (muted).</font>")
|
to_chat(src, "<font color='red'>You cannot send IC messages (muted).</font>")
|
||||||
return
|
return
|
||||||
@@ -157,10 +158,10 @@
|
|||||||
return custom_emote(m_type, message)
|
return custom_emote(m_type, message)
|
||||||
|
|
||||||
if("salute")
|
if("salute")
|
||||||
if(!src.buckled)
|
if(!buckled)
|
||||||
var/M = null
|
var/M = null
|
||||||
if(param)
|
if(param)
|
||||||
for (var/mob/A in view(null, null))
|
for(var/mob/A in view(null, null))
|
||||||
if(param == A.name)
|
if(param == A.name)
|
||||||
M = A
|
M = A
|
||||||
break
|
break
|
||||||
@@ -186,22 +187,22 @@
|
|||||||
m_type = 2
|
m_type = 2
|
||||||
|
|
||||||
if("clap")
|
if("clap")
|
||||||
if(!src.restrained())
|
if(!restrained())
|
||||||
message = "claps."
|
message = "claps."
|
||||||
playsound(src.loc, 'sound/misc/clapping.ogg')
|
playsound(loc, 'sound/misc/clapping.ogg')
|
||||||
m_type = 2
|
m_type = 2
|
||||||
if(miming)
|
if(miming)
|
||||||
m_type = 1
|
m_type = 1
|
||||||
|
|
||||||
if("flap")
|
if("flap")
|
||||||
if(!src.restrained())
|
if(!restrained())
|
||||||
message = "flaps [T.his] wings."
|
message = "flaps [T.his] wings."
|
||||||
m_type = 2
|
m_type = 2
|
||||||
if(miming)
|
if(miming)
|
||||||
m_type = 1
|
m_type = 1
|
||||||
|
|
||||||
if("aflap")
|
if("aflap")
|
||||||
if(!src.restrained())
|
if(!restrained())
|
||||||
message = "flaps [T.his] wings ANGRILY!"
|
message = "flaps [T.his] wings ANGRILY!"
|
||||||
m_type = 2
|
m_type = 2
|
||||||
if(miming)
|
if(miming)
|
||||||
@@ -237,9 +238,9 @@
|
|||||||
|
|
||||||
if("faint")
|
if("faint")
|
||||||
message = "faints."
|
message = "faints."
|
||||||
if(src.sleeping)
|
if(sleeping)
|
||||||
return //Can't faint while asleep
|
return //Can't faint while asleep
|
||||||
src.sleeping += 10 //Short-short nap
|
sleeping += 10 //Short-short nap
|
||||||
m_type = 1
|
m_type = 1
|
||||||
|
|
||||||
if("cough", "coughs")
|
if("cough", "coughs")
|
||||||
@@ -269,7 +270,7 @@
|
|||||||
use_sound = pick('sound/effects/mob_effects/f_machine_cougha.ogg','sound/effects/mob_effects/f_machine_coughb.ogg')
|
use_sound = pick('sound/effects/mob_effects/f_machine_cougha.ogg','sound/effects/mob_effects/f_machine_coughb.ogg')
|
||||||
else
|
else
|
||||||
use_sound = pick('sound/effects/mob_effects/m_machine_cougha.ogg','sound/effects/mob_effects/m_machine_coughb.ogg', 'sound/effects/mob_effects/m_machine_coughc.ogg')
|
use_sound = pick('sound/effects/mob_effects/m_machine_cougha.ogg','sound/effects/mob_effects/m_machine_coughb.ogg', 'sound/effects/mob_effects/m_machine_coughc.ogg')
|
||||||
playsound(src.loc, use_sound, 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add
|
playsound(loc, use_sound, 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add
|
||||||
else
|
else
|
||||||
message = "makes a strong noise."
|
message = "makes a strong noise."
|
||||||
m_type = 2
|
m_type = 2
|
||||||
@@ -321,7 +322,7 @@
|
|||||||
if("glare")
|
if("glare")
|
||||||
var/M = null
|
var/M = null
|
||||||
if(param)
|
if(param)
|
||||||
for (var/mob/A in view(null, null))
|
for(var/mob/A in view(null, null))
|
||||||
if(param == A.name)
|
if(param == A.name)
|
||||||
M = A
|
M = A
|
||||||
break
|
break
|
||||||
@@ -336,7 +337,7 @@
|
|||||||
if("stare")
|
if("stare")
|
||||||
var/M = null
|
var/M = null
|
||||||
if(param)
|
if(param)
|
||||||
for (var/mob/A in view(null, null))
|
for(var/mob/A in view(null, null))
|
||||||
if(param == A.name)
|
if(param == A.name)
|
||||||
M = A
|
M = A
|
||||||
break
|
break
|
||||||
@@ -351,7 +352,7 @@
|
|||||||
if("look")
|
if("look")
|
||||||
var/M = null
|
var/M = null
|
||||||
if(param)
|
if(param)
|
||||||
for (var/mob/A in view(null, null))
|
for(var/mob/A in view(null, null))
|
||||||
if(param == A.name)
|
if(param == A.name)
|
||||||
M = A
|
M = A
|
||||||
break
|
break
|
||||||
@@ -453,14 +454,14 @@
|
|||||||
message = "takes a drag from a cigarette and blows \"[M]\" out in smoke."
|
message = "takes a drag from a cigarette and blows \"[M]\" out in smoke."
|
||||||
m_type = 1
|
m_type = 1
|
||||||
else
|
else
|
||||||
message = "says, \"[M], please. He had a family.\" [src.name] takes a drag from a cigarette and blows his name out in smoke."
|
message = "says, \"[M], please. He had a family.\" [name] takes a drag from a cigarette and blows his name out in smoke."
|
||||||
m_type = 2
|
m_type = 2
|
||||||
|
|
||||||
if("point")
|
if("point")
|
||||||
if(!src.restrained())
|
if(!restrained())
|
||||||
var/mob/M = null
|
var/mob/M = null
|
||||||
if(param)
|
if(param)
|
||||||
for (var/atom/A as mob|obj|turf|area in view(null, null))
|
for(var/atom/A as mob|obj|turf|area in view(null, null))
|
||||||
if(param == A.name)
|
if(param == A.name)
|
||||||
M = A
|
M = A
|
||||||
break
|
break
|
||||||
@@ -476,7 +477,7 @@
|
|||||||
m_type = 1
|
m_type = 1
|
||||||
|
|
||||||
if("raise")
|
if("raise")
|
||||||
if(!src.restrained())
|
if(!restrained())
|
||||||
message = "raises a hand."
|
message = "raises a hand."
|
||||||
m_type = 1
|
m_type = 1
|
||||||
|
|
||||||
@@ -489,12 +490,12 @@
|
|||||||
m_type = 1
|
m_type = 1
|
||||||
|
|
||||||
if("signal")
|
if("signal")
|
||||||
if(!src.restrained())
|
if(!restrained())
|
||||||
var/t1 = round(text2num(param))
|
var/t1 = round(text2num(param))
|
||||||
if(isnum(t1))
|
if(isnum(t1))
|
||||||
if(t1 <= 5 && (!src.r_hand || !src.l_hand))
|
if(t1 <= 5 && (!r_hand || !l_hand))
|
||||||
message = "raises [t1] finger\s."
|
message = "raises [t1] finger\s."
|
||||||
else if(t1 <= 10 && (!src.r_hand && !src.l_hand))
|
else if(t1 <= 10 && (!r_hand && !l_hand))
|
||||||
message = "raises [t1] finger\s."
|
message = "raises [t1] finger\s."
|
||||||
m_type = 1
|
m_type = 1
|
||||||
|
|
||||||
@@ -542,7 +543,7 @@
|
|||||||
use_sound = 'sound/effects/mob_effects/machine_sneeze.ogg'
|
use_sound = 'sound/effects/mob_effects/machine_sneeze.ogg'
|
||||||
else
|
else
|
||||||
use_sound = 'sound/effects/mob_effects/f_machine_sneeze.ogg'
|
use_sound = 'sound/effects/mob_effects/f_machine_sneeze.ogg'
|
||||||
playsound(src.loc, use_sound, 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add
|
playsound(loc, use_sound, 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add
|
||||||
else
|
else
|
||||||
message = "makes a strange noise."
|
message = "makes a strange noise."
|
||||||
m_type = 2
|
m_type = 2
|
||||||
@@ -597,10 +598,10 @@
|
|||||||
|
|
||||||
if("hug")
|
if("hug")
|
||||||
m_type = 1
|
m_type = 1
|
||||||
if(!src.restrained())
|
if(!restrained())
|
||||||
var/M = null
|
var/M = null
|
||||||
if(param)
|
if(param)
|
||||||
for (var/mob/A in view(1, null))
|
for(var/mob/A in view(1, null))
|
||||||
if(param == A.name)
|
if(param == A.name)
|
||||||
M = A
|
M = A
|
||||||
break
|
break
|
||||||
@@ -614,10 +615,10 @@
|
|||||||
|
|
||||||
if("handshake")
|
if("handshake")
|
||||||
m_type = 1
|
m_type = 1
|
||||||
if(!src.restrained() && !src.r_hand)
|
if(!restrained() && !r_hand)
|
||||||
var/mob/living/M = null
|
var/mob/living/M = null
|
||||||
if(param)
|
if(param)
|
||||||
for (var/mob/living/A in view(1, null))
|
for(var/mob/living/A in view(1, null))
|
||||||
if(param == A.name)
|
if(param == A.name)
|
||||||
M = A
|
M = A
|
||||||
break
|
break
|
||||||
@@ -632,10 +633,10 @@
|
|||||||
|
|
||||||
if("dap")
|
if("dap")
|
||||||
m_type = 1
|
m_type = 1
|
||||||
if(!src.restrained())
|
if(!restrained())
|
||||||
var/M = null
|
var/M = null
|
||||||
if(param)
|
if(param)
|
||||||
for (var/mob/A in view(1, null))
|
for(var/mob/A in view(1, null))
|
||||||
if(param == A.name)
|
if(param == A.name)
|
||||||
M = A
|
M = A
|
||||||
break
|
break
|
||||||
@@ -702,16 +703,16 @@
|
|||||||
playsound(loc, 'sound/effects/fingersnap.ogg', 50, 1, -3, preference = /datum/client_preference/emote_noises) //VOREStation Add
|
playsound(loc, 'sound/effects/fingersnap.ogg', 50, 1, -3, preference = /datum/client_preference/emote_noises) //VOREStation Add
|
||||||
|
|
||||||
if("swish")
|
if("swish")
|
||||||
src.animate_tail_once()
|
animate_tail_once()
|
||||||
|
|
||||||
if("wag", "sway")
|
if("wag", "sway")
|
||||||
src.animate_tail_start()
|
animate_tail_start()
|
||||||
|
|
||||||
if("qwag", "fastsway")
|
if("qwag", "fastsway")
|
||||||
src.animate_tail_fast()
|
animate_tail_fast()
|
||||||
|
|
||||||
if("swag", "stopsway")
|
if("swag", "stopsway")
|
||||||
src.animate_tail_stop()
|
animate_tail_stop()
|
||||||
|
|
||||||
if("vomit")
|
if("vomit")
|
||||||
if(isSynthetic())
|
if(isSynthetic())
|
||||||
@@ -753,7 +754,7 @@
|
|||||||
|
|
||||||
var/datum/gender/T = gender_datums[get_visible_gender()]
|
var/datum/gender/T = gender_datums[get_visible_gender()]
|
||||||
|
|
||||||
pose = sanitize(input(usr, "This is [src]. [T.he]...", "Pose", null) as text)
|
pose = sanitize(input(usr, "This is [src]. [T.he]...", "Pose", null) as text)
|
||||||
|
|
||||||
/mob/living/carbon/human/verb/set_flavor()
|
/mob/living/carbon/human/verb/set_flavor()
|
||||||
set name = "Set Flavour Text"
|
set name = "Set Flavour Text"
|
||||||
|
|||||||
@@ -3,72 +3,72 @@
|
|||||||
|
|
||||||
/mob/living/carbon/human/proc/handle_emote_vr(var/act,var/m_type=1,var/message = null)
|
/mob/living/carbon/human/proc/handle_emote_vr(var/act,var/m_type=1,var/message = null)
|
||||||
//Reduces emote spamming
|
//Reduces emote spamming
|
||||||
if(src.nextemote >= world.time)// || user.stat != CONSCIOUS
|
if(nextemote >= world.time)// || user.stat != CONSCIOUS
|
||||||
return 1
|
return 1
|
||||||
src.nextemote = world.time + 12
|
nextemote = world.time + 12
|
||||||
|
|
||||||
switch(act)
|
switch(act)
|
||||||
if ("vwag")
|
if("vwag")
|
||||||
if(toggle_tail_vr(message = 1))
|
if(toggle_tail_vr(message = 1))
|
||||||
m_type = 1
|
m_type = 1
|
||||||
message = "[wagging ? "starts" : "stops"] wagging their tail."
|
message = "[wagging ? "starts" : "stops"] wagging their tail."
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
if ("vflap")
|
if("vflap")
|
||||||
if(toggle_wing_vr(message = 1))
|
if(toggle_wing_vr(message = 1))
|
||||||
m_type = 1
|
m_type = 1
|
||||||
message = "[flapping ? "starts" : "stops"] flapping their wings."
|
message = "[flapping ? "starts" : "stops"] flapping their wings."
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
if ("mlem")
|
if("mlem")
|
||||||
message = "mlems [get_visible_gender() == MALE ? "his" : get_visible_gender() == FEMALE ? "her" : "their"] tongue up over [get_visible_gender() == MALE ? "his" : get_visible_gender() == FEMALE ? "her" : "their"] nose. Mlem."
|
message = "mlems [get_visible_gender() == MALE ? "his" : get_visible_gender() == FEMALE ? "her" : "their"] tongue up over [get_visible_gender() == MALE ? "his" : get_visible_gender() == FEMALE ? "her" : "their"] nose. Mlem."
|
||||||
m_type = 1
|
m_type = 1
|
||||||
if ("awoo")
|
if("awoo")
|
||||||
m_type = 2
|
m_type = 2
|
||||||
message = "lets out an awoo."
|
message = "lets out an awoo."
|
||||||
playsound(loc, 'sound/voice/awoo.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
playsound(loc, 'sound/voice/awoo.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
||||||
if ("nya")
|
if("nya")
|
||||||
message = "lets out a nya."
|
message = "lets out a nya."
|
||||||
m_type = 2
|
m_type = 2
|
||||||
playsound(loc, 'sound/voice/nya.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
playsound(loc, 'sound/voice/nya.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
||||||
if ("peep")
|
if("peep")
|
||||||
message = "peeps like a bird."
|
message = "peeps like a bird."
|
||||||
m_type = 2
|
m_type = 2
|
||||||
playsound(loc, 'sound/voice/peep.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
playsound(loc, 'sound/voice/peep.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
||||||
if ("chirp")
|
if("chirp")
|
||||||
message = "chirps!"
|
message = "chirps!"
|
||||||
playsound(src.loc, 'sound/misc/nymphchirp.ogg', 50, 0, preference = /datum/client_preference/emote_noises)
|
playsound(loc, 'sound/misc/nymphchirp.ogg', 50, 0, preference = /datum/client_preference/emote_noises)
|
||||||
m_type = 2
|
m_type = 2
|
||||||
if ("weh")
|
if("weh")
|
||||||
message = "lets out a weh."
|
message = "lets out a weh."
|
||||||
m_type = 2
|
m_type = 2
|
||||||
playsound(loc, 'sound/voice/weh.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
playsound(loc, 'sound/voice/weh.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
||||||
if ("merp")
|
if("merp")
|
||||||
message = "lets out a merp."
|
message = "lets out a merp."
|
||||||
m_type = 2
|
m_type = 2
|
||||||
playsound(loc, 'sound/voice/merp.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
playsound(loc, 'sound/voice/merp.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
||||||
if ("bark")
|
if("bark")
|
||||||
message = "lets out a bark."
|
message = "lets out a bark."
|
||||||
m_type = 2
|
m_type = 2
|
||||||
playsound(loc, 'sound/voice/bark2.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
playsound(loc, 'sound/voice/bark2.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
||||||
if ("hiss")
|
if("hiss")
|
||||||
message = "lets out a hiss."
|
message = "lets out a hiss."
|
||||||
m_type = 2
|
m_type = 2
|
||||||
playsound(loc, 'sound/voice/hiss.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
playsound(loc, 'sound/voice/hiss.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
||||||
if ("squeak")
|
if("squeak")
|
||||||
message = "lets out a squeak."
|
message = "lets out a squeak."
|
||||||
m_type = 2
|
m_type = 2
|
||||||
playsound(loc, 'sound/effects/mouse_squeak.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
playsound(loc, 'sound/effects/mouse_squeak.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises)
|
||||||
if ("nsay")
|
if("nsay")
|
||||||
nsay()
|
nsay()
|
||||||
return TRUE
|
return TRUE
|
||||||
if ("nme")
|
if("nme")
|
||||||
nme()
|
nme()
|
||||||
return TRUE
|
return TRUE
|
||||||
if ("flip")
|
if("flip")
|
||||||
var/list/involved_parts = list(BP_L_LEG, BP_R_LEG, BP_L_FOOT, BP_R_FOOT)
|
var/list/involved_parts = list(BP_L_LEG, BP_R_LEG, BP_L_FOOT, BP_R_FOOT)
|
||||||
//Check if they are physically capable
|
//Check if they are physically capable
|
||||||
if(src.sleeping || src.resting || src.buckled || src.weakened || src.restrained() || involved_parts.len < 2)
|
if(sleeping || resting || buckled || weakened || restrained() || involved_parts.len < 2)
|
||||||
to_chat(src, "<span class='warning'>You can't *flip in your current state!</span>")
|
to_chat(src, "<span class='warning'>You can't *flip in your current state!</span>")
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
@@ -76,14 +76,15 @@
|
|||||||
handle_flip_vr()
|
handle_flip_vr()
|
||||||
message = "does a flip!"
|
message = "does a flip!"
|
||||||
m_type = 1
|
m_type = 1
|
||||||
if ("vhelp") //Help for Virgo-specific emotes.
|
if("vhelp") //Help for Virgo-specific emotes.
|
||||||
to_chat(src, "vwag, vflap, mlem, awoo, nya, peep, chirp, weh, merp, bark, hiss, squeak, nsay, nme, flip")
|
to_chat(src, "vwag, vflap, mlem, awoo, nya, peep, chirp, weh, merp, bark, hiss, squeak, nsay, nme, flip")
|
||||||
|
return TRUE
|
||||||
|
|
||||||
if (message)
|
if(message)
|
||||||
custom_emote(m_type,message)
|
custom_emote(m_type,message)
|
||||||
return 1
|
return TRUE
|
||||||
|
|
||||||
return 0
|
return FALSE
|
||||||
|
|
||||||
|
|
||||||
/mob/living/carbon/human/proc/handle_flip_vr()
|
/mob/living/carbon/human/proc/handle_flip_vr()
|
||||||
|
|||||||
Reference in New Issue
Block a user