mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
- Technical: All sounds are now using a masterlist that is indexed via keypairs, saving on overhead and copypaste. - Technical continued: Rather than defining sounds per species, go to sound.dm, add a define, following the above, then add your key + pair to species_sounds_map - for instance, `"Mouse" = mouse_sounds`. Easy as that. - All mobs refer to this list rather than defining their own pain/etc sounds. - All mobs can override death sounds with death_sound_override set to the sound (or sounds) of their choice. - Added the following sound options: Lizard, Metroid, Mouse, Raccoon, Slime, Spider, Teshari, Vox, Vulpine, Xeno - If Species Sound is set to "Unset", it will automatically grab the correct sounds for your gender *and* species, if those exist. - For developers: set `gender_specific_species_sounds` to TRUE on your species, and set `species_sounds_[gender]` (fill in gender with your chosen gender) for it to fetch these sounds. - Species can now control the volume that their emote sounds play at. Refer to the added variables in `species.dm` for details. - Cough/Sneeze/Scream/Pain/Gasp/Death sounds are all now standardized and use the same procs to fetch sounds, cutting down on copy/paste and reducing changes for things to go wrong. - Fixed multiple smaller bugs, the details of which elude me, in regards to 1.0/Original - Ported Xeno scream/roar/pain/death sounds from TGMC. - Deathgasp actually plays your death sound (TBD if this is too spammy). 2.1 - Technical: Fixed a runtime in get_default_species_sounds where it was trying to fetch from dummy mob rather than the player's preferences. - Fixed an error where chat would not display the "this set does not have 'x' sounds!" message.
66 lines
1.8 KiB
Plaintext
66 lines
1.8 KiB
Plaintext
/decl/emote/human/mob_can_use(var/mob/living/carbon/human/user)
|
|
return ..() && (istype(user))//VOREStation Edit - What does a mouth have to do with wagging?? && user.check_has_mouth() && !user.isSynthetic())
|
|
|
|
/decl/emote/human/deathgasp
|
|
key = "deathgasp"
|
|
|
|
/decl/emote/human/deathgasp/get_emote_sound(user)
|
|
var/mob/living/carbon/human/H = user
|
|
var/vol = H.species.death_volume
|
|
return list(
|
|
"sound" = get_species_sound(get_gendered_sound(H))["death"],
|
|
"vol" = vol,
|
|
"volchannel" = VOLUME_CHANNEL_SPECIES_SOUNDS
|
|
)
|
|
|
|
/decl/emote/human/deathgasp/do_emote(mob/living/carbon/human/user)
|
|
if(istype(user) && user.species.get_death_message(user) == DEATHGASP_NO_MESSAGE)
|
|
to_chat(user, SPAN_WARNING("Your species has no deathgasp."))
|
|
return
|
|
. = ..()
|
|
|
|
/decl/emote/human/deathgasp/get_emote_message_3p(var/mob/living/carbon/human/user)
|
|
return "[user.species.get_death_message(user)]"
|
|
|
|
/decl/emote/human/swish
|
|
key = "swish"
|
|
|
|
/decl/emote/human/swish/do_emote(var/mob/living/carbon/human/user)
|
|
user.animate_tail_once()
|
|
|
|
/decl/emote/human/wag
|
|
key = "wag"
|
|
|
|
/decl/emote/human/wag/do_emote(var/mob/living/carbon/human/user)
|
|
user.animate_tail_start()
|
|
|
|
/decl/emote/human/sway
|
|
key = "sway"
|
|
|
|
/decl/emote/human/sway/do_emote(var/mob/living/carbon/human/user)
|
|
user.animate_tail_start()
|
|
|
|
/decl/emote/human/qwag
|
|
key = "qwag"
|
|
|
|
/decl/emote/human/qwag/do_emote(var/mob/living/carbon/human/user)
|
|
user.animate_tail_fast()
|
|
|
|
/decl/emote/human/fastsway
|
|
key = "fastsway"
|
|
|
|
/decl/emote/human/fastsway/do_emote(var/mob/living/carbon/human/user)
|
|
user.animate_tail_fast()
|
|
|
|
/decl/emote/human/swag
|
|
key = "swag"
|
|
|
|
/decl/emote/human/swag/do_emote(var/mob/living/carbon/human/user)
|
|
user.animate_tail_stop()
|
|
|
|
/decl/emote/human/stopsway
|
|
key = "stopsway"
|
|
|
|
/decl/emote/human/stopsway/do_emote(var/mob/living/carbon/human/user)
|
|
user.animate_tail_stop()
|