speeeeen!

This commit is contained in:
Metis
2024-10-10 16:52:35 -04:00
parent b915cdcbb5
commit 7b84b44f8c
2 changed files with 31 additions and 0 deletions
+31
View File
@@ -1,2 +1,33 @@
/datum/emote/proc/get_sound(mob/living/user)
return sound //by default just return this var.
/datum/emote/speen
key = "speen"
key_third_person = "speeeeens!"
restraint_check = TRUE
mob_type_allowed_typecache = list(/mob/living, /mob/dead/observer)
mob_type_ignore_stat_typecache = list(/mob/dead/observer)
/datum/emote/speen/run_emote(mob/user)
. = ..()
if(.)
user.spin(20, 1)
if(iscyborg(user) && user.has_buckled_mobs())
var/mob/living/silicon/robot/R = user
var/datum/component/riding/riding_datum = R.GetComponent(/datum/component/riding)
if(riding_datum)
for(var/mob/M in R.buckled_mobs)
riding_datum.force_dismount(M)
else
R.unbuckle_all_mobs()
/datum/emote/speen/run_emote(mob/living/user, params)
if(ishuman(user))
if(user.nextsoundemote >= world.time)
return
user.nextsoundemote = world.time + 7
playsound(user, 'GainStation13/sound/voice/speen.ogg', 50, 1, -1)
. = ..()
Binary file not shown.