mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Adds *crack, an audible emote that lets you crack your knuckles. (#19529)
* Adds knuckle cracking sfx * Add cracks for IPCs too * Matt code suggestions * review 2 * Fix species limitations, add diona sfx
This commit is contained in:
@@ -37,6 +37,17 @@
|
||||
emote_type = EMOTE_VISIBLE
|
||||
hands_use_check = TRUE
|
||||
|
||||
/datum/emote/living/carbon/human/crack
|
||||
key = "crack"
|
||||
key_third_person = "cracks"
|
||||
message = "cracks their knuckles."
|
||||
emote_type = EMOTE_AUDIBLE | EMOTE_SOUND
|
||||
// knuckles.ogg by CGEffex. Shortened and cut.
|
||||
// https://freesound.org/people/CGEffex/sounds/93981/
|
||||
sound = "sound/effects/mob_effects/knuckles.ogg"
|
||||
// These species all have overrides, see below
|
||||
species_type_blacklist_typecache = list(/datum/species/slime, /datum/species/machine, /datum/species/plasmaman, /datum/species/skeleton, /datum/species/diona)
|
||||
|
||||
/datum/emote/living/carbon/human/cry
|
||||
key = "cry"
|
||||
key_third_person = "cries"
|
||||
@@ -690,3 +701,34 @@
|
||||
message = "rattles their bones."
|
||||
message_param = "rattles their bones at %t."
|
||||
species_type_whitelist_typecache = list(/datum/species/skeleton, /datum/species/plasmaman)
|
||||
|
||||
/datum/emote/living/carbon/human/crack/slime
|
||||
message = "squishes their knuckles!"
|
||||
sound = "sound/effects/slime_squish.ogg"
|
||||
species_type_whitelist_typecache = list(/datum/species/slime)
|
||||
species_type_blacklist_typecache = null
|
||||
|
||||
/datum/emote/living/carbon/human/crack/machine
|
||||
message = "cracks their actuators!"
|
||||
sound = "sound/effects/mob_effects/ipc_crunch.ogg"
|
||||
species_type_whitelist_typecache = list(/datum/species/machine)
|
||||
species_type_blacklist_typecache = null
|
||||
|
||||
/datum/emote/living/carbon/human/crack/diona
|
||||
message = "cracks a twig!"
|
||||
sound = "sound/effects/mob_effects/diona_crunch.ogg"
|
||||
species_type_whitelist_typecache = list(/datum/species/diona)
|
||||
species_type_blacklist_typecache = null
|
||||
volume = 85 // the sound effect is a bit quiet
|
||||
|
||||
/datum/emote/living/carbon/human/crack/skelly
|
||||
message = "cracks something!" // placeholder
|
||||
species_type_whitelist_typecache = list(/datum/species/skeleton, /datum/species/plasmaman)
|
||||
species_type_blacklist_typecache = null
|
||||
|
||||
/datum/emote/living/carbon/human/crack/skelly/run_emote(mob/user, params, type_override, intentional)
|
||||
var/mob/living/carbon/human/H = user
|
||||
var/obj/item/organ/external/bodypart = pick(H.bodyparts)
|
||||
message = "cracks their [bodypart.name]!"
|
||||
. = ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user